Head to head · Agent frameworks · October 2026 research run
Pydantic AI Harness vs smolagents
Pydantic AI Harness scores 83.5 (A) on agent readiness against smolagents's 62.5 (B), and leads in 5 of 7 scored categories. Both do agent frameworks.
Best agent frameworks and SDKs · All 276 frameworks comparisons
Which one, for what
Best for Python developers building coding, research or long-running agents on Pydantic AI who want sandboxes, budgets and approvals as parts.
Ahead on
- Schema & documentation, 98 against 81
- Agent ergonomics, 89 against 68
- Security & auth, 85 against 66
- Maintenance & community, 87 against 34
- Transparency & trust, 82 against 65
Also in its favour
- Agent-ready, a grade of BB or better
- No incidents deducted, where smolagents loses 6 points for them
Watch for
0.76.0 and classed Alpha. Minor releases may rename parameters or change defaults
Best for Small Python projects and research that want code-writing agents with minimal abstraction.
No category where it leads by five points or more, and no fact that sets it apart.
Watch for
No release since 1.26.0 on 29 May 2026, and few commits to main since August
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.
Maintenance & community Pydantic AI Harness +53
Pydantic AI Harness 87
0.76.0 on 27 November 2026 (30). 35 releases in the 90 days to 27 November, and about 65 since 0.1.1 on 13 April (20). 362 merged pull requests and 161 closed issues labelled pkg:harness since 28 October, but 26 open bugs have no reply and three open bugs date from June to August. Reply times weren't read (16 of 25). The Python package is current and pinned to the matching pydantic-ai-slim release, Python only (13 of 15). Dependabot is configured and both 0.76.0 release files carry PyPI provenance, with CI state unchecked (8 of 10). 30+20+16+13+8 = 87.
smolagents 34
v1.26.0 on 29 May 2026, 161 days before this check (10). No release in the 90 days to 6 November (0). 416 open issues and 1,045 open issues and pull requests on 6 November, with 144 issues opened in the 90 days to 3 November. Of the 50 newest, 26 had a comment and 1 was closed. Two 2026 CVE records say the vendor didn't respond to the reporter, and seven commits reached main from 8 August to 6 November (6). Python only, and the package is the current one (10). CI with actions pinned to commit SHAs and Dependabot for actions (8). 10+0+6+10+8 = 34.
Agent ergonomics Pydantic AI Harness +21
Pydantic AI Harness 89
Framework reading. A coding agent is an Agent with LocalWorkspace('.') and Coder() in its capabilities, MCP comes from core, and hosted MCP integrations such as GitHub, Linear and Slack are capabilities of their own (23 of 25). ToolOutputLimits spills results of 10,000 characters or more to a file, and SpendLimits, ToolBudgets, ReportRemainingBudget and DetectLoops bound runs (20). ReportToolErrors turns exceptions into tool results the model can act on, RepairToolArguments fixes malformed JSON, and a run without a workspace fails at its start saying what to attach (19 of 20). Step persistence, Temporal and DBOS extras and Absurd, pgtask, Lambda and Azure Durable Task pages (18 of 20). Sensible defaults, but Python only, as for pydantic-ai (9 of 15). 23+20+19+18+9 = 89.
smolagents 68
Framework reading. MCPClient loads an MCP server's tools in a few lines (20). max_steps, planning intervals and final_answer_checks bound a run (16). Errors from tools and code go back to the model as observations (14). No built-in retry, idempotency or resume beyond replaying memory (8). Few required parameters and many providers, Python only, and the default model needs a Hugging Face token (10). 20+16+14+8+10 = 68.
Security & auth Pydantic AI Harness +19
Pydantic AI Harness 85
Framework reading (telemetry defaults, approval hooks, guardrails, sandboxing). The Harness sends nothing of its own, and tracing goes through core's opt-in instrumentation. FileSystem keeps secrets and .git read-only by default and checks path traversal, and Shell can strip LLM credentials from command environments, which the docs call coarse (27 of 30). Permissions with full, auto and read-only modes, Approval Reviewer, Tool Call Judge and Deny Unanswered, and twelve workspace backends, but full is the default and Coder's shell has no allowlist (17 of 20). A Prompt Injection Defender (report-only unless block_high_risk=True), output guardrails, and workspace authority that keeps files below operator authority out of the instructions (13 of 15). OpenTelemetry spans for every model and tool call through core, plus trajectory and artifact-scanning capabilities (13 of 15). A valid security.txt and GitHub private reporting, a threat model that covers the Harness, and one moderate advisory, GHSA-3589-pxp7-3gj8, published with a fix in 0.59.0 on 21 October 2026 (15 of 20). No bounty found. 27+17+13+13+15 = 85.
smolagents 66
Framework reading (telemetry defaults, approvals, guardrails, sandboxing). No telemetry found in the source (25). No human approval hook beyond step callbacks; the local executor restricts imports but the guide says it isn't a security tool, and isolation needs a remote executor (10). The secure execution guide covers LLM-generated code risks, without prompt-injection guidance for tool output (7). OpenTelemetry tracing through OpenInference and run inspection (12). SECURITY.md with private reporting and CVE credit, and the remote-executor RCE was fixed in public, but two 2026 CVE records say the vendor didn't respond (12). 25+10+7+12+12 = 66.
Schema & documentation Pydantic AI Harness +17
Pydantic AI Harness 98
Framework reading. Typed package (Typing :: Typed), with about 280 API reference blocks across the capability pages (25). About 96 Harness pages in pydantic.dev's llms.txt, each with a Markdown twin (10). Each capability page sets out the problem and the solution, the README maps problems to capabilities, and the docs say plainly what isn't a boundary (LocalWorkspace isn't a sandbox, Bubblewrap is best effort, command patterns are a convenience) (19 of 20). Capabilities are typed classes with named modes ('full', 'auto', 'read-only') and documented defaults (14 of 15). Examples on every page, and named exceptions such as OutputBlocked, LoopDetectedError and UsageLimitExceeded (15). A version policy and Harness entries in the shared changelog (15). 25+10+19+14+15+15 = 98.
smolagents 81
Framework reading. A typed Python API with reference pages for agents, models, tools and executors (22). llms.txt and Markdown pages on huggingface.co (10). The docs say when to use CodeAgent or ToolCallingAgent and when a sandbox is needed (17). Tools declare typed inputs in a schema dictionary or from a decorated function (12). Many runnable examples; error classes exist but aren't catalogued (10). Versions tagged with release notes, no changelog file (10). 22+10+17+12+10+10 = 81.
Transparency & trust Pydantic AI Harness +17
Pydantic AI Harness 82
MIT, with third-party notices in the package (30). The docs say where Harness files go (.pydantic-ai-harness/ in the workspace, git-ignored) and which stores sit on the agent's machine, and the threat model says computer use sends screenshots, secrets included, to the model provider. Pydantic's privacy policy covers its hosted services (22 of 30). The 0.x policy promises deprecation warnings where practical and migration guidance in release notes, and sets the rules from 1.0, with no dated notices (14 of 20). No telemetry of its own, and instrumentation is opt-in and documented (18 of 20). 30+22+14+18 = 84.
smolagents 65
Apache-2.0 (30). The library stores nothing itself; the default model sends prompts to Hugging Face's inference providers, which the docs show (20). Breaking removals such as WasmExecutor shipped in minor releases, without a written deprecation policy (5). No telemetry, though no page states it (12). 30+20+5+12 = 67.
Score by category
| Category | Weight | Pydantic AI Harness | smolagents | Edge |
|---|---|---|---|---|
| Reliability | 16% | 61 | 64 | smolagents +3 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 98 | 81 | Pydantic AI Harness +17 |
| Agent ergonomics | 13% | 89 | 68 | Pydantic AI Harness +21 |
| Security & auth | 14% | 85 | 66 | Pydantic AI Harness +19 |
| Payments & pricing | 10% | 90 | 90 | even |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 87 | 34 | Pydantic AI Harness +53 |
| Transparency & trust | 7% | 82 | 65 | Pydantic AI Harness +17 |
| Negative events | ≤15 | 0 | -6 | |
| Total | A 83.5/100 | B 62.5/100 |
Facts side by side
| Fact | Pydantic AI Harness | smolagents |
|---|---|---|
| Kind | Agent framework | Agent framework |
| Vendor | Pydantic | Hugging Face |
| 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 | yes | no |
| llms.txt | yes | yes |
| Last release | 2026-11-27 | 2026-05-29 |
| Terms last updated | no date given | 2022-09-15 |
| Privacy policy last updated | 2024-02-21 | 2023-03-28 |
| Customer content may train models | not found in the text | not found in the text |
| Terms restrict automated access | not found in the text | not found in the text |
| Terms restrict benchmarking | yes | not found in the text |
| Terms or service can change without notice | not found in the text | yes |
| Arbitration or class-action waiver | yes | not found in the text |
| Popularity | none | 30k stars, 171k PyPI/wk |
How the scores have moved
Pydantic AI Harness
No score change since it was listed.
Verdicts
Pydantic AI Harness
The Harness turns a Pydantic AI agent into a coding or research agent by adding capabilities, with twelve workspace backends, permission modes, spend and tool budgets, loop detection and a documented page for each part. It is 0.x and classed Alpha, minor releases may break APIs, and Coder's shell is unrestricted unless you attach a sandbox or permissions.
smolagents
A compact Python library for code-writing and tool-calling agents, with MCP tools, any model provider and remote sandboxes through E2B, Docker, Modal or Blaxel. The newest release is 1.26.0 of 29 May 2026, a critical remote-executor RCE took about eight weeks to fix, and the local executor isn't a security boundary.
Before you call either
Pydantic AI Harness
- Attach a workspace capability. Harness capabilities never pick one, and a run without one fails at its start
- Use a sandbox capability instead of
LocalWorkspacefor model-written commands.LocalWorkspaceruns them on your machine as you - Add
Permissionsinautoorread-onlymode, with a deferred-call handler, before lettingCoderrun unattended - Set
PromptInjectionDefender(block_high_risk=True)if tool results should be blocked rather than only flagged - Pin the Harness and Pydantic AI together and read the release notes before a minor upgrade. 0.x minors can break APIs
smolagents
- Run CodeAgent with
executor_typeset to e2b, docker, modal or blaxel whenever the model or its inputs aren't trusted - Use smolagents 1.24.0 or later to get the remote-executor deserialisation fix
- Set max_steps and final_answer_checks so a run stops on its own
- Pass structured_output explicitly to MCPClient to avoid the default-change warning
- Pin the version, since minor releases have removed APIs
Questions
Which is better for AI agents, Pydantic AI Harness or smolagents?
Pydantic AI Harness scores 83.5 (A) on agent readiness against smolagents's 62.5 (B), and leads in 5 of 7 scored categories.
Are Pydantic AI Harness and smolagents open source?
Yes. Pydantic AI Harness is open source (MIT). smolagents is open source (Apache-2.0).
Other comparisons with Pydantic AI Harness or smolagents
- AgentOS vs Pydantic AI Harness
- AgentOS vs smolagents
- Agno vs Pydantic AI Harness
- Agno vs smolagents
- BoxLang AI vs Pydantic AI Harness
- BoxLang AI vs smolagents
- Claude Agent SDK vs Pydantic AI Harness
- Claude Agent SDK vs smolagents
- CrewAI vs Pydantic AI Harness
- CrewAI vs smolagents
- Cursor Agent SDK vs Pydantic AI Harness
- Cursor Agent SDK vs smolagents
- Docker Agent vs Pydantic AI Harness
- Docker Agent vs smolagents
- DSPy vs Pydantic AI Harness
- DSPy vs smolagents
- Genkit vs Pydantic AI Harness
- Genkit vs smolagents
- Agent Development Kit (ADK) vs Pydantic AI Harness
- Agent Development Kit (ADK) vs smolagents
- guilds.run vs Pydantic AI Harness
- guilds.run vs smolagents
- Haystack vs Pydantic AI Harness
- Haystack vs smolagents
- LangGraph vs Pydantic AI Harness
- LangGraph vs smolagents
- LlamaIndex Framework vs Pydantic AI Harness
- LlamaIndex Framework vs smolagents
- Mastra vs Pydantic AI Harness
- Mastra vs smolagents
- Microsoft Agent Framework vs Pydantic AI Harness
- Microsoft Agent Framework vs smolagents
- OpenAI Agents SDK vs Pydantic AI Harness
- OpenAI Agents SDK vs smolagents
- Pydantic AI Harness vs Strands Agents
- Pydantic AI Harness vs Terse Durable Actors
- Pydantic AI Harness vs TradingAgents
- Pydantic AI Harness vs AI SDK
- Pydantic AI vs Pydantic AI Harness
- Pydantic AI vs smolagents
- smolagents vs Strands Agents
- smolagents vs Terse Durable Actors
- smolagents vs TradingAgents
- smolagents vs AI SDK
Machine-readable
- This page as Markdown
/compare/pydantic-ai-harness-vs-smolagents.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/pydantic-ai-harness.json·/api/v1/tools/smolagents.json - From a terminal
anchor compare pydantic-ai-harness smolagents(the CLI) - Over MCP
compare_tools {"a": "pydantic-ai-harness", "b": "smolagents"}at/mcp, no key