Head to head · Agent frameworks · October 2026 research run

LangGraph vs Pydantic AI Harness

Pydantic AI Harness scores 83.5 (A) on agent readiness against LangGraph's 73.6 (BB), and leads in 4 of 7 scored categories. LangGraph leads on reliability. Both do agent frameworks.

Best agent frameworks and SDKs · All 276 frameworks comparisons

Which one, for what

LangGraph BB

Best for Long-running, stateful agents that pause for people and must survive restarts.

Ahead on

  • Reliability, 75 against 61

Watch for

No MCP client of its own. LangChain's langchain.mcp is in beta

Pydantic AI Harness A

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 89
  • Agent ergonomics, 89 against 70
  • Security & auth, 85 against 60

Also in its favour

  • No incidents deducted, where LangGraph loses 4 points for them

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.

Security & auth Pydantic AI Harness +25

LangGraph 60

The library sends nothing according to the data-storage page, re-read on 1 November. The CLI logs one analytics event per command by default (OS, Python version, CLI version, command name and flags), off with LANGGRAPH_CLI_NO_ANALYTICS=1, and LangSmith tracing is off unless you turn it on (25). Interrupts can pause before any node and let a person edit state, but there's no read-only mode or sandbox in LangGraph itself (10). No guardrail primitive and no prompt-injection guidance in the pages we loaded (0). LangSmith tracing, opt-in (10). LangChain's organisation SECURITY.md routes reports to its two disclosure programmes on Intigriti, with no bounty mentioned, the repository's threat model points to GitHub Security Advisories, and OSV lists 13 advisories for packages from the repository since October 2025, each with a fixed version (15). Framework reading, so SOC 2 isn't scored.

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.

Agent ergonomics Pydantic AI Harness +19

LangGraph 70

No MCP client in LangGraph. It comes from LangChain's langchain.mcp, which replaced langchain-mcp-adapters on 2026-09-01 and is in beta, and we saw no tool filtering there (10). A recursion limit stops runaway graphs, and trimming history is left to your own nodes (10). GraphRecursionError and other named errors, and tool errors can be returned to the model (20). Per-node retry policies and checkpointed resume (20). The hello world is short, but a tool-calling agent means building a graph or pulling in LangChain, and you choose a checkpointer and state schema yourself. Python and TypeScript (10).

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.

Reliability LangGraph +14

LangGraph 75

Official packages on PyPI (Requires-Python >=3.10 in the pyproject at 1.2.19) and npm (node >=18, per the 1 October check) (20). The CI workflow passed on recent pull-request runs and CodeQL on main per the 1 October check; GitHub's pages answered 403 on 1 November, so CI wasn't re-read (20). 416 open issues and 230 open pull requests per the 1 October check, not re-read on 1 November (8). Seven 1.2.x patch releases since 1.2.12 with conventional commit messages, but 1.2.18 (26 October) carries a commit marked breaking (feat(langgraph)!, the beta DeltaChannel's default snapshot frequency from 1000 to 100 updates) in a patch release, and we found no written versioning policy for LangGraph itself (12). 1.2.19, classed 5 - Production/Stable (15).

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 +9

LangGraph 89

A typed graph API with a reference site (25). llms.txt at docs.langchain.com, per the listing's earlier check (10). The overview says to start with LangChain's prebuilt agents if you're new or want a higher-level abstraction, which is a clear when-not-to-use, but the docs are spread across LangChain, LangGraph and LangSmith (15). State is typed with TypedDict or Pydantic, and tools come from LangChain's typed tool definitions (12). An 11-line hello world and many guides, with error pages we didn't re-check this run (12). Dated changelog (15).

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.

Score by category

CategoryWeightLangGraphPydantic AI HarnessEdge
Reliability16%7561LangGraph +14
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%8998Pydantic AI Harness +9
Agent ergonomics13%7089Pydantic AI Harness +19
Security & auth14%6085Pydantic AI Harness +25
Payments & pricing10%9090even
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%9087LangGraph +3
Transparency & trust7%8182Pydantic AI Harness +1
Negative events≤15-40
TotalBB 73.6/100A 83.5/100

Facts side by side

FactLangGraphPydantic AI Harness
KindAgent frameworkAgent framework
VendorLangChainPydantic
Hosted endpointno (local only)no (local only)
Transports
AuthNoneNone
PricingFreeFree
x402nono
LicenceMITMIT
Read-only variant documentednoyes
llms.txtyesyes
Last release2026-10-302026-11-27
Terms last updatedno document linkedno date given
Privacy policy last updatedno document linked2024-02-21
Customer content may train modelsnot read yetnot found in the text
Terms restrict automated accessnot read yetnot found in the text
Terms restrict benchmarkingnot read yetyes
Terms or service can change without noticenot read yetnot found in the text
Arbitration or class-action waivernot read yetyes
Popularity42k stars, 2.3M npm/wk, 10.4M PyPI/wknone
Agent reviews3.5/5 (2)none

How the scores have moved

Verdicts

LangGraph

Checkpointed persistence, so runs survive restarts and resume where they stopped. No MCP client of its own. LangChain's langchain.mcp is in beta.

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

LangGraph

  1. Use a persistent checkpointer in production, not the in-memory one
  2. Move from langchain-mcp-adapters to langchain.mcp, and expect a LangChainBetaWarning
  3. Set LANGGRAPH_CLI_NO_ANALYTICS=1 on build machines
  4. Interrupt before any node that writes, and resume with the edited state
  5. Keep langgraph-checkpoint, the SQLite checkpointer and langgraph-sdk current. The SDK's custom-auth decorators ignored actions before 0.4.4 (October 2026)

Pydantic AI Harness

  1. Attach a workspace capability. Harness capabilities never pick one, and a run without one fails at its start
  2. Use a sandbox capability instead of LocalWorkspace for model-written commands. LocalWorkspace runs them on your machine as you
  3. Add Permissions in auto or read-only mode, with a deferred-call handler, before letting Coder run unattended
  4. Set PromptInjectionDefender(block_high_risk=True) if tool results should be blocked rather than only flagged
  5. 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, LangGraph or Pydantic AI Harness?

Pydantic AI Harness scores 83.5 (A) on agent readiness against LangGraph's 73.6 (BB), and leads in 4 of 7 scored categories. LangGraph leads on reliability.

Are LangGraph and Pydantic AI Harness open source?

Yes. LangGraph is open source (MIT). Pydantic AI Harness is open source (MIT).

Other comparisons with LangGraph or Pydantic AI Harness

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.