{
  "data": {
    "a": {
      "slug": "pydantic-ai-harness",
      "name": "Pydantic AI Harness",
      "vendor": "Pydantic",
      "vendorUrl": "https://pydantic.dev/docs/ai/harness/",
      "company": "pydantic.dev",
      "kind": "framework",
      "category": "frameworks",
      "summary": "Pydantic AI Harness is Pydantic's open-source Python library of agent capabilities for Pydantic AI, with workspaces and sandboxes, file and shell tools, memory, sub-agents, guardrails and spend limits, plus ready-made agents such as Coder and Researcher.",
      "url": "https://www.anchorterminal.com/tools/pydantic-ai-harness",
      "markdownUrl": "https://www.anchorterminal.com/tools/pydantic-ai-harness.md",
      "slimMarkdownUrl": "https://www.anchorterminal.com/tools/pydantic-ai-harness.min.md",
      "cardUrl": "https://www.anchorterminal.com/tools/pydantic-ai-harness.card.md",
      "jsonUrl": "https://www.anchorterminal.com/api/v1/tools/pydantic-ai-harness.json",
      "dns": "pydantic-ai-harness.grade.anchorterminal.com",
      "repo": "https://github.com/pydantic/pydantic-ai/tree/main/src/pydantic_ai_harness",
      "license": "MIT",
      "transports": [],
      "packages": [
        {
          "registry": "pypi",
          "name": "pydantic-ai-harness"
        }
      ],
      "auth": "none",
      "authNotes": "A library with no account or key of its own. Credentials are for the models, sandboxes (Modal, E2B, Daytona and others) and hosted MCP capabilities you attach.",
      "pricing": "free",
      "pricingNotes": "Free and MIT-licensed. You pay for model calls and any cloud sandbox you attach. Local workspaces, Docker and the smolvm and BoxLite microVMs need no account.",
      "priceSummary": "Free · OSS",
      "where": "library",
      "x402": {
        "level": "no",
        "evidence": "A Python library with no hosted endpoint of its own. No payment protocol in the docs or README (checked 2026-11-27).",
        "endpoints": []
      },
      "toolCount": null,
      "popularity": {
        "githubStars": null,
        "npmWeekly": null,
        "pypiWeekly": null,
        "asOf": "2026-11-27"
      },
      "docsUrl": "https://pydantic.dev/docs/ai/harness/",
      "llmsTxt": "https://pydantic.dev/docs/ai/llms.txt",
      "capabilities": [
        "agent.framework",
        "agent.multi-agent",
        "agent.durable",
        "agent.mcp-client"
      ],
      "tags": [
        "framework",
        "python",
        "open-source",
        "typed",
        "no-telemetry",
        "llms-txt",
        "sandbox"
      ],
      "lastRelease": "2026-11-27",
      "graded": true,
      "anchor": {
        "graded": true,
        "score": 83.5,
        "grade": "A",
        "agentReady": true,
        "rank": 15,
        "ranked": true,
        "rankOf": 1698,
        "categoryRank": 5,
        "methodology": "1.0",
        "run": "2026-10-01",
        "scores": {
          "ergonomics": 89,
          "maintenance": 87,
          "payments": 90,
          "reliability": 61,
          "schema": 98,
          "security": 85,
          "transparency": 82
        },
        "assessment": {
          "confidence": "medium",
          "date": "2026-11-27"
        },
        "negative": 0,
        "verdict": "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.",
        "bestFor": "Python developers building coding, research or long-running agents on Pydantic AI who want sandboxes, budgets and approvals as parts.",
        "strengths": [
          "A working coding agent is an `Agent` with `LocalWorkspace` and `Coder()` in its capabilities, and any part can be swapped",
          "Twelve workspace backends beyond the local one, including local smolvm and BoxLite microVMs, Docker, Modal, E2B, Daytona and Kubernetes",
          "Spend limits per run, day or tenant, per-tool budgets, loop detection and tool-output spill files for long runs",
          "Permissions, Approval Reviewer, Tool Call Judge, guardrails and a Prompt Injection Defender as opt-in capabilities",
          "A page per capability with API reference blocks, about 96 entries in llms.txt, and a written 0.x version policy"
        ],
        "weaknesses": [
          "0.76.0 and classed Alpha. Minor releases may rename parameters or change defaults",
          "`Coder`'s shell has no allowlist and `LocalWorkspace` is not a sandbox, so commands reach anything the user can",
          "The Prompt Injection Defender reports only, unless `block_high_risk=True` is set",
          "186 open issues labelled `pkg:harness` on 27 November 2026, 59 of them bugs and 26 of those without a reply",
          "Python only, 3.11 or newer"
        ],
        "agentNotes": [
          "Attach a workspace capability. Harness capabilities never pick one, and a run without one fails at its start",
          "Use a sandbox capability instead of `LocalWorkspace` for model-written commands. `LocalWorkspace` runs them on your machine as you",
          "Add `Permissions` in `auto` or `read-only` mode, with a deferred-call handler, before letting `Coder` run 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"
        ],
        "metrics": {
          "kind": "library",
          "measured": false
        },
        "reviewCount": 0,
        "avgRating": 0,
        "history": [
          {
            "basis": "public evidence",
            "confidence": "medium",
            "grade": "A",
            "methodology": "1.0",
            "run": "2026-10-01",
            "runLabel": "October 2026 research run",
            "score": 83.5
          }
        ],
        "editorialScores": {
          "ergonomics": 89,
          "maintenance": 87,
          "payments": 90,
          "reliability": 61,
          "schema": 98,
          "security": 85,
          "transparency": 84
        },
        "provenanceScore": 79,
        "checked": {
          "categories": {
            "ergonomics": "2026-11-27",
            "maintenance": "2026-11-27",
            "payments": "2026-11-27",
            "reliability": "2026-11-27",
            "schema": "2026-11-27",
            "security": "2026-11-27",
            "transparency": "2026-11-27"
          },
          "last": "2026-11-27",
          "oldest": "2026-11-27",
          "stale": false,
          "staleAfterDays": 90
        }
      },
      "connect": {
        "install": "pip install \"pydantic-ai-harness[coder,anthropic]\""
      },
      "letme": {
        "capability": "https://letme.dev/agent.framework",
        "tool": "https://letme.dev/pydantic-ai-harness"
      },
      "sameCompany": [
        "pydantic-ai",
        "pydantic-logfire",
        "pydantic-ai-pax"
      ],
      "area": "frameworks",
      "provenance": {
        "legalEntity": "Pydantic Services Inc.",
        "domain": "pydantic.dev",
        "domainRegistered": "2022-04-24",
        "endpointOnVendorDomain": null,
        "terms": "https://pydantic.dev/legal/terms-of-service",
        "privacy": "https://pydantic.dev/legal/privacy-policy",
        "statusPage": "",
        "changelog": "https://pydantic.dev/docs/ai/project/changelog/",
        "securityTxt": "valid",
        "checked": "2026-11-27",
        "notes": [
          "Legal entity, domain registration, terms and privacy links carried from the pydantic-ai listing (checked 4 October 2026), as RULES.md allows for company facts. The Harness is MIT software you run, so the terms and privacy policy cover Pydantic's hosted services rather than the library.",
          "pydantic.dev/.well-known/security.txt read on 27 November 2026, with contact security@pydantic.dev, expires 17 September 2027, policy https://pydantic.dev/security.",
          "pydantic.dev's robots.txt let our reader in. Its llms.txt asks agents to add `intent`, `stack` and `harness` query parameters to every docs request. We didn't.",
          "github.com answered robots.txt with 403 to our reader, so repository pages weren't read. The repository was cloned (--depth 200) and issue counts came from GitHub's search API.",
          "Both files of the 0.76.0 release on PyPI carry provenance metadata."
        ],
        "score": 79
      },
      "pageJsonUrl": "https://www.anchorterminal.com/tools/pydantic-ai-harness.json"
    },
    "answer": "Pydantic AI Harness scores 83.5 (A) on agent readiness against smolagents's 62.5 (B), and leads in 5 of 7 scored categories.",
    "b": {
      "slug": "smolagents",
      "name": "smolagents",
      "vendor": "Hugging Face",
      "vendorUrl": "https://github.com/huggingface/smolagents",
      "company": "huggingface.co",
      "kind": "framework",
      "category": "frameworks",
      "summary": "smolagents is Hugging Face's small Python library for agents that write and run Python code (CodeAgent) or call tools as JSON (ToolCallingAgent), with MCP tools, any model provider and sandboxed execution through E2B, Docker, Modal or Blaxel.",
      "url": "https://www.anchorterminal.com/tools/smolagents",
      "markdownUrl": "https://www.anchorterminal.com/tools/smolagents.md",
      "slimMarkdownUrl": "https://www.anchorterminal.com/tools/smolagents.min.md",
      "cardUrl": "https://www.anchorterminal.com/tools/smolagents.card.md",
      "jsonUrl": "https://www.anchorterminal.com/api/v1/tools/smolagents.json",
      "dns": "smolagents.grade.anchorterminal.com",
      "repo": "https://github.com/huggingface/smolagents",
      "license": "Apache-2.0",
      "transports": [],
      "packages": [
        {
          "registry": "pypi",
          "name": "smolagents"
        }
      ],
      "auth": "none",
      "authNotes": "A library with no credentials of its own. The default InferenceClientModel uses a Hugging Face token; other providers and remote sandboxes take their own keys.",
      "pricing": "free",
      "pricingNotes": "Free and open source under Apache-2.0. You pay for model calls and for any remote sandbox (E2B, Modal, Blaxel) you use.",
      "priceSummary": "Free · OSS",
      "where": "library",
      "x402": {
        "level": "no",
        "evidence": "No x402, MPP or L402 in the docs or the repository (checked 2026-11-06).",
        "endpoints": []
      },
      "toolCount": null,
      "popularity": {
        "githubStars": 30234,
        "npmWeekly": null,
        "pypiWeekly": 171063,
        "asOf": "2026-11-06"
      },
      "docsUrl": "https://huggingface.co/docs/smolagents/index",
      "llmsTxt": "https://huggingface.co/docs/smolagents/llms.txt",
      "capabilities": [
        "agent.framework",
        "agent.mcp-client",
        "agent.multi-agent"
      ],
      "tags": [
        "framework",
        "python",
        "open-source",
        "llms-txt",
        "mcp",
        "code-agent",
        "sandbox"
      ],
      "lastRelease": "2026-05-29",
      "graded": true,
      "anchor": {
        "graded": true,
        "score": 62.5,
        "grade": "B",
        "agentReady": false,
        "rank": 753,
        "ranked": true,
        "rankOf": 1698,
        "categoryRank": 22,
        "methodology": "1.0",
        "run": "2026-10-01",
        "scores": {
          "ergonomics": 68,
          "maintenance": 34,
          "payments": 90,
          "reliability": 64,
          "schema": 81,
          "security": 66,
          "transparency": 65
        },
        "assessment": {
          "confidence": "medium",
          "date": "2026-11-06"
        },
        "negative": -6,
        "negativeNotes": [
          "2025-12-23 to 2026-03-27. GHSA-q9r5-6hrr-9ph7 (CVE-2025-14931, critical, from the Zero Day Initiative) reports remote code execution through pickle deserialisation in the remote Python executor; the fix for remote executors merged on 15 February 2026, about eight weeks after publication. CVE-2026-2654 (SSRF, 1.24.0) and CVE-2026-4963 (code injection in LocalPythonExecutor, an incomplete earlier fix) are rated low, and both records say the vendor did not respond. Fixed or low, under 12 months old, 6 points. https://osv.dev/vulnerability/GHSA-q9r5-6hrr-9ph7"
        ],
        "verdict": "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.",
        "bestFor": "Small Python projects and research that want code-writing agents with minimal abstraction.",
        "strengths": [
          "CodeAgent and ToolCallingAgent in a small, readable codebase",
          "MCP tools from any server through MCPClient",
          "Remote execution through E2B, Docker, Modal or Blaxel, with a guide on when it's needed",
          "No telemetry found in the source",
          "llms.txt and Markdown docs on huggingface.co"
        ],
        "weaknesses": [
          "No release since 1.26.0 on 29 May 2026, and few commits to main since August",
          "The local Python executor isn't a security boundary, per its own guide",
          "A critical RCE in the remote executor (published December 2025) was fixed in February 2026",
          "No human approval hook, retry or resume built in",
          "Breaking removals such as WasmExecutor shipped in minor releases"
        ],
        "agentNotes": [
          "Run CodeAgent with `executor_type` set 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"
        ],
        "metrics": {
          "kind": "local",
          "measured": false
        },
        "reviewCount": 0,
        "avgRating": 0,
        "history": [
          {
            "basis": "public evidence",
            "confidence": "medium",
            "grade": "B",
            "methodology": "1.0",
            "run": "2026-10-01",
            "runLabel": "October 2026 research run",
            "score": 62.5
          }
        ],
        "editorialScores": {
          "ergonomics": 68,
          "maintenance": 34,
          "payments": 90,
          "reliability": 64,
          "schema": 81,
          "security": 66,
          "transparency": 67
        },
        "provenanceScore": 62,
        "checked": {
          "categories": {
            "ergonomics": "2026-11-06",
            "maintenance": "2026-11-06",
            "payments": "2026-11-06",
            "reliability": "2026-11-06",
            "schema": "2026-11-06",
            "security": "2026-11-06",
            "transparency": "2026-11-06"
          },
          "last": "2026-11-06",
          "lastMoved": "2026-11-13",
          "oldest": "2026-11-06",
          "stale": false,
          "staleAfterDays": 90
        }
      },
      "connect": {
        "install": "pip install smolagents   # MCP: pip install 'smolagents[mcp]'"
      },
      "letme": {
        "capability": "https://letme.dev/agent.framework",
        "tool": "https://letme.dev/smolagents"
      },
      "sameCompany": [
        "hugging-face-inference-providers",
        "hugging-face-inference-endpoints",
        "carbon-x",
        "smollm3-3b"
      ],
      "area": "frameworks",
      "provenance": {
        "legalEntity": "Hugging Face, Inc.",
        "domain": "huggingface.co",
        "domainRegistered": "",
        "endpointOnVendorDomain": null,
        "terms": "https://huggingface.co/terms-of-service",
        "privacy": "https://huggingface.co/privacy",
        "statusPage": "",
        "changelog": "https://github.com/huggingface/smolagents/releases",
        "securityTxt": "unknown",
        "checked": "2026-11-06",
        "notes": [
          "SECURITY.md takes reports through GitHub private vulnerability reporting or security@huggingface.co, with no bounty.",
          "huggingface.co/robots.txt allows all crawlers.",
          "The terms and privacy links are Hugging Face's site-wide documents; the library itself collects nothing."
        ],
        "score": 62
      },
      "pageJsonUrl": "https://www.anchorterminal.com/tools/smolagents.json",
      "live": {
        "slug": "smolagents",
        "versions": [
          {
            "registry": "github",
            "name": "huggingface/smolagents",
            "version": "v1.26.0",
            "released": "2026-05-29",
            "seenAt": "2026-11-27T06:54:50.005875211Z"
          },
          {
            "registry": "pypi",
            "name": "smolagents",
            "version": "1.26.0",
            "released": "2026-05-29",
            "seenAt": "2026-11-27T06:54:49.738612678Z"
          }
        ],
        "githubStars": 30563,
        "pypiWeekly": 147641,
        "securityTxt": {
          "url": "https://huggingface.co/.well-known/security.txt",
          "state": "valid",
          "expires": "2030-07-01T08:42:00.000Z",
          "checkedAt": "2026-11-27T16:54:41.958589691Z"
        },
        "llmsTxt": {
          "url": "https://huggingface.co/docs/smolagents/llms.txt",
          "ok": true,
          "status": 200,
          "checkedAt": "2026-11-27T16:58:07.75766346Z"
        },
        "domain": {
          "domain": "huggingface.co",
          "checkedAt": "2026-11-22T15:51:13.410107379Z"
        },
        "github": {
          "repo": "huggingface/smolagents",
          "checkedAt": "2026-11-23T13:44:28.646702356Z",
          "stars": 30499,
          "archived": false,
          "issuesEnabled": true,
          "pushedAt": "2026-11-23T10:24:16Z",
          "openIssues": 455,
          "openPRs": 111,
          "issuesOpened90d": 185,
          "issuesClosed90d": 25,
          "prsMerged90d": 23,
          "ci": {
            "branch": "main",
            "runs": 50,
            "success": 50,
            "failure": 0,
            "other": 0,
            "latest": "success",
            "latestAt": "2026-11-23T10:24:41Z"
          },
          "replies": {
            "sampled": 25,
            "unanswered": 18,
            "medianDays": 1.3
          }
        },
        "updatedAt": "2026-11-27T16:58:07.75766346Z"
      }
    },
    "edges": [
      {
        "by": 53,
        "category": "maintenance",
        "leads": "pydantic-ai-harness",
        "name": "Maintenance \u0026 community",
        "reasons": {
          "a": "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.",
          "b": "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."
        },
        "scores": {
          "a": 87,
          "b": 34
        }
      },
      {
        "by": 21,
        "category": "ergonomics",
        "leads": "pydantic-ai-harness",
        "name": "Agent ergonomics",
        "reasons": {
          "a": "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.",
          "b": "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."
        },
        "scores": {
          "a": 89,
          "b": 68
        }
      },
      {
        "by": 19,
        "category": "security",
        "leads": "pydantic-ai-harness",
        "name": "Security \u0026 auth",
        "reasons": {
          "a": "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.",
          "b": "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."
        },
        "scores": {
          "a": 85,
          "b": 66
        }
      },
      {
        "by": 17,
        "category": "schema",
        "leads": "pydantic-ai-harness",
        "name": "Schema \u0026 documentation",
        "reasons": {
          "a": "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.",
          "b": "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."
        },
        "scores": {
          "a": 98,
          "b": 81
        }
      },
      {
        "by": 17,
        "category": "transparency",
        "leads": "pydantic-ai-harness",
        "name": "Transparency \u0026 trust",
        "reasons": {
          "a": "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.",
          "b": "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."
        },
        "scores": {
          "a": 82,
          "b": 65
        }
      }
    ],
    "facts": [
      {
        "a": "Agent framework",
        "b": "Agent framework",
        "name": "Kind"
      },
      {
        "a": "Pydantic",
        "b": "Hugging Face",
        "name": "Vendor"
      },
      {
        "a": "no (local only)",
        "b": "no (local only)",
        "name": "Hosted endpoint"
      },
      {
        "a": "",
        "b": "",
        "name": "Transports"
      },
      {
        "a": "None",
        "b": "None",
        "name": "Auth"
      },
      {
        "a": "Free",
        "b": "Free",
        "name": "Pricing"
      },
      {
        "a": "no",
        "b": "no",
        "name": "x402"
      },
      {
        "a": "MIT",
        "b": "Apache-2.0",
        "name": "Licence"
      },
      {
        "a": "yes",
        "b": "no",
        "name": "Read-only variant documented"
      },
      {
        "a": "yes",
        "b": "yes",
        "name": "llms.txt"
      },
      {
        "a": "2026-11-27",
        "b": "2026-05-29",
        "name": "Last release"
      },
      {
        "a": "no date given",
        "b": "2022-09-15",
        "name": "Terms last updated"
      },
      {
        "a": "2024-02-21",
        "b": "2023-03-28",
        "name": "Privacy policy last updated"
      },
      {
        "a": "not found in the text",
        "b": "not found in the text",
        "name": "Customer content may train models"
      },
      {
        "a": "not found in the text",
        "b": "not found in the text",
        "name": "Terms restrict automated access"
      },
      {
        "a": "yes",
        "b": "not found in the text",
        "name": "Terms restrict benchmarking"
      },
      {
        "a": "not found in the text",
        "b": "yes",
        "name": "Terms or service can change without notice"
      },
      {
        "a": "yes",
        "b": "not found in the text",
        "name": "Arbitration or class-action waiver"
      },
      {
        "a": "none",
        "b": "30k stars, 171k PyPI/wk",
        "name": "Popularity"
      }
    ],
    "faq": [
      {
        "answer": "Pydantic AI Harness scores 83.5 (A) on agent readiness against smolagents's 62.5 (B), and leads in 5 of 7 scored categories.",
        "question": "Which is better for AI agents, Pydantic AI Harness or smolagents?"
      },
      {
        "answer": "Yes. Pydantic AI Harness is open source (MIT). smolagents is open source (Apache-2.0).",
        "question": "Are Pydantic AI Harness and smolagents open source?"
      }
    ],
    "goodFor": [
      {
        "aheadOn": [
          "Schema \u0026 documentation, 98 against 81",
          "Agent ergonomics, 89 against 68",
          "Security \u0026 auth, 85 against 66",
          "Maintenance \u0026 community, 87 against 34",
          "Transparency \u0026 trust, 82 against 65"
        ],
        "also": [
          "Agent-ready, a grade of BB or better",
          "No incidents deducted, where smolagents loses 6 points for them"
        ],
        "goodFor": "Python developers building coding, research or long-running agents on Pydantic AI who want sandboxes, budgets and approvals as parts.",
        "slug": "pydantic-ai-harness",
        "watchFor": "0.76.0 and classed Alpha. Minor releases may rename parameters or change defaults"
      },
      {
        "aheadOn": null,
        "also": null,
        "goodFor": "Small Python projects and research that want code-writing agents with minimal abstraction.",
        "slug": "smolagents",
        "watchFor": "No release since 1.26.0 on 29 May 2026, and few commits to main since August"
      }
    ],
    "history": {
      "pydantic-ai-harness": null,
      "smolagents": [
        {
          "causes": [
            "method"
          ],
          "date": "2026-11-13",
          "delta": 3.8,
          "from": 58.7,
          "fromGrade": "C",
          "to": 62.5,
          "toGrade": "B"
        }
      ]
    },
    "job": {
      "capability": "agent.framework",
      "name": "Agent frameworks"
    },
    "others": [
      {
        "json": "https://www.anchorterminal.com/compare/agentos-vs-pydantic-ai-harness.json",
        "title": "AgentOS vs Pydantic AI Harness",
        "url": "https://www.anchorterminal.com/compare/agentos-vs-pydantic-ai-harness"
      },
      {
        "json": "https://www.anchorterminal.com/compare/agentos-vs-smolagents.json",
        "title": "AgentOS vs smolagents",
        "url": "https://www.anchorterminal.com/compare/agentos-vs-smolagents"
      },
      {
        "json": "https://www.anchorterminal.com/compare/agno-vs-pydantic-ai-harness.json",
        "title": "Agno vs Pydantic AI Harness",
        "url": "https://www.anchorterminal.com/compare/agno-vs-pydantic-ai-harness"
      },
      {
        "json": "https://www.anchorterminal.com/compare/agno-vs-smolagents.json",
        "title": "Agno vs smolagents",
        "url": "https://www.anchorterminal.com/compare/agno-vs-smolagents"
      },
      {
        "json": "https://www.anchorterminal.com/compare/boxlang-ai-vs-pydantic-ai-harness.json",
        "title": "BoxLang AI vs Pydantic AI Harness",
        "url": "https://www.anchorterminal.com/compare/boxlang-ai-vs-pydantic-ai-harness"
      },
      {
        "json": "https://www.anchorterminal.com/compare/boxlang-ai-vs-smolagents.json",
        "title": "BoxLang AI vs smolagents",
        "url": "https://www.anchorterminal.com/compare/boxlang-ai-vs-smolagents"
      },
      {
        "json": "https://www.anchorterminal.com/compare/claude-agent-sdk-vs-pydantic-ai-harness.json",
        "title": "Claude Agent SDK vs Pydantic AI Harness",
        "url": "https://www.anchorterminal.com/compare/claude-agent-sdk-vs-pydantic-ai-harness"
      },
      {
        "json": "https://www.anchorterminal.com/compare/claude-agent-sdk-vs-smolagents.json",
        "title": "Claude Agent SDK vs smolagents",
        "url": "https://www.anchorterminal.com/compare/claude-agent-sdk-vs-smolagents"
      },
      {
        "json": "https://www.anchorterminal.com/compare/crewai-vs-pydantic-ai-harness.json",
        "title": "CrewAI vs Pydantic AI Harness",
        "url": "https://www.anchorterminal.com/compare/crewai-vs-pydantic-ai-harness"
      },
      {
        "json": "https://www.anchorterminal.com/compare/crewai-vs-smolagents.json",
        "title": "CrewAI vs smolagents",
        "url": "https://www.anchorterminal.com/compare/crewai-vs-smolagents"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-pydantic-ai-harness.json",
        "title": "Cursor Agent SDK vs Pydantic AI Harness",
        "url": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-pydantic-ai-harness"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-smolagents.json",
        "title": "Cursor Agent SDK vs smolagents",
        "url": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-smolagents"
      },
      {
        "json": "https://www.anchorterminal.com/compare/docker-agent-vs-pydantic-ai-harness.json",
        "title": "Docker Agent vs Pydantic AI Harness",
        "url": "https://www.anchorterminal.com/compare/docker-agent-vs-pydantic-ai-harness"
      },
      {
        "json": "https://www.anchorterminal.com/compare/docker-agent-vs-smolagents.json",
        "title": "Docker Agent vs smolagents",
        "url": "https://www.anchorterminal.com/compare/docker-agent-vs-smolagents"
      },
      {
        "json": "https://www.anchorterminal.com/compare/dspy-vs-pydantic-ai-harness.json",
        "title": "DSPy vs Pydantic AI Harness",
        "url": "https://www.anchorterminal.com/compare/dspy-vs-pydantic-ai-harness"
      },
      {
        "json": "https://www.anchorterminal.com/compare/dspy-vs-smolagents.json",
        "title": "DSPy vs smolagents",
        "url": "https://www.anchorterminal.com/compare/dspy-vs-smolagents"
      },
      {
        "json": "https://www.anchorterminal.com/compare/genkit-vs-pydantic-ai-harness.json",
        "title": "Genkit vs Pydantic AI Harness",
        "url": "https://www.anchorterminal.com/compare/genkit-vs-pydantic-ai-harness"
      },
      {
        "json": "https://www.anchorterminal.com/compare/genkit-vs-smolagents.json",
        "title": "Genkit vs smolagents",
        "url": "https://www.anchorterminal.com/compare/genkit-vs-smolagents"
      },
      {
        "json": "https://www.anchorterminal.com/compare/google-adk-vs-pydantic-ai-harness.json",
        "title": "Agent Development Kit (ADK) vs Pydantic AI Harness",
        "url": "https://www.anchorterminal.com/compare/google-adk-vs-pydantic-ai-harness"
      },
      {
        "json": "https://www.anchorterminal.com/compare/google-adk-vs-smolagents.json",
        "title": "Agent Development Kit (ADK) vs smolagents",
        "url": "https://www.anchorterminal.com/compare/google-adk-vs-smolagents"
      },
      {
        "json": "https://www.anchorterminal.com/compare/guilds-run-vs-pydantic-ai-harness.json",
        "title": "guilds.run vs Pydantic AI Harness",
        "url": "https://www.anchorterminal.com/compare/guilds-run-vs-pydantic-ai-harness"
      },
      {
        "json": "https://www.anchorterminal.com/compare/guilds-run-vs-smolagents.json",
        "title": "guilds.run vs smolagents",
        "url": "https://www.anchorterminal.com/compare/guilds-run-vs-smolagents"
      },
      {
        "json": "https://www.anchorterminal.com/compare/haystack-vs-pydantic-ai-harness.json",
        "title": "Haystack vs Pydantic AI Harness",
        "url": "https://www.anchorterminal.com/compare/haystack-vs-pydantic-ai-harness"
      },
      {
        "json": "https://www.anchorterminal.com/compare/haystack-vs-smolagents.json",
        "title": "Haystack vs smolagents",
        "url": "https://www.anchorterminal.com/compare/haystack-vs-smolagents"
      },
      {
        "json": "https://www.anchorterminal.com/compare/langgraph-vs-pydantic-ai-harness.json",
        "title": "LangGraph vs Pydantic AI Harness",
        "url": "https://www.anchorterminal.com/compare/langgraph-vs-pydantic-ai-harness"
      },
      {
        "json": "https://www.anchorterminal.com/compare/langgraph-vs-smolagents.json",
        "title": "LangGraph vs smolagents",
        "url": "https://www.anchorterminal.com/compare/langgraph-vs-smolagents"
      },
      {
        "json": "https://www.anchorterminal.com/compare/llamaindex-vs-pydantic-ai-harness.json",
        "title": "LlamaIndex Framework vs Pydantic AI Harness",
        "url": "https://www.anchorterminal.com/compare/llamaindex-vs-pydantic-ai-harness"
      },
      {
        "json": "https://www.anchorterminal.com/compare/llamaindex-vs-smolagents.json",
        "title": "LlamaIndex Framework vs smolagents",
        "url": "https://www.anchorterminal.com/compare/llamaindex-vs-smolagents"
      },
      {
        "json": "https://www.anchorterminal.com/compare/mastra-vs-pydantic-ai-harness.json",
        "title": "Mastra vs Pydantic AI Harness",
        "url": "https://www.anchorterminal.com/compare/mastra-vs-pydantic-ai-harness"
      },
      {
        "json": "https://www.anchorterminal.com/compare/mastra-vs-smolagents.json",
        "title": "Mastra vs smolagents",
        "url": "https://www.anchorterminal.com/compare/mastra-vs-smolagents"
      },
      {
        "json": "https://www.anchorterminal.com/compare/microsoft-agent-framework-vs-pydantic-ai-harness.json",
        "title": "Microsoft Agent Framework vs Pydantic AI Harness",
        "url": "https://www.anchorterminal.com/compare/microsoft-agent-framework-vs-pydantic-ai-harness"
      },
      {
        "json": "https://www.anchorterminal.com/compare/microsoft-agent-framework-vs-smolagents.json",
        "title": "Microsoft Agent Framework vs smolagents",
        "url": "https://www.anchorterminal.com/compare/microsoft-agent-framework-vs-smolagents"
      },
      {
        "json": "https://www.anchorterminal.com/compare/openai-agents-sdk-vs-pydantic-ai-harness.json",
        "title": "OpenAI Agents SDK vs Pydantic AI Harness",
        "url": "https://www.anchorterminal.com/compare/openai-agents-sdk-vs-pydantic-ai-harness"
      },
      {
        "json": "https://www.anchorterminal.com/compare/openai-agents-sdk-vs-smolagents.json",
        "title": "OpenAI Agents SDK vs smolagents",
        "url": "https://www.anchorterminal.com/compare/openai-agents-sdk-vs-smolagents"
      },
      {
        "json": "https://www.anchorterminal.com/compare/pydantic-ai-harness-vs-strands-agents.json",
        "title": "Pydantic AI Harness vs Strands Agents",
        "url": "https://www.anchorterminal.com/compare/pydantic-ai-harness-vs-strands-agents"
      },
      {
        "json": "https://www.anchorterminal.com/compare/pydantic-ai-harness-vs-terse-durable-actors.json",
        "title": "Pydantic AI Harness vs Terse Durable Actors",
        "url": "https://www.anchorterminal.com/compare/pydantic-ai-harness-vs-terse-durable-actors"
      },
      {
        "json": "https://www.anchorterminal.com/compare/pydantic-ai-harness-vs-tradingagents.json",
        "title": "Pydantic AI Harness vs TradingAgents",
        "url": "https://www.anchorterminal.com/compare/pydantic-ai-harness-vs-tradingagents"
      },
      {
        "json": "https://www.anchorterminal.com/compare/pydantic-ai-harness-vs-vercel-ai-sdk.json",
        "title": "Pydantic AI Harness vs AI SDK",
        "url": "https://www.anchorterminal.com/compare/pydantic-ai-harness-vs-vercel-ai-sdk"
      },
      {
        "json": "https://www.anchorterminal.com/compare/pydantic-ai-vs-pydantic-ai-harness.json",
        "title": "Pydantic AI vs Pydantic AI Harness",
        "url": "https://www.anchorterminal.com/compare/pydantic-ai-vs-pydantic-ai-harness"
      },
      {
        "json": "https://www.anchorterminal.com/compare/pydantic-ai-vs-smolagents.json",
        "title": "Pydantic AI vs smolagents",
        "url": "https://www.anchorterminal.com/compare/pydantic-ai-vs-smolagents"
      },
      {
        "json": "https://www.anchorterminal.com/compare/smolagents-vs-strands-agents.json",
        "title": "smolagents vs Strands Agents",
        "url": "https://www.anchorterminal.com/compare/smolagents-vs-strands-agents"
      },
      {
        "json": "https://www.anchorterminal.com/compare/smolagents-vs-terse-durable-actors.json",
        "title": "smolagents vs Terse Durable Actors",
        "url": "https://www.anchorterminal.com/compare/smolagents-vs-terse-durable-actors"
      },
      {
        "json": "https://www.anchorterminal.com/compare/smolagents-vs-tradingagents.json",
        "title": "smolagents vs TradingAgents",
        "url": "https://www.anchorterminal.com/compare/smolagents-vs-tradingagents"
      },
      {
        "json": "https://www.anchorterminal.com/compare/smolagents-vs-vercel-ai-sdk.json",
        "title": "smolagents vs AI SDK",
        "url": "https://www.anchorterminal.com/compare/smolagents-vs-vercel-ai-sdk"
      }
    ],
    "panel": null,
    "scores": [
      {
        "by": 3,
        "edge": "smolagents",
        "key": "reliability",
        "name": "Reliability",
        "pydantic-ai-harness": 61,
        "smolagents": 64,
        "weight": 16
      },
      {
        "key": "performance",
        "name": "Performance",
        "pending": true,
        "weight": 10
      },
      {
        "by": 17,
        "edge": "pydantic-ai-harness",
        "key": "schema",
        "name": "Schema \u0026 documentation",
        "pydantic-ai-harness": 98,
        "smolagents": 81,
        "weight": 13
      },
      {
        "by": 21,
        "edge": "pydantic-ai-harness",
        "key": "ergonomics",
        "name": "Agent ergonomics",
        "pydantic-ai-harness": 89,
        "smolagents": 68,
        "weight": 13
      },
      {
        "by": 19,
        "edge": "pydantic-ai-harness",
        "key": "security",
        "name": "Security \u0026 auth",
        "pydantic-ai-harness": 85,
        "smolagents": 66,
        "weight": 14
      },
      {
        "by": 0,
        "edge": "",
        "key": "payments",
        "name": "Payments \u0026 pricing",
        "pydantic-ai-harness": 90,
        "smolagents": 90,
        "weight": 10
      },
      {
        "key": "tasks",
        "name": "Task success",
        "pending": true,
        "weight": 10
      },
      {
        "by": 53,
        "edge": "pydantic-ai-harness",
        "key": "maintenance",
        "name": "Maintenance \u0026 community",
        "pydantic-ai-harness": 87,
        "smolagents": 34,
        "weight": 7
      },
      {
        "by": 17,
        "edge": "pydantic-ai-harness",
        "key": "transparency",
        "name": "Transparency \u0026 trust",
        "pydantic-ai-harness": 82,
        "smolagents": 65,
        "weight": 7
      }
    ],
    "summary": "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.",
    "tasks": null,
    "tutorials": [],
    "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."
    }
  },
  "kind": "anchor.page",
  "links": {
    "api": "https://www.anchorterminal.com/api/v1/index.json",
    "html": "https://www.anchorterminal.com/compare/pydantic-ai-harness-vs-smolagents",
    "json": "https://www.anchorterminal.com/compare/pydantic-ai-harness-vs-smolagents.json",
    "llms": "https://www.anchorterminal.com/llms.txt",
    "markdown": "https://www.anchorterminal.com/compare/pydantic-ai-harness-vs-smolagents.md",
    "mcp": "https://www.anchorterminal.com/mcp",
    "slim": "https://www.anchorterminal.com/compare/pydantic-ai-harness-vs-smolagents.min.md"
  },
  "markdown": "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.\n\n- Pydantic AI Harness: grade A, 83.5/100, rank #15 of 1698. Markdown https://www.anchorterminal.com/tools/pydantic-ai-harness.md · JSON https://www.anchorterminal.com/api/v1/tools/pydantic-ai-harness.json\n- smolagents: grade B, 62.5/100, rank #753 of 1698. Markdown https://www.anchorterminal.com/tools/smolagents.md · JSON https://www.anchorterminal.com/api/v1/tools/smolagents.json\n- Best agent frameworks and SDKs: https://www.anchorterminal.com/best/frameworks/index.md\n- All 276 frameworks comparisons: https://www.anchorterminal.com/compare/frameworks/index.md\n\n## Which one, for what\n\n### Pydantic AI Harness (A)\n\nGood for: Python developers building coding, research or long-running agents on Pydantic AI who want sandboxes, budgets and approvals as parts.\n\nAhead on:\n- Schema \u0026 documentation, 98 against 81\n- Agent ergonomics, 89 against 68\n- Security \u0026 auth, 85 against 66\n- Maintenance \u0026 community, 87 against 34\n- Transparency \u0026 trust, 82 against 65\n\nAlso in its favour:\n- Agent-ready, a grade of BB or better\n- No incidents deducted, where smolagents loses 6 points for them\n\nWatch for: 0.76.0 and classed Alpha. Minor releases may rename parameters or change defaults\n\n### smolagents (B)\n\nGood for: Small Python projects and research that want code-writing agents with minimal abstraction.\n\nWatch for: No release since 1.26.0 on 29 May 2026, and few commits to main since August\n\n\n## Why the edge\n\n### Maintenance \u0026 community: Pydantic AI Harness +53\n\n- 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.\n- 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.\n\n### Agent ergonomics: Pydantic AI Harness +21\n\n- 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.\n- 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.\n\n### Security \u0026 auth: Pydantic AI Harness +19\n\n- 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.\n- 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.\n\n### Schema \u0026 documentation: Pydantic AI Harness +17\n\n- 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.\n- 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.\n\n### Transparency \u0026 trust: Pydantic AI Harness +17\n\n- 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.\n- 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.\n\n## Score by category\n\n| Category | Weight | Pydantic AI Harness | smolagents | Edge |\n| --- | --- | --- | --- | --- |\n| Reliability | 16% | 61 | 64 | smolagents +3 |\n| Performance | 10%, pending | pending | pending | not scored in this run |\n| Schema \u0026 documentation | 13% | 98 | 81 | Pydantic AI Harness +17 |\n| Agent ergonomics | 13% | 89 | 68 | Pydantic AI Harness +21 |\n| Security \u0026 auth | 14% | 85 | 66 | Pydantic AI Harness +19 |\n| Payments \u0026 pricing | 10% | 90 | 90 | even |\n| Task success | 10%, pending | pending | pending | not scored in this run |\n| Maintenance \u0026 community | 7% | 87 | 34 | Pydantic AI Harness +53 |\n| Transparency \u0026 trust | 7% | 82 | 65 | Pydantic AI Harness +17 |\n| Negative events | ≤15 | 0 | -6 | |\n| **Total** | | **83.5 · A** | **62.5 · B** | |\n\n## Facts side by side\n\n| Fact | Pydantic AI Harness | smolagents |\n| --- | --- | --- |\n| Kind | Agent framework | Agent framework |\n| Vendor | Pydantic | Hugging Face |\n| Hosted endpoint | no (local only) | no (local only) |\n| Transports |  |  |\n| Auth | None | None |\n| Pricing | Free | Free |\n| x402 | no | no |\n| Licence | MIT | Apache-2.0 |\n| Read-only variant documented | yes | no |\n| llms.txt | yes | yes |\n| Last release | 2026-11-27 | 2026-05-29 |\n| Terms last updated | no date given | 2022-09-15 |\n| Privacy policy last updated | 2024-02-21 | 2023-03-28 |\n| Customer content may train models | not found in the text | not found in the text |\n| Terms restrict automated access | not found in the text | not found in the text |\n| Terms restrict benchmarking | yes | not found in the text |\n| Terms or service can change without notice | not found in the text | yes |\n| Arbitration or class-action waiver | yes | not found in the text |\n| Popularity | none | 30k stars, 171k PyPI/wk |\n\n## How the scores have moved\n\n### Pydantic AI Harness\n\nNo score change since it was listed.\n\n### smolagents\n\n- +3.8 on 13 November 2026 (C to B): checklist\n\n## Verdicts\n\n**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.\n\n**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.\n\n## Before you call either\n\n### Pydantic AI Harness\n\n1. Attach a workspace capability. Harness capabilities never pick one, and a run without one fails at its start\n2. Use a sandbox capability instead of `LocalWorkspace` for model-written commands. `LocalWorkspace` runs them on your machine as you\n3. Add `Permissions` in `auto` or `read-only` mode, with a deferred-call handler, before letting `Coder` run unattended\n4. Set `PromptInjectionDefender(block_high_risk=True)` if tool results should be blocked rather than only flagged\n5. Pin the Harness and Pydantic AI together and read the release notes before a minor upgrade. 0.x minors can break APIs\n\n### smolagents\n\n1. Run CodeAgent with `executor_type` set to e2b, docker, modal or blaxel whenever the model or its inputs aren't trusted\n2. Use smolagents 1.24.0 or later to get the remote-executor deserialisation fix\n3. Set max_steps and final_answer_checks so a run stops on its own\n4. Pass structured_output explicitly to MCPClient to avoid the default-change warning\n5. Pin the version, since minor releases have removed APIs\n\n## Questions\n\n### Which is better for AI agents, Pydantic AI Harness or smolagents?\n\nPydantic AI Harness scores 83.5 (A) on agent readiness against smolagents's 62.5 (B), and leads in 5 of 7 scored categories.\n\n### Are Pydantic AI Harness and smolagents open source?\n\nYes. Pydantic AI Harness is open source (MIT). smolagents is open source (Apache-2.0).\n\n\n## For agents\n\n- This comparison as JSON: https://www.anchorterminal.com/compare/pydantic-ai-harness-vs-smolagents.json, and with the fewest tokens: https://www.anchorterminal.com/compare/pydantic-ai-harness-vs-smolagents.min.md\n- Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {\"a\": \"pydantic-ai-harness\", \"b\": \"smolagents\"}`. From a terminal: `anchor compare pydantic-ai-harness smolagents`\n- Each listing in full: https://www.anchorterminal.com/api/v1/tools/pydantic-ai-harness.json and https://www.anchorterminal.com/api/v1/tools/smolagents.json\n\n## Other comparisons with Pydantic AI Harness or smolagents\n\n- [AgentOS vs Pydantic AI Harness](https://www.anchorterminal.com/compare/agentos-vs-pydantic-ai-harness.md)\n- [AgentOS vs smolagents](https://www.anchorterminal.com/compare/agentos-vs-smolagents.md)\n- [Agno vs Pydantic AI Harness](https://www.anchorterminal.com/compare/agno-vs-pydantic-ai-harness.md)\n- [Agno vs smolagents](https://www.anchorterminal.com/compare/agno-vs-smolagents.md)\n- [BoxLang AI vs Pydantic AI Harness](https://www.anchorterminal.com/compare/boxlang-ai-vs-pydantic-ai-harness.md)\n- [BoxLang AI vs smolagents](https://www.anchorterminal.com/compare/boxlang-ai-vs-smolagents.md)\n- [Claude Agent SDK vs Pydantic AI Harness](https://www.anchorterminal.com/compare/claude-agent-sdk-vs-pydantic-ai-harness.md)\n- [Claude Agent SDK vs smolagents](https://www.anchorterminal.com/compare/claude-agent-sdk-vs-smolagents.md)\n- [CrewAI vs Pydantic AI Harness](https://www.anchorterminal.com/compare/crewai-vs-pydantic-ai-harness.md)\n- [CrewAI vs smolagents](https://www.anchorterminal.com/compare/crewai-vs-smolagents.md)\n- [Cursor Agent SDK vs Pydantic AI Harness](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-pydantic-ai-harness.md)\n- [Cursor Agent SDK vs smolagents](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-smolagents.md)\n- [Docker Agent vs Pydantic AI Harness](https://www.anchorterminal.com/compare/docker-agent-vs-pydantic-ai-harness.md)\n- [Docker Agent vs smolagents](https://www.anchorterminal.com/compare/docker-agent-vs-smolagents.md)\n- [DSPy vs Pydantic AI Harness](https://www.anchorterminal.com/compare/dspy-vs-pydantic-ai-harness.md)\n- [DSPy vs smolagents](https://www.anchorterminal.com/compare/dspy-vs-smolagents.md)\n- [Genkit vs Pydantic AI Harness](https://www.anchorterminal.com/compare/genkit-vs-pydantic-ai-harness.md)\n- [Genkit vs smolagents](https://www.anchorterminal.com/compare/genkit-vs-smolagents.md)\n- [Agent Development Kit (ADK) vs Pydantic AI Harness](https://www.anchorterminal.com/compare/google-adk-vs-pydantic-ai-harness.md)\n- [Agent Development Kit (ADK) vs smolagents](https://www.anchorterminal.com/compare/google-adk-vs-smolagents.md)\n- [guilds.run vs Pydantic AI Harness](https://www.anchorterminal.com/compare/guilds-run-vs-pydantic-ai-harness.md)\n- [guilds.run vs smolagents](https://www.anchorterminal.com/compare/guilds-run-vs-smolagents.md)\n- [Haystack vs Pydantic AI Harness](https://www.anchorterminal.com/compare/haystack-vs-pydantic-ai-harness.md)\n- [Haystack vs smolagents](https://www.anchorterminal.com/compare/haystack-vs-smolagents.md)\n- [LangGraph vs Pydantic AI Harness](https://www.anchorterminal.com/compare/langgraph-vs-pydantic-ai-harness.md)\n- [LangGraph vs smolagents](https://www.anchorterminal.com/compare/langgraph-vs-smolagents.md)\n- [LlamaIndex Framework vs Pydantic AI Harness](https://www.anchorterminal.com/compare/llamaindex-vs-pydantic-ai-harness.md)\n- [LlamaIndex Framework vs smolagents](https://www.anchorterminal.com/compare/llamaindex-vs-smolagents.md)\n- [Mastra vs Pydantic AI Harness](https://www.anchorterminal.com/compare/mastra-vs-pydantic-ai-harness.md)\n- [Mastra vs smolagents](https://www.anchorterminal.com/compare/mastra-vs-smolagents.md)\n- [Microsoft Agent Framework vs Pydantic AI Harness](https://www.anchorterminal.com/compare/microsoft-agent-framework-vs-pydantic-ai-harness.md)\n- [Microsoft Agent Framework vs smolagents](https://www.anchorterminal.com/compare/microsoft-agent-framework-vs-smolagents.md)\n- [OpenAI Agents SDK vs Pydantic AI Harness](https://www.anchorterminal.com/compare/openai-agents-sdk-vs-pydantic-ai-harness.md)\n- [OpenAI Agents SDK vs smolagents](https://www.anchorterminal.com/compare/openai-agents-sdk-vs-smolagents.md)\n- [Pydantic AI Harness vs Strands Agents](https://www.anchorterminal.com/compare/pydantic-ai-harness-vs-strands-agents.md)\n- [Pydantic AI Harness vs Terse Durable Actors](https://www.anchorterminal.com/compare/pydantic-ai-harness-vs-terse-durable-actors.md)\n- [Pydantic AI Harness vs TradingAgents](https://www.anchorterminal.com/compare/pydantic-ai-harness-vs-tradingagents.md)\n- [Pydantic AI Harness vs AI SDK](https://www.anchorterminal.com/compare/pydantic-ai-harness-vs-vercel-ai-sdk.md)\n- [Pydantic AI vs Pydantic AI Harness](https://www.anchorterminal.com/compare/pydantic-ai-vs-pydantic-ai-harness.md)\n- [Pydantic AI vs smolagents](https://www.anchorterminal.com/compare/pydantic-ai-vs-smolagents.md)\n- [smolagents vs Strands Agents](https://www.anchorterminal.com/compare/smolagents-vs-strands-agents.md)\n- [smolagents vs Terse Durable Actors](https://www.anchorterminal.com/compare/smolagents-vs-terse-durable-actors.md)\n- [smolagents vs TradingAgents](https://www.anchorterminal.com/compare/smolagents-vs-tradingagents.md)\n- [smolagents vs AI SDK](https://www.anchorterminal.com/compare/smolagents-vs-vercel-ai-sdk.md)\n",
  "meta": {
    "attribution": "Anchor Terminal (https://www.anchorterminal.com)",
    "attributionRequired": true,
    "credit": "CC BY 4.0, credit Anchor Terminal and link the page or API address you took it from (https://www.anchorterminal.com/terms/#data)",
    "docs": "https://www.anchorterminal.com/docs/",
    "generatedAt": "2026-11-27",
    "license": "CC-BY-4.0",
    "method": "https://www.anchorterminal.com/benchmark/",
    "methodology": "1.0",
    "openapi": "https://www.anchorterminal.com/openapi.json",
    "preview": false,
    "run": "2026-10-01",
    "runLabel": "October 2026 research run",
    "terms": "https://www.anchorterminal.com/terms/#data"
  },
  "page": {
    "breadcrumbs": [
      {
        "name": "Home",
        "url": "https://www.anchorterminal.com/"
      },
      {
        "name": "Compare",
        "url": "https://www.anchorterminal.com/compare/"
      },
      {
        "name": "Pydantic AI Harness vs smolagents",
        "url": ""
      }
    ],
    "description": "Pydantic AI Harness scores 83.5 (A) to smolagents's 62.5 (B) for agent frameworks. Prices, MCP, x402, uptime and agent notes side by side.",
    "facts": [
      "Pydantic AI Harness A 83.5",
      "smolagents B 62.5",
      "scores"
    ],
    "h1": "Pydantic AI Harness vs smolagents",
    "image": "https://www.anchorterminal.com/assets/og/default.png",
    "path": "/compare/pydantic-ai-harness-vs-smolagents",
    "published": "2026-10-01",
    "section": "tools",
    "title": "Pydantic AI Harness vs smolagents for AI agents (2026)",
    "toc": null,
    "updated": "2026-11-27",
    "url": "https://www.anchorterminal.com/compare/pydantic-ai-harness-vs-smolagents"
  },
  "tokens": {
    "markdown": 4650,
    "slim": 830
  },
  "version": 1
}
