Head to head · Agent frameworks · October 2026 research run
DSPy vs Strands Agents
Strands Agents scores 83.7 (A) on agent readiness against DSPy's 68.3 (B), and leads in 5 of 7 scored categories. Both do agent frameworks.
Best agent frameworks and SDKs · All 253 frameworks comparisons
Which one, for what
DSPy B
Best for Python teams who want typed LM programs they can evaluate and optimise against a metric, with ReAct for tool use.
Also in its favour
- No incidents deducted, where Strands Agents loses 4 points for them
Watch for
3.5 changed the default adapter, reasoning and API routing and removed CodeAct and ProgramOfThought in a minor release
Best for Python or TypeScript teams, especially on AWS, who want a model-driven loop with MCP, multi-agent patterns and approval gates.
Ahead on
- Reliability, 87 against 62
- Schema & documentation, 95 against 71
- Agent ergonomics, 87 against 64
- Security & auth, 89 against 60
- Transparency & trust, 72 against 52
Also in its favour
- Agent-ready, a grade of BB or better
Watch for
Three advisories in October 2026 on A2A session sharing and world-readable default session files, fixed in 1.43.0 and 1.48.0
Why the edge
Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.
Security & auth Strands Agents +29
DSPy 60
Framework reading (telemetry defaults, approvals, guardrails, sandboxing). No telemetry found, and the optional LiteLLM engine switches LiteLLM telemetry off (25). No tool approval hook; RLM runs generated code in a Deno and Pyodide sandbox with no filesystem or network access (10). No prompt-injection guidance found (5). MLflow tracing through OpenTelemetry and callbacks (12). SECURITY.md with GitHub private reporting and a maintainer address, but OSV lists CVE-2025-12695 for the PythonInterpreter sandbox with no fixed version (8). 25+10+5+12+8 = 60.
Strands Agents 89
Framework reading (telemetry defaults, approvals, guardrails, sandboxing). No usage analytics found in either SDK, and OpenTelemetry is opt-in (25). Interrupts and the harness's interventions gate tool calls behind human approval or Cedar policies, but the default sandbox is the local host (16). Guardrails, PII redaction and trusted message history pages, with Bedrock Guardrails integration (13). OpenTelemetry traces for every model and tool call (15). The AWS Vulnerability Disclosure Program on HackerOne and three advisories in October 2026 published with fixed versions (20). 25+16+13+15+20 = 89.
Reliability Strands Agents +25
DSPy 62
Local-package reading. Official PyPI package dspy with Python 3.10 to below 3.16 stated (20). A public test workflow runs on pushes to main and pull requests for Python 3.10 to 3.15; whether main passes wasn't read, as the Actions API refused us (15). 352 open issues and 475 open pull requests on 23 November 2026. The 50 newest issues, opened from 6 October to 23 November, had 19 with a comment and 8 closed (10). Release notes and an upgrade guide for 3.5, but 3.5 changed defaults and removed APIs in a minor release (7). 3.x, while the package classifier still says Alpha, so partial (10). 20+15+10+7+10 = 62.
Strands Agents 87
Local-package reading. Official PyPI and npm packages with Python 3.10 and Node 22 stated (20). A public CI workflow runs lint, type checks, unit and integration tests for each package on pull requests to main, plus security-audit workflows, and the latest Python, TypeScript, harness and MCP runs on main passed on 6 November (25). 664 open issues and 1,151 open issues and pull requests on 6 November, with 545 issues opened in the 90 days to 3 November. Of the 50 newest, 12 had a comment and 15 were closed, and 9 of the 40 newest open items carry a bug label. An issue-responder workflow runs on new issues (12). A written semantic versioning policy, experimental APIs kept apart, and deprecations removed only at a major (15). 1.0 since 15 July 2025 (15). 20+25+12+15+15 = 87.
Schema & documentation Strands Agents +24
DSPy 71
Framework reading. A typed Python API with an API reference for modules, tools, adapters and errors (20). No llms.txt at dspy.ai; the docs are Markdown in the repository but not served for agents (0). The tools and ReAct pages say what each part is for and when to read on (15). Tools are typed from signatures and Pydantic annotations and validated against JSON Schema (14). Many tutorials with code, and an errors page in the reference (12). Versioned docs, GitHub release notes and an upgrade guide, with no changelog file (10). 20+0+15+14+12+10 = 71.
Strands Agents 95
Framework reading. Typed Python and TypeScript APIs with a reference for each (25). llms.txt with a Markdown twin of every page (10). The llms.txt and docs say when to use Strands over a hand-written loop and when to take the harness rather than the SDK (18). Tools are typed from decorated functions or Zod schemas (15). Python and TypeScript examples on every page, stop reasons and hook events documented, with no catalogue of exceptions (12). Versioning page and tagged releases per package (15). 25+10+18+15+12+15 = 95.
Agent ergonomics Strands Agents +23
DSPy 64
Framework reading. MCP tools through the dspy[mcp] extra, converted one by one from a client session the developer opens (14). max_iters with a turn budget shown to the model and a forced final submit bound a run (17). Unknown tools and tool exceptions return to the model as error results (15). History continuation and saved programs, but no resume of an interrupted run or durable store; answer caching can mask repeated calls (8). Signatures keep required arguments few, an LM must be configured, Python only (10). 14+17+15+8+10 = 64.
Strands Agents 87
Framework reading. An MCPClient is passed straight to the agent in a few lines and its lifecycle is managed, with tool filtering per client (22). Conversation managers, turn limits, token budgets and cancellation bound each run (20). Stop reasons and typed events, and hooks that can retry a model or tool call (16). Retry strategies, session managers that persist and resume a conversation, and interrupts that resume where they paused (17). Two official languages, but the default provider is Bedrock, which needs AWS credentials and model access (12). 22+20+16+17+12 = 87.
Transparency & trust Strands Agents +20
DSPy 52
MIT (30). The library keeps only its answer cache, in memory and on disk by default, which the cache guide describes; no terms or privacy policy exist for the project (18). Deprecation warnings name the removal version (ReActV2 removed in 3.6), but there is no written policy and 3.5 removed APIs without a prior deprecation release (8). No telemetry, though no page states it (12). 30+18+8+12 = 68.
Strands Agents 72
Apache-2.0 (30). A library that stores session state where the developer configures it. The default FileSessionManager kept sessions world-readable in /tmp until 1.48.0, which the October advisories record and fix (20). A written deprecation policy with warnings and removal at majors, without a dated support window (16). Telemetry is opt-in and documented (20). 30+20+16+20 = 86.
Score by category
| Category | Weight | DSPy | Strands Agents | Edge |
|---|---|---|---|---|
| Reliability | 16% | 62 | 87 | Strands Agents +25 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 71 | 95 | Strands Agents +24 |
| Agent ergonomics | 13% | 64 | 87 | Strands Agents +23 |
| Security & auth | 14% | 60 | 89 | Strands Agents +29 |
| Payments & pricing | 10% | 90 | 90 | even |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 87 | 87 | even |
| Transparency & trust | 7% | 52 | 72 | Strands Agents +20 |
| Negative events | ≤15 | 0 | -4 | |
| Total | B 68.3/100 | A 83.7/100 |
Facts side by side
| Fact | DSPy | Strands Agents |
|---|---|---|
| Kind | Agent framework | Agent framework |
| Vendor | Stanford NLP | Amazon Web Services |
| Hosted endpoint | no (local only) | no (local only) |
| Transports | ||
| Auth | None | None |
| Pricing | Free | Free |
| x402 | no | no |
| Licence | MIT | Apache-2.0 |
| Read-only variant documented | no | no |
| llms.txt | no | yes |
| Last release | 2026-11-10 | 2026-11-04 |
| Terms last updated | no document linked | no document linked |
| Privacy policy last updated | no document linked | no document linked |
| Popularity | 39k stars | 9.1k stars, 698k npm/wk, 8.9M PyPI/wk |
How the scores have moved
DSPy
No score change since it was listed.
Verdicts
DSPy
An MIT Python framework with typed signatures, a ReAct agent that returns tool errors to the model, MCP tool conversion, a Deno sandbox for generated code, no telemetry found and monthly releases. Release 3.5 changed defaults and removed APIs in a minor version, and there is no tool approval hook or llms.txt.
Strands Agents
An Apache-2.0 agent SDK for Python and TypeScript with a managed MCP client, multi-agent patterns, interrupts and Cedar policies for approval, opt-in OpenTelemetry and no usage analytics. Bedrock is the default model, the default sandbox is the local host, and three session-isolation advisories were fixed in October 2026.
Before you call either
DSPy
- Re-evaluate saved programs after upgrading to 3.5, since the default adapter and prompts changed
- Install dspy[mcp] and convert each MCP tool with dspy.Tool.from_mcp_tool while the client session stays open
- Disable the answer cache for calls whose output must change between runs, since memory and disk caches are on by default
- Wrap tools that send, pay or delete in your own confirmation step, because ReAct runs tools without approval
- Pin dspy to a minor version, since minor releases remove APIs
Strands Agents
- Upgrade to strands-agents 1.48.0 or later, and set a private session directory rather than the /tmp default
- Pass a model explicitly when AWS credentials aren't configured, since Bedrock is the default
- Use interrupts or the harness's
interventionsfor tools that write, send or pay - Run shell and file tools in the Docker or SSH sandbox when the agent runs untrusted code
- Pin a minor version when using A2A, MCP or experimental modules
Questions
Which is better for AI agents, DSPy or Strands Agents?
Strands Agents scores 83.7 (A) on agent readiness against DSPy's 68.3 (B), and leads in 5 of 7 scored categories.
Are DSPy and Strands Agents open source?
Yes. DSPy is open source (MIT). Strands Agents is open source (Apache-2.0).
Other comparisons with DSPy or Strands Agents
- AgentOS vs DSPy
- AgentOS vs Strands Agents
- Agno vs DSPy
- Agno vs Strands Agents
- BoxLang AI vs DSPy
- BoxLang AI vs Strands Agents
- Claude Agent SDK vs DSPy
- Claude Agent SDK vs Strands Agents
- CrewAI vs DSPy
- CrewAI vs Strands Agents
- Cursor Agent SDK vs DSPy
- Cursor Agent SDK vs Strands Agents
- Docker Agent vs DSPy
- Docker Agent vs Strands Agents
- DSPy vs Genkit
- DSPy vs Agent Development Kit (ADK)
- DSPy vs guilds.run
- DSPy vs Haystack
- DSPy vs LangGraph
- DSPy vs LlamaIndex Framework
- DSPy vs Mastra
- DSPy vs Microsoft Agent Framework
- DSPy vs OpenAI Agents SDK
- DSPy vs Pydantic AI
- DSPy vs smolagents
- DSPy vs Terse Durable Actors
- DSPy vs TradingAgents
- DSPy vs AI SDK
- Genkit vs Strands Agents
- Agent Development Kit (ADK) vs Strands Agents
- guilds.run vs Strands Agents
- Haystack vs Strands Agents
- LangGraph vs Strands Agents
- LlamaIndex Framework vs Strands Agents
- Mastra vs Strands Agents
- Microsoft Agent Framework vs Strands Agents
- OpenAI Agents SDK vs Strands Agents
- Pydantic AI vs Strands Agents
- smolagents vs Strands Agents
- Strands Agents vs Terse Durable Actors
- Strands Agents vs TradingAgents
- Strands Agents vs AI SDK
Machine-readable
- This page as Markdown
/compare/dspy-vs-strands-agents.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/dspy.json·/api/v1/tools/strands-agents.json - From a terminal
anchor compare dspy strands-agents(the CLI) - Over MCP
compare_tools {"a": "dspy", "b": "strands-agents"}at/mcp, no key