Alternatives · Agent Frameworks
DSPy alternatives
These records overlap with DSPy's recorded tasks and have the same product type. The selection uses task text, then information completeness; stars and sponsorship do not set the order. Check the specific capability you need before switching.
Stanford's framework for programming, not prompting, language models, with optimisers for prompts and weights.
Costs not checked · 39k stars · Python · Open source · repository push Nov 2026
Task-related research candidates
Recorded task overlap: retrieval and knowledge. Compare the documented setup and limits before treating it as a substitute. The recorded use cases differ: DSPy — Systems where you can define a metric and want prompts tuned automatically instead of by hand; txtai — Self-hosted semantic search and RAG with agents in a single Python library.
Recorded task overlap: retrieval and knowledge. Compare the documented setup and limits before treating it as a substitute. The recorded use cases differ: DSPy — Systems where you can define a metric and want prompts tuned automatically instead of by hand; Langroid — Developers who want a small, principled multi-agent framework without LangChain.
Recorded task overlap: retrieval and knowledge. Compare the documented setup and limits before treating it as a substitute. The recorded use cases differ: DSPy — Systems where you can define a metric and want prompts tuned automatically instead of by hand; Mastra — TypeScript teams building production agents without switching to Python.
Recorded task overlap: retrieval and knowledge. Compare the documented setup and limits before treating it as a substitute. The recorded use cases differ: DSPy — Systems where you can define a metric and want prompts tuned automatically instead of by hand; LlamaIndex — Retrieval-heavy applications where the hard part is getting your own documents and data into an agent reliably.
Recorded task overlap: retrieval and knowledge. Compare the documented setup and limits before treating it as a substitute. The recorded use cases differ: DSPy — Systems where you can define a metric and want prompts tuned automatically instead of by hand; ruflo — Adding tools, memory, loops, and sandboxes on top of Claude Code or Codex.
Shared terms in the records: python, want, where. These text matches do not establish equivalent capabilities. The recorded use cases differ: DSPy — Systems where you can define a metric and want prompts tuned automatically instead of by hand; smolagents — Small code-writing agents you want to read end to end before trusting them.
Shared terms in the records: python, system, want. These text matches do not establish equivalent capabilities. The recorded use cases differ: DSPy — Systems where you can define a metric and want prompts tuned automatically instead of by hand; AgentScope — Python teams building multi-agent or realtime voice systems who want transparency into agent behaviour.
Shared terms in the records: python, want. These text matches do not establish equivalent capabilities. The recorded use cases differ: DSPy — Systems where you can define a metric and want prompts tuned automatically instead of by hand; pydantic-ai — Python teams that want type-safe agent development with the Pydantic philosophy.
Frequently asked
- How were alternatives to DSPy selected?
- Recorded task topics and meaningful shared terms qualify same-type candidates in the same category. Results are ordered by that overlap, then information completeness and a stable identifier. Sponsorship and GitHub stars do not participate. The method can miss suitable tools whose records lack task information.
- Does inclusion mean a tested replacement?
- No. These are catalogue-based research candidates. Check current sources, costs, permissions and deployment requirements, then test your own task. ASE has not run a performance benchmark of this shortlist.