#4343rd of 242 in Agent frameworks and SDKs
dspy
Python framework for building LM programs and optimizing their prompts and weights
Watch puts dspy on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.dspy is on your watch list. Its new releases and problems show there.
- Stars
- 39.3k
- License
- MIT
- Last commit
- Nov 2026
- Last release
- Nov 2026
- Language
- Python
32,910 on 25 Mar 202639,297 on 25 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
- DSPy: Framework for programming with foundation models (opens in a new tab) (141 points, Sep 2023)
Overview
DSPy lets you write LM pipelines as modular Python code instead of hand-written prompts. It includes optimizers that tune prompts and weights against a metric, covering use cases from classifiers to RAG pipelines and agent loops. LM access goes through bundled native lm15 engines, with no LiteLLM dependency.
Who it is for: Python developers building and tuning LM pipelines, RAG and agents
Strengths
- Optimizers tune prompts and weights from code and metrics, replacing manual prompt editing
- Compositional Python modules for classifiers, RAG pipelines and agent loops
- Backed by published papers, including GEPA and MIPRO
- Installs with a single pip command, MIT licensed
Weaknesses
- README defers nearly all usage detail to the external docs site
- LM layer moved off LiteLLM to lm15, with breaking changes to provider options
- Custom LMs, text completions and embeddings need migration per the guide
- Declarative module and optimizer model has a learning curve versus plain prompting
What it needs
- Needs Python, lm15 (bundled)
- Models: provider LMs via bundled lm15 engines
What changed
- 3.4.0 ↗ (opens in a new tab)Breaking
“Breaking change: override the runtime in rlm(...) and rlm.acall(...) with the keyword-only interpreterfactory= option, supplying a zero-argument factory. Live interpreter instances and positional fac…”
From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS
Also in Agent frameworks and SDKs
See all 242| Rank | Project | Score |
|---|---|---|
| #41 | open-multi-agentTypeScript runtime for multi-agent teams with approval gates and offline run review | 83 out of 100 |
| #42 | ruby_llmRuby library for chat, tools, agents and evals across 23 LLM providers | 83 out of 100 |
| #44 | semantic-kernelModel-agnostic SDK for building agents and plugins in C#, Python and Java | 82 out of 100 |
| #45 | langchainjsTypeScript framework for building LLM apps and agents with swappable model integrations | 82 out of 100 |
| #46 | llmCommand-line tool and Python library for prompting local and hosted LLMs | 82 out of 100 |