Head to head · Agent frameworks · October 2026 research run
Cursor Agent SDK vs Pydantic AI Harness
Pydantic AI Harness scores 83.5 (A) on agent readiness against Cursor Agent SDK's 65.5 (B), and leads in every scored category. Both do agent frameworks.
Best agent frameworks and SDKs · All 276 frameworks comparisons
Which one, for what
Best for Teams already on Cursor who want version-controlled agents for pull request review, triage and Slack, with evals in CI and one-command hosting.
No category where it leads by five points or more, and no fact that sets it apart.
Watch for
Closed source under Cursor's terms, with no public repository, CI or issue tracker
Best for Python developers building coding, research or long-running agents on Pydantic AI who want sandboxes, budgets and approvals as parts.
Ahead on
- Reliability, 61 against 45
- Schema & documentation, 98 against 82
- Agent ergonomics, 89 against 80
- Security & auth, 85 against 68
- Payments & pricing, 90 against 45
- Maintenance & community, 87 against 74
- Transparency & trust, 82 against 71
Also in its favour
- Agent-ready, a grade of BB or better
- No key needed to call it
- Open source
Watch for
0.76.0 and classed Alpha. Minor releases may rename parameters or change defaults
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.
Payments & pricing Pydantic AI Harness +45
Cursor Agent SDK 45
Framework reading of the published rubric. No payment protocol (0). Per-million-token prices for Cursor models, including the default Grok 4.5 with Fast, and plan prices are public, but no price for managed hosting and no statement of which plans cover the Agent SDK were found (15). The package is free and the Free plan needs no card, but its usage is only described as limited agent requests (15). A person signs in through a browser or creates an API key in the dashboard before a model turn runs (0). 0+15+15+0 = 30. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 30 is 45.
Pydantic AI Harness 90
Self-hosted rule. No payment protocol (0). A free MIT package with nothing to buy from Pydantic, and local workspaces, Docker and the smolvm and BoxLite microVMs need no account, so the pricing, free-tier and onboarding lines take 30 each. Cloud sandboxes and models are billed by their own vendors. 0+30+30+30 = 90.
Security & auth Pydantic AI Harness +17
Cursor Agent SDK 68
Framework reading. 30 for what leaves the machine by default, 20 for approvals and sandboxing, 15 for prompt injection, 15 for audit and 20 for the security programme. Every model turn goes through Cursor's backend with a Cursor credential, even on a self-hosted server, and the data-use page says Cursor may store and train on prompts and code with Privacy Mode off. Managed hosting stores the repository and agent data whatever the Privacy Mode setting. OpenTelemetry export is off until an endpoint is set, with prompt text and tool payloads behind separate flags, and the npm update check has a documented switch. Install copies skills into ~/.cursor/skills (18). needsApproval parks a tool call for a person, dry runs stub writes and the harness tools take an allowlist, but local.sandbox is off by default, so shell commands auto-approve with the host's environment and file tools reach any path the process can. Hosted deployments enforce an egress allowlist (12). The docs tell you to turn the sandbox on for webhook payloads, diffs and chat, document HMAC and shared-secret auth on webhook routes, and warn that anyone who can talk to the agent can drive Cursor account connectors. The scaffolded memory journal shares turns across sessions, with an instruction to treat it as untrusted (10). Sessions keep every message and tool call, hooks can mirror them for audit, and ctx.approvedBy records the approver (14). security.txt and SECURITY.md with a disclosure address and Cursor's GitHub advisories, no bug bounty found, and no advisory for the three package names in OSV on 2 November (14). SOC 2 and ISO 27001 aren't scored on the framework reading. 18+12+10+14+14 = 68.
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.
Reliability Pydantic AI Harness +16
Cursor Agent SDK 45
Local-package reading, since the owner runs the framework, with Cursor's hosting as an option. Official npm package with Node 22.13 or newer stated in engines and in the docs, which also say never Bun (20). Closed source, so no public CI or test suite (0). No public issue tracker. github.com/cursor/cursor holds a README and SECURITY.md, and forum.cursor.com has no Agent SDK tag, so there's nothing to count open crashes against. The troubleshooting page lists known failures with fixes (5). A dated changelog of two entries, 0.2.29 and 0.3.0, both 23 October 2026, and 0.3.0 calls out the removed persistent option, but the 27 earlier @cursor/bdk versions and 123 @cursor/july versions have no notes, and one build ships under three package names (5). Version 0.3.0, but the changelog post of 20 October says generally available and the docs changelog labels 0.3.0 the GA release, which we read as declared stable (15). 20+0+5+5+15 = 45.
Pydantic AI Harness 61
Local-package reading. pydantic-ai-harness on PyPI, Requires-Python 3.11 or newer with classifiers to 3.15 (20). The public CI workflow runs the Harness suite on every install shape, and tests/harness holds about 145 files with some 9,500 test functions, but github.com refused our reader, so whether main is passing is unchecked (15 of 25). 186 open issues labelled pkg:harness on 27 November, 59 of them bugs and 26 of those without a reply, the oldest from 11 June, against 161 closed issues and 362 merged pull requests since 28 October (14 of 25). A written 0.x version policy says patch releases don't intentionally break behaviour, minors may, and every breaking change goes in the release notes with migration guidance, which the shared changelog carries (12 of 15). 0.76.0, classed 3 - Alpha. The docs say 0.x signals API stability, not maturity, and that the capabilities are meant for production, but that isn't a stable declaration (0). 20+15+14+12+0 = 61.
Schema & documentation Pydantic AI Harness +16
Cursor Agent SDK 82
Framework reading. Typed TypeScript declarations ship in the package, tools take Zod or JSON Schema, agent-sdk help --json describes every command's flags and exit codes, and GET /v1/info and GET /v1/tools/:name return the discovered surface and each tool's schemas. No OpenAPI document for the HTTP routes (20). cursor.com/llms.txt lists every Agent SDK page with a Markdown twin, and the package ships the docs and an llms.txt (10). The overview has a table of when to use the Agent SDK, Automations or Grok Bot, and the hooks page has a table of what to use instead of a hook for each job (18). Typed config, effect as an enum or predicate, timeArgs checked against the input schema, and slug patterns stated (13). Examples on every page, with error tables for direct tool calls, HTTP 401, 403 and 409, the limit error's JSON and seven exit codes (15). A dated changelog, but only two entries, both from 23 October 2026 (6). 20+10+18+13+15+6 = 82.
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.
Maintenance & community Pydantic AI Harness +13
Cursor Agent SDK 74
0.3.0 on npm on 25 October 2026, per the 27 October check (npm not re-read on 2 November), and the docs changelog still ends at 0.3.0 of 23 October (30). Five @grok/agent-sdk versions from 22 to 25 October and 29 @cursor/bdk versions since 22 September, per the 27 October check (20). Closed product. A public changelog with two entries and a forum with no Agent SDK tag, so we couldn't see replies to SDK reports (8). The npm package is current and official, TypeScript only (12). Dependencies are current releases, but there's no public CI and the same build goes out under three names with a postinstall script (4). 30+20+8+12+4 = 74.
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.
Transparency & trust Pydantic AI Harness +11
Cursor Agent SDK 71
Closed source. LICENSE.md reads All rights reserved, with use under Cursor's Terms of Service of 3 September 2026 (15). The data-use page says Privacy Mode keeps Customer Data out of training with zero-retention agreements at model providers, and that with it off Cursor may store and train on code and prompts. The deployment page says managed hosting stores the repository and agent data the same way under Privacy Mode and refuses Privacy Mode (Legacy). No retention periods are stated, and subprocessors are on a trust portal (14). No deprecation policy. The early-alpha migration guide, the persistent removal and the semantic-search removal are documented with error messages but only the changelog entry carries a date (6). OpenTelemetry and the update check are documented with switches. What the Cursor backend logs from turns is covered only by the data-use page (14). 15+14+6+14 = 49.
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.
Score by category
| Category | Weight | Cursor Agent SDK | Pydantic AI Harness | Edge |
|---|---|---|---|---|
| Reliability | 16% | 45 | 61 | Pydantic AI Harness +16 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 82 | 98 | Pydantic AI Harness +16 |
| Agent ergonomics | 13% | 80 | 89 | Pydantic AI Harness +9 |
| Security & auth | 14% | 68 | 85 | Pydantic AI Harness +17 |
| Payments & pricing | 10% | 45 | 90 | Pydantic AI Harness +45 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 74 | 87 | Pydantic AI Harness +13 |
| Transparency & trust | 7% | 71 | 82 | Pydantic AI Harness +11 |
| Negative events | ≤15 | 0 | 0 | |
| Total | B 65.5/100 | A 83.5/100 |
Facts side by side
| Fact | Cursor Agent SDK | Pydantic AI Harness |
|---|---|---|
| Kind | Agent framework | Agent framework |
| Vendor | Cursor | Pydantic |
| Hosted endpoint | no (local only) | no (local only) |
| Transports | ||
| Auth | OAuth or key | None |
| Pricing | Your plan | Free |
| x402 | no | no |
| Licence | Proprietary. The package's LICENSE.md reads "© Anysphere Inc. All rights reserved", with use subject to Cursor's Terms of Service (updated 3 September 2026). No source repository is published | MIT |
| Read-only variant documented | no | yes |
| llms.txt | yes | yes |
| Last release | 2026-10-25 | 2026-11-27 |
| Terms last updated | 2026-09-03 | no date given |
| Privacy policy last updated | 2026-09-29 | 2024-02-21 |
| Customer content may train models | not found in the text | not found in the text |
| Terms restrict automated access | yes | not found in the text |
| Terms restrict benchmarking | yes | yes |
| Terms or service can change without notice | yes | not found in the text |
| Arbitration or class-action waiver | yes | yes |
How the scores have moved
Pydantic AI Harness
No score change since it was listed.
Verdicts
Cursor Agent SDK
An agent-as-code framework with typed tools, declared read and write effects that drive retries and dry runs, an approval gate per tool and evals that assert on tool calls. It's closed source, every model turn runs through Cursor's backend on a Cursor plan, local sandboxing is off by default, and the changelog has two entries.
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.
Before you call either
Cursor Agent SDK
- Install
@grok/agent-sdk, not@cursor/agent-sdkfrom the launch post. That name answers 404 on npm - Set
local.sandboxbefore a turn reads webhook payloads, pull request diffs or chat. Without it shell commands auto-approve with the host's credentials - Give every tool an
effect. A tool without one counts as a write, runs once and is stubbed in dry runs - Start
agent-sdk servewith--bearer-tokenon any shared host.--allow-anonymousadmits every caller as one principal - Delete bot/hooks/memory.ts when sessions serve different people. The journal shares each turn's message and result with later turns
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
Questions
Which is better for AI agents, Cursor Agent SDK or Pydantic AI Harness?
Pydantic AI Harness scores 83.5 (A) on agent readiness against Cursor Agent SDK's 65.5 (B), and leads in every scored category.
Are Cursor Agent SDK and Pydantic AI Harness open source?
No open-source release is listed for Cursor Agent SDK. Pydantic AI Harness is open source (MIT).
Other comparisons with Cursor Agent SDK or Pydantic AI Harness
- AgentOS vs Cursor Agent SDK
- AgentOS vs Pydantic AI Harness
- Agno vs Cursor Agent SDK
- Agno vs Pydantic AI Harness
- BoxLang AI vs Cursor Agent SDK
- BoxLang AI vs Pydantic AI Harness
- Claude Agent SDK vs Cursor Agent SDK
- Claude Agent SDK vs Pydantic AI Harness
- CrewAI vs Cursor Agent SDK
- CrewAI vs Pydantic AI Harness
- Cursor Agent SDK vs Docker Agent
- Cursor Agent SDK vs DSPy
- Cursor Agent SDK vs Genkit
- Cursor Agent SDK vs Agent Development Kit (ADK)
- Cursor Agent SDK vs guilds.run
- Cursor Agent SDK vs Haystack
- Cursor Agent SDK vs LangGraph
- Cursor Agent SDK vs LlamaIndex Framework
- Cursor Agent SDK vs Mastra
- Cursor Agent SDK vs Microsoft Agent Framework
- Cursor Agent SDK vs OpenAI Agents SDK
- Cursor Agent SDK vs Pydantic AI
- Cursor Agent SDK vs smolagents
- Cursor Agent SDK vs Strands Agents
- Cursor Agent SDK vs Terse Durable Actors
- Cursor Agent SDK vs TradingAgents
- Cursor Agent SDK vs AI SDK
- Docker Agent vs Pydantic AI Harness
- DSPy vs Pydantic AI Harness
- Genkit vs Pydantic AI Harness
- Agent Development Kit (ADK) vs Pydantic AI Harness
- guilds.run vs Pydantic AI Harness
- Haystack vs Pydantic AI Harness
- LangGraph vs Pydantic AI Harness
- LlamaIndex Framework vs Pydantic AI Harness
- Mastra vs Pydantic AI Harness
- Microsoft Agent Framework vs Pydantic AI Harness
- OpenAI Agents SDK vs Pydantic AI Harness
- Pydantic AI Harness 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
Machine-readable
- This page as Markdown
/compare/cursor-agent-sdk-vs-pydantic-ai-harness.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/cursor-agent-sdk.json·/api/v1/tools/pydantic-ai-harness.json - From a terminal
anchor compare cursor-agent-sdk pydantic-ai-harness(the CLI) - Over MCP
compare_tools {"a": "cursor-agent-sdk", "b": "pydantic-ai-harness"}at/mcp, no key