Head to head · Agent frameworks · October 2026 research run
BoxLang AI vs DSPy
BoxLang AI and DSPy score within a point of each other on agent readiness, 69 (B) and 68.3 (B). DSPy leads on payments & pricing. Both do agent frameworks.
Best agent frameworks and SDKs · All 253 frameworks comparisons
Which one, for what
Best for Teams already running BoxLang or modernising CFML on the JVM who want agents, RAG and MCP with approval and guardrails in the same language
Ahead on
- Agent ergonomics, 74 against 64
- Security & auth, 71 against 60
- Transparency & trust, 70 against 52
Watch for
Runs only on BoxLang, a JVM language, so it suits teams already on BoxLang or CFML rather than Python or TypeScript stacks
DSPy B
Best for Python teams who want typed LM programs they can evaluate and optimise against a metric, with ReAct for tool use.
Ahead on
- Payments & pricing, 90 against 75
Also in its favour
- No incidents deducted, where BoxLang AI loses 3 points for them
Watch for
3.5 changed the default adapter, reasoning and API routing and removed CodeAct and ProgramOfThought in a minor release
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.
Transparency & trust BoxLang AI +18
BoxLang AI 70
Apache-2.0, OSI approved, though the licence file sits in src/main/resources rather than the repository root (30). The FAQ says prompts and history go to the chosen cloud provider and that Ollama keeps data local, and we found no telemetry in the source, but there's no statement for the module of what, if anything, Ortus receives. Ortus's privacy policy covers its website and customers and says data is collected when you use its products without naming which (15 of 30). Migration notes are dated in the changelog, and default models were moved off a Groq model on its removal date, but there's no written deprecation policy or support window (10 of 20). No telemetry statement either way in the docs (10 of 20). 65 in all.
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.
Payments & pricing DSPy +15
BoxLang AI 75
Self-hosted rule, scored on the paid option. No payment protocol (0). BoxLang runtime plans are public without a login, Starter $749 a year and BoxLang+ and BoxLang++ from $1,999 to $4,999 a server or node a year, plan pricing rather than per unit (10). The Apache-2.0 module installs with no card (20) and no account or sign-up (20). 50 in all. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 50 is 75.
DSPy 90
Self-hosted rule. Free MIT package with nothing to buy from the project (30 + 30 + 30). No payment protocol (0). 0+30+30+30 = 90.
Security & auth BoxLang AI +11
BoxLang AI 71
Framework reading. 30 for what leaves the machine and credentials, 20 for approvals and sandboxing, 15 for prompt injection, 15 for audit and 20 for the security programme. No telemetry in the module's source, requests go only to configured providers, keys come from settings or environment variables, and request logging is off by default. 3.4.0 fixed a Gemini key leaking into logs through the request URL (27 of 30). Approval is enforced in code by HumanInTheLoopMiddleware with five policies, GuardrailMiddleware blocks tools by name and argument pattern, and stdio commands never use a shell. All of it is opt-in. allowedCommands allows any executable by default, FileSystemTools allows any path without allowedPaths, and the MCP server has no authentication unless configured (12 of 20). Unicode hygiene and fencing of ${context} are on by default, with opt-in input sanitiser, LLM judge and output guard. Streaming guards detect after the fact, which the changelog says (14 of 15). About 70 interception points, LoggingMiddleware, FlightRecorderMiddleware and MCP server statistics, with no OpenTelemetry export (11 of 15). CONTRIBUTING.md asks for reports to security@ortussolutions.com and the Slack #security channel. No security.txt (410), no bounty, and no published advisory found, while 3.6.0 lists a SQL injection fix in MySQL vector memory under Fixed (7 of 20). 71 in all.
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.
Agent ergonomics BoxLang AI +10
BoxLang AI 74
Framework reading, scored on what a tool-calling agent with MCP takes. An agent with an MCP server is one aiAgent() call with mcpServers, and toolFilter and prefix limit what each server adds. Skills can load lazily, but autoLoadSkills is on by default and injects every SKILL.md under /.agents/skills into every agent (20 of 25). MaxToolCallsMiddleware caps tool calls, window and summary memory bound history by messages or tokens, withMaxResponseBytes caps MCP answers and listTools( cursor ) pages tools (17 of 20). Named exceptions (ProviderError, UnsupportedCapability, InvalidArgument, MCPCommandRefused, BXAI.SecurityViolation) but no reference page, and the changelog says a timed-out call still surfaces as a JSON parse error (12 of 20). RetryMiddleware with exponential backoff, approval resumes that don't replay the model call or rerun executed tools, and a stdio client that never repeats an in-flight call. MCP tool annotations such as readOnlyHint aren't read (15 of 20). An agent needs a name and works with defaults, and a mock provider runs with no key, but it is one language (10 of 15). 74 in all.
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.
Score by category
| Category | Weight | BoxLang AI | DSPy | Edge |
|---|---|---|---|---|
| Reliability | 16% | 66 | 62 | BoxLang AI +4 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 71 | 71 | even |
| Agent ergonomics | 13% | 74 | 64 | BoxLang AI +10 |
| Security & auth | 14% | 71 | 60 | BoxLang AI +11 |
| Payments & pricing | 10% | 75 | 90 | DSPy +15 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 83 | 87 | DSPy +4 |
| Transparency & trust | 7% | 70 | 52 | BoxLang AI +18 |
| Negative events | ≤15 | -3 | 0 | |
| Total | B 69/100 | B 68.3/100 |
Facts side by side
| Fact | BoxLang AI | DSPy |
|---|---|---|
| Kind | Agent framework | Agent framework |
| Vendor | Ortus Solutions | Stanford NLP |
| Hosted endpoint | no (local only) | no (local only) |
| Transports | ||
| Auth | None | None |
| Pricing | Free | Free |
| x402 | no | no |
| Licence | Apache-2.0 | MIT |
| Read-only variant documented | no | no |
| llms.txt | yes | no |
| Last release | 2026-10-20 | 2026-11-10 |
| Terms last updated | no date given | no document linked |
| Privacy policy last updated | no date given | no document linked |
| Customer content may train models | not found in the text | not read yet |
| Terms restrict automated access | not found in the text | not read yet |
| Terms restrict benchmarking | not found in the text | not read yet |
| Terms or service can change without notice | not found in the text | not read yet |
| Arbitration or class-action waiver | not found in the text | not read yet |
| Popularity | none | 39k stars |
How the scores have moved
DSPy
No score change since it was listed.
Verdicts
BoxLang AI
A JVM agent framework with human approval, guardrail middleware and an MCP client over HTTP and stdio, all enforced in code, with three releases in the 90 days to 1 November 2026. It runs only on BoxLang, the stronger guards are opt-in, and minor releases have renamed public classes without a deprecation period.
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.
Before you call either
BoxLang AI
- Set
mcp.stdio.allowedCommandsto the executables you need. The default empty list lets any command start as a stdio MCP server. - Pass
allowedPathswhen you create FileSystemTools. With none, its tools can read, write and delete anywhere the JVM user can. - Attach HumanInTheLoopMiddleware with a checkpointer for tools that write or spend. Approval is opt-in.
- Create MCP clients with
MCP()rather than the class, since 3.6.0 renamed MCPClient to MCPHttpClient without an alias. - Use the
mockprovider to test agent wiring and guardrails with no API key or network.
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
Questions
Which is better for AI agents, BoxLang AI or DSPy?
BoxLang AI and DSPy score within a point of each other on agent readiness, 69 (B) and 68.3 (B). DSPy leads on payments & pricing.
Are BoxLang AI and DSPy open source?
Yes. BoxLang AI is open source (Apache-2.0). DSPy is open source (MIT).
Other comparisons with BoxLang AI or DSPy
- AgentOS vs BoxLang AI
- AgentOS vs DSPy
- Agno vs BoxLang AI
- Agno vs DSPy
- BoxLang AI vs Claude Agent SDK
- BoxLang AI vs CrewAI
- BoxLang AI vs Cursor Agent SDK
- BoxLang AI vs Docker Agent
- BoxLang AI vs Genkit
- BoxLang AI vs Agent Development Kit (ADK)
- BoxLang AI vs guilds.run
- BoxLang AI vs Haystack
- BoxLang AI vs LangGraph
- BoxLang AI vs LlamaIndex Framework
- BoxLang AI vs Mastra
- BoxLang AI vs Microsoft Agent Framework
- BoxLang AI vs OpenAI Agents SDK
- BoxLang AI vs Pydantic AI
- BoxLang AI vs smolagents
- BoxLang AI vs Strands Agents
- BoxLang AI vs Terse Durable Actors
- BoxLang AI vs TradingAgents
- BoxLang AI vs AI SDK
- Claude Agent SDK vs DSPy
- CrewAI vs DSPy
- Cursor Agent SDK vs DSPy
- Docker Agent vs DSPy
- 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 Strands Agents
- DSPy vs Terse Durable Actors
- DSPy vs TradingAgents
- DSPy vs AI SDK
Machine-readable
- This page as Markdown
/compare/boxlang-ai-vs-dspy.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/boxlang-ai.json·/api/v1/tools/dspy.json - From a terminal
anchor compare boxlang-ai dspy(the CLI) - Over MCP
compare_tools {"a": "boxlang-ai", "b": "dspy"}at/mcp, no key