DSPy
Python framework for writing language-model programs as code and optimizing their prompts and weights instead of hand-tuning prompts.
Harness by Stanford NLP
Install
From the package registry. Read the repository before you give any tool access to your data.
pip install dspy
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: prompt-engineering, knowledge-base
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Fact sheet
- Languages
- PythonREADME
- Packages
- dspy (pypi)README
- Maturity
- Stablegithub.com
Facts extracted by Claude Sonnet 5.5 from the linked sources on Oct 24, 2026; reviewed Oct 24, 2026. Wrong fact? Tell us.
Alternatives
Frameworks for the same language with a similar way of orchestrating agents.
- 0.853score
LlamaIndex
LlamaIndex
Open-source Python toolkit for RAG and agents over your own data, with event-driven workflows and 300+ integration packages.
HarnessAFreshness: A★ 52.6K↓ 1.4M/wk - 0.753score
LangChain
LangChain
Python framework of interoperable components and integrations for building agents and LLM apps, with LangGraph and Deep Agents layered above it.
HarnessAFreshness: A★ 148.4K↓ 37.3M/wk - 0.748score
LangGraph
LangChain
Low-level Python orchestration framework for long-running stateful agents, with durable execution, human review points and short- and long-term memory.
HarnessAFreshness: A★ 43.8K↓ 13.1M/wk - 0.732score
CrewAI
CrewAI
Open-source Python framework for multi-agent workflows, with role-based Crews and event-driven Flows.
HarnessAFreshness: A★ 60.1K↓ 644.6K/wk - 0.627score
AutoGen
Microsoft
Archived Microsoft Python framework for multi-agent apps; Microsoft directs new users to Microsoft Agent Framework.
HarnessAFreshness: A★ 61.5K↓ 89K/wk
Compare and alternatives
Featured in
Signals
- Stars
- 38,766
- Forks
- 3,452
- Open issues
- 367
- Weekly downloads
- 1,254,893
- Last commit
- Oct 22, 2026 (4 days ago)
- Last release
- Oct 12, 2026 (14 days ago)
- Last package publish
- Oct 12, 2026 (14 days ago)
From GitHub (fetched Oct 24, 2026) and the package registry.
Details
- Packages
- pypi
dspy - License
- MIT
- Repository
- github.com/stanfordnlp/dspy
- Website
- dspy.ai/
- Docs
- dspy.ai/
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
Cite this page
DSPy. Agent Mart. https://agentmart.dev/harnesses/dspy (last updated 2026-10-24)