{
  "data": {
    "a": {
      "slug": "mastra",
      "name": "Mastra",
      "vendor": "Kepler Software, Inc.",
      "vendorUrl": "https://mastra.ai",
      "company": "mastra.ai",
      "kind": "framework",
      "category": "frameworks",
      "summary": "Open-source TypeScript framework from Mastra for building agents and workflows, with memory, RAG, evals, tracing, an MCP client and server, and a local Studio. An optional hosted platform runs deployments and observability.",
      "url": "https://www.anchorterminal.com/tools/mastra",
      "markdownUrl": "https://www.anchorterminal.com/tools/mastra.md",
      "slimMarkdownUrl": "https://www.anchorterminal.com/tools/mastra.min.md",
      "cardUrl": "https://www.anchorterminal.com/tools/mastra.card.md",
      "jsonUrl": "https://www.anchorterminal.com/api/v1/tools/mastra.json",
      "dns": "mastra.grade.anchorterminal.com",
      "repo": "https://github.com/mastra-ai/mastra",
      "license": "Apache-2.0 for the core. Code under ee/ directories is source-available under the Mastra Enterprise License, free for development and testing",
      "transports": [],
      "packages": [
        {
          "registry": "npm",
          "name": "@mastra/core"
        },
        {
          "registry": "npm",
          "name": "@mastra/mcp"
        },
        {
          "registry": "npm",
          "name": "mastra"
        }
      ],
      "auth": "api-key",
      "authNotes": "The framework has no account of its own. The model router takes `provider/model` strings and each provider's own key. The hosted Mastra platform needs an account.",
      "pricing": "free",
      "pricingNotes": "Free and open source. You pay for model calls. The hosted platform has a $0 Starter plan with 100K observability events and 24 CPU hours, then $10 per 100K events and $0.35 a CPU hour, and Teams at $250 a month (https://mastra.ai/pricing, checked 2026-11-06).",
      "priceSummary": "Free · OSS",
      "where": "library",
      "x402": {
        "level": "no",
        "evidence": "No x402, MPP or L402 in the Mastra docs, the repository or the pricing page (checked 2026-10-06).",
        "endpoints": []
      },
      "toolCount": null,
      "popularity": {
        "githubStars": 29383,
        "npmWeekly": 3116983,
        "pypiWeekly": null,
        "asOf": "2026-11-06"
      },
      "docsUrl": "https://mastra.ai/docs",
      "llmsTxt": "https://mastra.ai/llms.txt",
      "capabilities": [
        "agent.framework",
        "agent.durable",
        "agent.mcp-client",
        "agent.multi-agent"
      ],
      "tags": [
        "framework",
        "typescript",
        "open-source",
        "llms-txt",
        "mcp",
        "telemetry-default-on"
      ],
      "lastRelease": "2026-11-04",
      "graded": true,
      "anchor": {
        "graded": true,
        "score": 78,
        "grade": "A",
        "agentReady": true,
        "rank": 72,
        "ranked": true,
        "rankOf": 1698,
        "categoryRank": 9,
        "methodology": "1.0",
        "run": "2026-10-01",
        "scores": {
          "ergonomics": 92,
          "maintenance": 96,
          "payments": 90,
          "reliability": 87,
          "schema": 98,
          "security": 67,
          "transparency": 72
        },
        "assessment": {
          "confidence": "medium",
          "date": "2026-11-06"
        },
        "negative": -8,
        "negativeNotes": [
          "2026-06-17. Malicious versions of Mastra's npm packages were published, among them @mastra/core 1.42.1 at 01:15 UTC, and GitHub malware advisories that day (GHSA-pp62-grrw-hvfp and others) say any machine that installed one should be treated as fully compromised. All 21 Mastra packages we checked on OSV carry one. Mastra published clean versions the same day and the changelogs name an \"easy-day-js\" supply-chain incident, but we found no advisory or post-mortem from Mastra. Fixed and under four months old, so 8 points. https://osv.dev/vulnerability/MAL-2026-6011"
        ],
        "verdict": "A TypeScript framework with agents, workflows with suspend and resume, memory, an MCP client and server, per-server tool approval and built-in guardrail processors including a prompt-injection detector. On 17 June 2026 malicious versions of its npm packages were published, and the CLI, server and Studio send usage analytics by default, with token counts every 15 minutes.",
        "bestFor": "TypeScript teams that want agents, workflows, memory, evals and a local Studio in one framework.",
        "strengths": [
          "MCP client with requireToolApproval per server or per tool, allowedHosts and a curated environment for stdio servers",
          "Guardrail processors for prompt injection, PII, moderation and cost limits, run on input and output",
          "Workflows with snapshots, suspend and resume, and durable agents on Inngest or an evented engine",
          "Apache 2.0 core, 1.0 since 20 January 2026, with 27 releases of @mastra/core in 90 days to 6 November",
          "llms.txt with a when-to-use section and condensed instructions for coding agents"
        ],
        "weaknesses": [
          "Malicious versions of Mastra npm packages, including @mastra/core 1.42.1, were published on 17 June 2026",
          "CLI, server and Studio send usage analytics by default, including token counts every 15 minutes, off with MASTRA_TELEMETRY_DISABLED=1",
          "No SECURITY.md, no security.txt and no bug bounty found",
          "Code under ee/ is source-available under the Mastra Enterprise License, not Apache 2.0",
          "TypeScript only, Node 22.13 or newer"
        ],
        "agentNotes": [
          "Set MASTRA_TELEMETRY_DISABLED=1 in every environment that runs the CLI, the server or Studio",
          "Pin exact versions with a lockfile, and make sure no 17 June 2026 release such as @mastra/core 1.42.1 is installed",
          "Set requireToolApproval on MCP servers that write, and allowedHosts when server URLs come from configuration",
          "Add PromptInjectionDetector as an input processor when tools return web or user content",
          "Use supervisor agents through generate() or stream(). `.network()` is deprecated"
        ],
        "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": 78
          }
        ],
        "editorialScores": {
          "ergonomics": 92,
          "maintenance": 96,
          "payments": 90,
          "reliability": 87,
          "schema": 98,
          "security": 67,
          "transparency": 72
        },
        "provenanceScore": 71,
        "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": "npm create mastra@latest   # or: npm i @mastra/core @mastra/mcp"
      },
      "letme": {
        "capability": "https://letme.dev/agent.framework",
        "tool": "https://letme.dev/mastra"
      },
      "area": "frameworks",
      "provenance": {
        "legalEntity": "Kepler Software, Inc.",
        "domain": "mastra.ai",
        "domainRegistered": "2024-10-01",
        "endpointOnVendorDomain": null,
        "terms": "https://mastra.ai/terms-of-service",
        "privacy": "https://mastra.ai/privacy-policy",
        "statusPage": "https://statuspage.incident.io/mastra-platform",
        "changelog": "https://github.com/mastra-ai/mastra/blob/main/packages/core/CHANGELOG.md",
        "securityTxt": "none",
        "checked": "2026-11-06",
        "notes": [
          "The privacy policy names Kepler Software Inc as operator of mastra.ai and shows a last-published date of 25 April 2025.",
          "The licence file is copyright Kepler Software, Inc.",
          "mastra.ai/.well-known/security.txt returns 404 (rechecked 6 November 2026), and the repository has no SECURITY.md.",
          "RDAP gives mastra.ai a registration date of 2024-10-01.",
          "The status page covers the hosted platform, not the framework."
        ],
        "score": 71
      },
      "pageJsonUrl": "https://www.anchorterminal.com/tools/mastra.json",
      "live": {
        "slug": "mastra",
        "vendorStatus": {
          "page": "https://statuspage.incident.io/mastra-platform",
          "indicator": "none",
          "summary": "All Systems Operational",
          "checkedAt": "2026-11-27T21:27:10.847861939Z"
        },
        "versions": [
          {
            "registry": "github",
            "name": "mastra-ai/mastra",
            "version": "@mastra/core@1.86.0",
            "released": "2026-11-25",
            "seenAt": "2026-11-27T06:26:55.673663236Z"
          },
          {
            "registry": "npm",
            "name": "@mastra/core",
            "version": "1.86.0",
            "seenAt": "2026-11-27T06:26:50.102692085Z"
          },
          {
            "registry": "npm",
            "name": "@mastra/mcp",
            "version": "2.11.0",
            "seenAt": "2026-11-27T06:26:53.427316868Z"
          },
          {
            "registry": "npm",
            "name": "mastra",
            "version": "1.40.2",
            "seenAt": "2026-11-27T06:26:53.62285958Z"
          }
        ],
        "githubStars": 29848,
        "npmWeekly": 3548776,
        "securityTxt": {
          "url": "https://mastra.ai/.well-known/security.txt",
          "state": "none",
          "checkedAt": "2026-11-27T16:55:54.822758359Z"
        },
        "llmsTxt": {
          "url": "https://mastra.ai/llms.txt",
          "ok": true,
          "status": 200,
          "checkedAt": "2026-11-27T16:57:05.25306586Z"
        },
        "domain": {
          "domain": "mastra.ai",
          "registered": "2024-10-01",
          "source": "https://rdap.identitydigital.services/rdap/domain/mastra.ai",
          "checkedAt": "2026-11-22T16:10:26.229505202Z"
        },
        "pages": [
          {
            "url": "https://raw.githubusercontent.com/mastra-ai/mastra/main/packages/core/CHANGELOG.md",
            "kind": "changelog",
            "status": 200,
            "checkedAt": "2026-11-27T04:09:54.001405322Z",
            "changedAt": "2026-11-27T04:09:54.001405322Z",
            "fingerprint": "2e0ebb179b35"
          },
          {
            "url": "https://mastra.ai/pricing",
            "kind": "pricing",
            "status": 200,
            "checkedAt": "2026-11-27T04:01:28.562825643Z",
            "changedAt": "2026-11-27T04:01:28.562825643Z",
            "fingerprint": "15a559bc08a7"
          },
          {
            "url": "https://mastra.ai/privacy-policy",
            "kind": "privacy",
            "status": 200,
            "checkedAt": "2026-11-27T04:01:31.011896513Z",
            "changedAt": "2026-11-27T04:01:31.011896513Z",
            "fingerprint": "7f14695e6d4f"
          },
          {
            "url": "https://mastra.ai/terms-of-service",
            "kind": "terms",
            "status": 200,
            "checkedAt": "2026-11-27T04:01:32.971556244Z",
            "changedAt": "2026-11-27T04:01:32.971556244Z",
            "fingerprint": "c17044017268"
          }
        ],
        "github": {
          "repo": "mastra-ai/mastra",
          "checkedAt": "2026-11-23T13:46:46.670541373Z",
          "stars": 29760,
          "archived": false,
          "issuesEnabled": true,
          "pushedAt": "2026-11-23T13:45:57Z",
          "openIssues": 511,
          "openPRs": 411,
          "issuesOpened90d": 2129,
          "issuesClosed90d": 1834,
          "prsMerged90d": 4908,
          "ci": {
            "branch": "main",
            "runs": 50,
            "success": 33,
            "failure": 0,
            "other": 17,
            "latest": "skipped",
            "latestAt": "2026-11-23T13:43:21Z"
          },
          "advisories": [
            {
              "ghsa": "GHSA-8982-g8xm-3x5h",
              "severity": "high",
              "published": "2026-10-12T15:25:50Z"
            },
            {
              "ghsa": "GHSA-xh92-rqrq-227v",
              "cve": "CVE-2025-61685",
              "severity": "medium",
              "published": "2025-09-24T15:48:47Z"
            }
          ],
          "replies": {
            "sampled": 4,
            "unanswered": 4
          }
        },
        "updatedAt": "2026-11-27T21:27:10.847861939Z"
      }
    },
    "answer": "Pydantic AI Harness scores 83.5 (A) on agent readiness against Mastra's 78 (A), and leads in 2 of 7 scored categories. Mastra leads on reliability and maintenance \u0026 community.",
    "b": {
      "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"
    },
    "edges": [
      {
        "by": 26,
        "category": "reliability",
        "leads": "mastra",
        "name": "Reliability",
        "reasons": {
          "a": "Official npm packages, Node 22.13 or newer (20). Public CI workflows for unit, store, workspace and e2e tests; on 6 November the newest runs on main (Version Packages, Trigger Cloud Integration Tests) succeeded, while the test workflows themselves run on pull requests (22). 436 open issues and 795 open issues and pull requests on 6 November from GitHub's API, with 2,077 issues opened in the 90 days to 3 November; all 50 newest had a comment and 24 were closed, with issue-triage automation (18). A changesets CHANGELOG per package, a CI gate that needs approval for any major bump and migration guides, but no written versioning policy found, and `.network()` is deprecated without a removal date (12). 1.82.0 (15). 20+22+18+12+15 = 87, up from 74 on 6 October, when GitHub couldn't be read.",
          "b": "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."
        },
        "scores": {
          "a": 87,
          "b": 61
        }
      },
      {
        "by": 18,
        "category": "security",
        "leads": "pydantic-ai-harness",
        "name": "Security \u0026 auth",
        "reasons": {
          "a": "The CLI sends PostHog analytics, server startup sends token counts per model and a count of registered agents, tools and MCP servers, and Studio sends browser analytics, all on by default and documented, with one opt-out, MASTRA_TELEMETRY_DISABLED=1. Since #26986 (16 October 2026) each server process also reports token use per provider and model every 15 minutes, and the telemetry reference read on 6 November says server events carry a project identifier that is a raw Platform UUID or a hash of the Git origin remote, so they \"aren't anonymous\" (12). requireToolApproval on agents and MCP servers, allowedHosts for MCP HTTP, a curated environment for stdio servers, and sandboxed workspaces (20). PromptInjectionDetector, PII and moderation processors, and docs that call tool results untrusted model input (15). Built-in tracing with OpenTelemetry and other exporters (15). No SECURITY.md, no security.txt and no bug bounty found. A blog post says Mastra is SOC 2 Type II audited, which isn't scored for a framework, and we found no public advisory from Mastra about the June incident (5). Framework reading. 15+20+15+15+5 = 70 on 6 October, 12+20+15+15+5 = 67 on 6 November.",
          "b": "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."
        },
        "scores": {
          "a": 67,
          "b": 85
        }
      },
      {
        "by": 10,
        "category": "transparency",
        "leads": "pydantic-ai-harness",
        "name": "Transparency \u0026 trust",
        "reasons": {
          "a": "Apache 2.0 for the core, with ee/ directories source-available under the Mastra Enterprise License (25). The privacy policy (last published 25 April 2025) covers the website, the Teams plan states six months' retention, and the subprocessor list sits in a trust centre our reader couldn't render (15). Migration guides and deprecation warnings, without dated removal windows (12). Every telemetry stream is documented with links to its source and one opt-out, and the reference now spells out what the project identifiers can be correlated with (20).",
          "b": "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."
        },
        "scores": {
          "a": 72,
          "b": 82
        }
      },
      {
        "by": 9,
        "category": "maintenance",
        "leads": "mastra",
        "name": "Maintenance \u0026 community",
        "reasons": {
          "a": "@mastra/core 1.82.0 on 2026-11-04 (30). 27 stable releases in the 90 days to 6 November, 8 of them since 6 October (20). 436 open issues on 6 November, all 50 newest issues commented and 24 of them closed (22). Client, MCP and store packages are current, and @mastra/mcp 1.x stays supported beside 2.x (15). Renovate and CI configured, with the newest runs on main passing (9). 30+20+22+15+9 = 96.",
          "b": "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."
        },
        "scores": {
          "a": 96,
          "b": 87
        }
      }
    ],
    "facts": [
      {
        "a": "Agent framework",
        "b": "Agent framework",
        "name": "Kind"
      },
      {
        "a": "Kepler Software, Inc.",
        "b": "Pydantic",
        "name": "Vendor"
      },
      {
        "a": "no (local only)",
        "b": "no (local only)",
        "name": "Hosted endpoint"
      },
      {
        "a": "",
        "b": "",
        "name": "Transports"
      },
      {
        "a": "API key",
        "b": "None",
        "name": "Auth"
      },
      {
        "a": "Free",
        "b": "Free",
        "name": "Pricing"
      },
      {
        "a": "no",
        "b": "no",
        "name": "x402"
      },
      {
        "a": "Apache-2.0 for the core. Code under ee/ directories is source-available under the Mastra Enterprise License, free for development and testing",
        "b": "MIT",
        "name": "Licence"
      },
      {
        "a": "no",
        "b": "yes",
        "name": "Read-only variant documented"
      },
      {
        "a": "yes",
        "b": "yes",
        "name": "llms.txt"
      },
      {
        "a": "2026-11-04",
        "b": "2026-11-27",
        "name": "Last release"
      },
      {
        "a": "2026-10-26",
        "b": "no date given",
        "name": "Terms last updated"
      },
      {
        "a": "no date given",
        "b": "2024-02-21",
        "name": "Privacy policy last updated"
      },
      {
        "a": "yes",
        "b": "not found in the text",
        "name": "Customer content may train models"
      },
      {
        "a": "yes",
        "b": "not found in the text",
        "name": "Terms restrict automated access"
      },
      {
        "a": "not found in the text",
        "b": "yes",
        "name": "Terms restrict benchmarking"
      },
      {
        "a": "yes",
        "b": "not found in the text",
        "name": "Terms or service can change without notice"
      },
      {
        "a": "yes",
        "b": "yes",
        "name": "Arbitration or class-action waiver"
      },
      {
        "a": "29k stars, 3.1M npm/wk",
        "b": "none",
        "name": "Popularity"
      }
    ],
    "faq": [
      {
        "answer": "Pydantic AI Harness scores 83.5 (A) on agent readiness against Mastra's 78 (A), and leads in 2 of 7 scored categories. Mastra leads on reliability and maintenance \u0026 community.",
        "question": "Which is better for AI agents, Mastra or Pydantic AI Harness?"
      },
      {
        "answer": "Yes. Mastra is open source (Apache-2.0 for the core. Code under ee/ directories is source-available under the Mastra Enterprise License, free for development and testing). Pydantic AI Harness is open source (MIT).",
        "question": "Are Mastra and Pydantic AI Harness open source?"
      }
    ],
    "goodFor": [
      {
        "aheadOn": [
          "Reliability, 87 against 61",
          "Maintenance \u0026 community, 96 against 87"
        ],
        "also": null,
        "goodFor": "TypeScript teams that want agents, workflows, memory, evals and a local Studio in one framework.",
        "slug": "mastra",
        "watchFor": "Malicious versions of Mastra npm packages, including @mastra/core 1.42.1, were published on 17 June 2026"
      },
      {
        "aheadOn": [
          "Security \u0026 auth, 85 against 67",
          "Transparency \u0026 trust, 82 against 72"
        ],
        "also": [
          "No key needed to call it",
          "No incidents deducted, where Mastra loses 8 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"
      }
    ],
    "history": {
      "mastra": [
        {
          "causes": [
            "method"
          ],
          "date": "2026-11-13",
          "delta": 3.8,
          "from": 74.2,
          "fromGrade": "BB",
          "to": 78,
          "toGrade": "A"
        }
      ],
      "pydantic-ai-harness": null
    },
    "job": {
      "capability": "agent.framework",
      "name": "Agent frameworks"
    },
    "others": [
      {
        "json": "https://www.anchorterminal.com/compare/agentos-vs-mastra.json",
        "title": "AgentOS vs Mastra",
        "url": "https://www.anchorterminal.com/compare/agentos-vs-mastra"
      },
      {
        "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/agno-vs-mastra.json",
        "title": "Agno vs Mastra",
        "url": "https://www.anchorterminal.com/compare/agno-vs-mastra"
      },
      {
        "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/boxlang-ai-vs-mastra.json",
        "title": "BoxLang AI vs Mastra",
        "url": "https://www.anchorterminal.com/compare/boxlang-ai-vs-mastra"
      },
      {
        "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/claude-agent-sdk-vs-mastra.json",
        "title": "Claude Agent SDK vs Mastra",
        "url": "https://www.anchorterminal.com/compare/claude-agent-sdk-vs-mastra"
      },
      {
        "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/crewai-vs-mastra.json",
        "title": "CrewAI vs Mastra",
        "url": "https://www.anchorterminal.com/compare/crewai-vs-mastra"
      },
      {
        "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/cursor-agent-sdk-vs-mastra.json",
        "title": "Cursor Agent SDK vs Mastra",
        "url": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-mastra"
      },
      {
        "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/docker-agent-vs-mastra.json",
        "title": "Docker Agent vs Mastra",
        "url": "https://www.anchorterminal.com/compare/docker-agent-vs-mastra"
      },
      {
        "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/dspy-vs-mastra.json",
        "title": "DSPy vs Mastra",
        "url": "https://www.anchorterminal.com/compare/dspy-vs-mastra"
      },
      {
        "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/genkit-vs-mastra.json",
        "title": "Genkit vs Mastra",
        "url": "https://www.anchorterminal.com/compare/genkit-vs-mastra"
      },
      {
        "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/google-adk-vs-mastra.json",
        "title": "Agent Development Kit (ADK) vs Mastra",
        "url": "https://www.anchorterminal.com/compare/google-adk-vs-mastra"
      },
      {
        "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/guilds-run-vs-mastra.json",
        "title": "guilds.run vs Mastra",
        "url": "https://www.anchorterminal.com/compare/guilds-run-vs-mastra"
      },
      {
        "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/haystack-vs-mastra.json",
        "title": "Haystack vs Mastra",
        "url": "https://www.anchorterminal.com/compare/haystack-vs-mastra"
      },
      {
        "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/langgraph-vs-mastra.json",
        "title": "LangGraph vs Mastra",
        "url": "https://www.anchorterminal.com/compare/langgraph-vs-mastra"
      },
      {
        "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/llamaindex-vs-mastra.json",
        "title": "LlamaIndex Framework vs Mastra",
        "url": "https://www.anchorterminal.com/compare/llamaindex-vs-mastra"
      },
      {
        "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/mastra-vs-microsoft-agent-framework.json",
        "title": "Mastra vs Microsoft Agent Framework",
        "url": "https://www.anchorterminal.com/compare/mastra-vs-microsoft-agent-framework"
      },
      {
        "json": "https://www.anchorterminal.com/compare/mastra-vs-openai-agents-sdk.json",
        "title": "Mastra vs OpenAI Agents SDK",
        "url": "https://www.anchorterminal.com/compare/mastra-vs-openai-agents-sdk"
      },
      {
        "json": "https://www.anchorterminal.com/compare/mastra-vs-pydantic-ai.json",
        "title": "Mastra vs Pydantic AI",
        "url": "https://www.anchorterminal.com/compare/mastra-vs-pydantic-ai"
      },
      {
        "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/mastra-vs-strands-agents.json",
        "title": "Mastra vs Strands Agents",
        "url": "https://www.anchorterminal.com/compare/mastra-vs-strands-agents"
      },
      {
        "json": "https://www.anchorterminal.com/compare/mastra-vs-terse-durable-actors.json",
        "title": "Mastra vs Terse Durable Actors",
        "url": "https://www.anchorterminal.com/compare/mastra-vs-terse-durable-actors"
      },
      {
        "json": "https://www.anchorterminal.com/compare/mastra-vs-tradingagents.json",
        "title": "Mastra vs TradingAgents",
        "url": "https://www.anchorterminal.com/compare/mastra-vs-tradingagents"
      },
      {
        "json": "https://www.anchorterminal.com/compare/mastra-vs-vercel-ai-sdk.json",
        "title": "Mastra vs AI SDK",
        "url": "https://www.anchorterminal.com/compare/mastra-vs-vercel-ai-sdk"
      },
      {
        "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/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/pydantic-ai-harness-vs-smolagents.json",
        "title": "Pydantic AI Harness vs smolagents",
        "url": "https://www.anchorterminal.com/compare/pydantic-ai-harness-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"
      }
    ],
    "panel": null,
    "scores": [
      {
        "by": 26,
        "edge": "mastra",
        "key": "reliability",
        "mastra": 87,
        "name": "Reliability",
        "pydantic-ai-harness": 61,
        "weight": 16
      },
      {
        "key": "performance",
        "name": "Performance",
        "pending": true,
        "weight": 10
      },
      {
        "by": 0,
        "edge": "",
        "key": "schema",
        "mastra": 98,
        "name": "Schema \u0026 documentation",
        "pydantic-ai-harness": 98,
        "weight": 13
      },
      {
        "by": 3,
        "edge": "mastra",
        "key": "ergonomics",
        "mastra": 92,
        "name": "Agent ergonomics",
        "pydantic-ai-harness": 89,
        "weight": 13
      },
      {
        "by": 18,
        "edge": "pydantic-ai-harness",
        "key": "security",
        "mastra": 67,
        "name": "Security \u0026 auth",
        "pydantic-ai-harness": 85,
        "weight": 14
      },
      {
        "by": 0,
        "edge": "",
        "key": "payments",
        "mastra": 90,
        "name": "Payments \u0026 pricing",
        "pydantic-ai-harness": 90,
        "weight": 10
      },
      {
        "key": "tasks",
        "name": "Task success",
        "pending": true,
        "weight": 10
      },
      {
        "by": 9,
        "edge": "mastra",
        "key": "maintenance",
        "mastra": 96,
        "name": "Maintenance \u0026 community",
        "pydantic-ai-harness": 87,
        "weight": 7
      },
      {
        "by": 10,
        "edge": "pydantic-ai-harness",
        "key": "transparency",
        "mastra": 72,
        "name": "Transparency \u0026 trust",
        "pydantic-ai-harness": 82,
        "weight": 7
      }
    ],
    "summary": "Pydantic AI Harness scores 83.5 (A) on agent readiness against Mastra's 78 (A), and leads in 2 of 7 scored categories. Mastra leads on reliability and maintenance \u0026 community. Both do agent frameworks.",
    "tasks": null,
    "tutorials": [],
    "verdicts": {
      "mastra": "A TypeScript framework with agents, workflows with suspend and resume, memory, an MCP client and server, per-server tool approval and built-in guardrail processors including a prompt-injection detector. On 17 June 2026 malicious versions of its npm packages were published, and the CLI, server and Studio send usage analytics by default, with token counts every 15 minutes.",
      "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."
    }
  },
  "kind": "anchor.page",
  "links": {
    "api": "https://www.anchorterminal.com/api/v1/index.json",
    "html": "https://www.anchorterminal.com/compare/mastra-vs-pydantic-ai-harness",
    "json": "https://www.anchorterminal.com/compare/mastra-vs-pydantic-ai-harness.json",
    "llms": "https://www.anchorterminal.com/llms.txt",
    "markdown": "https://www.anchorterminal.com/compare/mastra-vs-pydantic-ai-harness.md",
    "mcp": "https://www.anchorterminal.com/mcp",
    "slim": "https://www.anchorterminal.com/compare/mastra-vs-pydantic-ai-harness.min.md"
  },
  "markdown": "Pydantic AI Harness scores 83.5 (A) on agent readiness against Mastra's 78 (A), and leads in 2 of 7 scored categories. Mastra leads on reliability and maintenance \u0026 community. Both do agent frameworks.\n\n- Mastra: grade A, 78/100, rank #72 of 1698. Markdown https://www.anchorterminal.com/tools/mastra.md · JSON https://www.anchorterminal.com/api/v1/tools/mastra.json\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- 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### Mastra (A)\n\nGood for: TypeScript teams that want agents, workflows, memory, evals and a local Studio in one framework.\n\nAhead on:\n- Reliability, 87 against 61\n- Maintenance \u0026 community, 96 against 87\n\nWatch for: Malicious versions of Mastra npm packages, including @mastra/core 1.42.1, were published on 17 June 2026\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- Security \u0026 auth, 85 against 67\n- Transparency \u0026 trust, 82 against 72\n\nAlso in its favour:\n- No key needed to call it\n- No incidents deducted, where Mastra loses 8 points for them\n\nWatch for: 0.76.0 and classed Alpha. Minor releases may rename parameters or change defaults\n\n\n## Why the edge\n\n### Reliability: Mastra +26\n\n- Mastra (87): Official npm packages, Node 22.13 or newer (20). Public CI workflows for unit, store, workspace and e2e tests; on 6 November the newest runs on main (Version Packages, Trigger Cloud Integration Tests) succeeded, while the test workflows themselves run on pull requests (22). 436 open issues and 795 open issues and pull requests on 6 November from GitHub's API, with 2,077 issues opened in the 90 days to 3 November; all 50 newest had a comment and 24 were closed, with issue-triage automation (18). A changesets CHANGELOG per package, a CI gate that needs approval for any major bump and migration guides, but no written versioning policy found, and `.network()` is deprecated without a removal date (12). 1.82.0 (15). 20+22+18+12+15 = 87, up from 74 on 6 October, when GitHub couldn't be read.\n- 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.\n\n### Security \u0026 auth: Pydantic AI Harness +18\n\n- Mastra (67): The CLI sends PostHog analytics, server startup sends token counts per model and a count of registered agents, tools and MCP servers, and Studio sends browser analytics, all on by default and documented, with one opt-out, MASTRA_TELEMETRY_DISABLED=1. Since #26986 (16 October 2026) each server process also reports token use per provider and model every 15 minutes, and the telemetry reference read on 6 November says server events carry a project identifier that is a raw Platform UUID or a hash of the Git origin remote, so they \"aren't anonymous\" (12). requireToolApproval on agents and MCP servers, allowedHosts for MCP HTTP, a curated environment for stdio servers, and sandboxed workspaces (20). PromptInjectionDetector, PII and moderation processors, and docs that call tool results untrusted model input (15). Built-in tracing with OpenTelemetry and other exporters (15). No SECURITY.md, no security.txt and no bug bounty found. A blog post says Mastra is SOC 2 Type II audited, which isn't scored for a framework, and we found no public advisory from Mastra about the June incident (5). Framework reading. 15+20+15+15+5 = 70 on 6 October, 12+20+15+15+5 = 67 on 6 November.\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\n### Transparency \u0026 trust: Pydantic AI Harness +10\n\n- Mastra (72): Apache 2.0 for the core, with ee/ directories source-available under the Mastra Enterprise License (25). The privacy policy (last published 25 April 2025) covers the website, the Teams plan states six months' retention, and the subprocessor list sits in a trust centre our reader couldn't render (15). Migration guides and deprecation warnings, without dated removal windows (12). Every telemetry stream is documented with links to its source and one opt-out, and the reference now spells out what the project identifiers can be correlated with (20).\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\n### Maintenance \u0026 community: Mastra +9\n\n- Mastra (96): @mastra/core 1.82.0 on 2026-11-04 (30). 27 stable releases in the 90 days to 6 November, 8 of them since 6 October (20). 436 open issues on 6 November, all 50 newest issues commented and 24 of them closed (22). Client, MCP and store packages are current, and @mastra/mcp 1.x stays supported beside 2.x (15). Renovate and CI configured, with the newest runs on main passing (9). 30+20+22+15+9 = 96.\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\n## Score by category\n\n| Category | Weight | Mastra | Pydantic AI Harness | Edge |\n| --- | --- | --- | --- | --- |\n| Reliability | 16% | 87 | 61 | Mastra +26 |\n| Performance | 10%, pending | pending | pending | not scored in this run |\n| Schema \u0026 documentation | 13% | 98 | 98 | even |\n| Agent ergonomics | 13% | 92 | 89 | Mastra +3 |\n| Security \u0026 auth | 14% | 67 | 85 | Pydantic AI Harness +18 |\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% | 96 | 87 | Mastra +9 |\n| Transparency \u0026 trust | 7% | 72 | 82 | Pydantic AI Harness +10 |\n| Negative events | ≤15 | -8 | 0 | |\n| **Total** | | **78 · A** | **83.5 · A** | |\n\n## Facts side by side\n\n| Fact | Mastra | Pydantic AI Harness |\n| --- | --- | --- |\n| Kind | Agent framework | Agent framework |\n| Vendor | Kepler Software, Inc. | Pydantic |\n| Hosted endpoint | no (local only) | no (local only) |\n| Transports |  |  |\n| Auth | API key | None |\n| Pricing | Free | Free |\n| x402 | no | no |\n| Licence | Apache-2.0 for the core. Code under ee/ directories is source-available under the Mastra Enterprise License, free for development and testing | MIT |\n| Read-only variant documented | no | yes |\n| llms.txt | yes | yes |\n| Last release | 2026-11-04 | 2026-11-27 |\n| Terms last updated | 2026-10-26 | no date given |\n| Privacy policy last updated | no date given | 2024-02-21 |\n| Customer content may train models | yes | not found in the text |\n| Terms restrict automated access | yes | not found in the text |\n| Terms restrict benchmarking | not found in the text | yes |\n| Terms or service can change without notice | yes | not found in the text |\n| Arbitration or class-action waiver | yes | yes |\n| Popularity | 29k stars, 3.1M npm/wk | none |\n\n## How the scores have moved\n\n### Mastra\n\n- +3.8 on 13 November 2026 (BB to A): checklist\n\n### Pydantic AI Harness\n\nNo score change since it was listed.\n\n## Verdicts\n\n**Mastra.** A TypeScript framework with agents, workflows with suspend and resume, memory, an MCP client and server, per-server tool approval and built-in guardrail processors including a prompt-injection detector. On 17 June 2026 malicious versions of its npm packages were published, and the CLI, server and Studio send usage analytics by default, with token counts every 15 minutes.\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## Before you call either\n\n### Mastra\n\n1. Set MASTRA_TELEMETRY_DISABLED=1 in every environment that runs the CLI, the server or Studio\n2. Pin exact versions with a lockfile, and make sure no 17 June 2026 release such as @mastra/core 1.42.1 is installed\n3. Set requireToolApproval on MCP servers that write, and allowedHosts when server URLs come from configuration\n4. Add PromptInjectionDetector as an input processor when tools return web or user content\n5. Use supervisor agents through generate() or stream(). `.network()` is deprecated\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## Questions\n\n### Which is better for AI agents, Mastra or Pydantic AI Harness?\n\nPydantic AI Harness scores 83.5 (A) on agent readiness against Mastra's 78 (A), and leads in 2 of 7 scored categories. Mastra leads on reliability and maintenance \u0026 community.\n\n### Are Mastra and Pydantic AI Harness open source?\n\nYes. Mastra is open source (Apache-2.0 for the core. Code under ee/ directories is source-available under the Mastra Enterprise License, free for development and testing). Pydantic AI Harness is open source (MIT).\n\n\n## For agents\n\n- This comparison as JSON: https://www.anchorterminal.com/compare/mastra-vs-pydantic-ai-harness.json, and with the fewest tokens: https://www.anchorterminal.com/compare/mastra-vs-pydantic-ai-harness.min.md\n- Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {\"a\": \"mastra\", \"b\": \"pydantic-ai-harness\"}`. From a terminal: `anchor compare mastra pydantic-ai-harness`\n- Each listing in full: https://www.anchorterminal.com/api/v1/tools/mastra.json and https://www.anchorterminal.com/api/v1/tools/pydantic-ai-harness.json\n\n## Other comparisons with Mastra or Pydantic AI Harness\n\n- [AgentOS vs Mastra](https://www.anchorterminal.com/compare/agentos-vs-mastra.md)\n- [AgentOS vs Pydantic AI Harness](https://www.anchorterminal.com/compare/agentos-vs-pydantic-ai-harness.md)\n- [Agno vs Mastra](https://www.anchorterminal.com/compare/agno-vs-mastra.md)\n- [Agno vs Pydantic AI Harness](https://www.anchorterminal.com/compare/agno-vs-pydantic-ai-harness.md)\n- [BoxLang AI vs Mastra](https://www.anchorterminal.com/compare/boxlang-ai-vs-mastra.md)\n- [BoxLang AI vs Pydantic AI Harness](https://www.anchorterminal.com/compare/boxlang-ai-vs-pydantic-ai-harness.md)\n- [Claude Agent SDK vs Mastra](https://www.anchorterminal.com/compare/claude-agent-sdk-vs-mastra.md)\n- [Claude Agent SDK vs Pydantic AI Harness](https://www.anchorterminal.com/compare/claude-agent-sdk-vs-pydantic-ai-harness.md)\n- [CrewAI vs Mastra](https://www.anchorterminal.com/compare/crewai-vs-mastra.md)\n- [CrewAI vs Pydantic AI Harness](https://www.anchorterminal.com/compare/crewai-vs-pydantic-ai-harness.md)\n- [Cursor Agent SDK vs Mastra](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-mastra.md)\n- [Cursor Agent SDK vs Pydantic AI Harness](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-pydantic-ai-harness.md)\n- [Docker Agent vs Mastra](https://www.anchorterminal.com/compare/docker-agent-vs-mastra.md)\n- [Docker Agent vs Pydantic AI Harness](https://www.anchorterminal.com/compare/docker-agent-vs-pydantic-ai-harness.md)\n- [DSPy vs Mastra](https://www.anchorterminal.com/compare/dspy-vs-mastra.md)\n- [DSPy vs Pydantic AI Harness](https://www.anchorterminal.com/compare/dspy-vs-pydantic-ai-harness.md)\n- [Genkit vs Mastra](https://www.anchorterminal.com/compare/genkit-vs-mastra.md)\n- [Genkit vs Pydantic AI Harness](https://www.anchorterminal.com/compare/genkit-vs-pydantic-ai-harness.md)\n- [Agent Development Kit (ADK) vs Mastra](https://www.anchorterminal.com/compare/google-adk-vs-mastra.md)\n- [Agent Development Kit (ADK) vs Pydantic AI Harness](https://www.anchorterminal.com/compare/google-adk-vs-pydantic-ai-harness.md)\n- [guilds.run vs Mastra](https://www.anchorterminal.com/compare/guilds-run-vs-mastra.md)\n- [guilds.run vs Pydantic AI Harness](https://www.anchorterminal.com/compare/guilds-run-vs-pydantic-ai-harness.md)\n- [Haystack vs Mastra](https://www.anchorterminal.com/compare/haystack-vs-mastra.md)\n- [Haystack vs Pydantic AI Harness](https://www.anchorterminal.com/compare/haystack-vs-pydantic-ai-harness.md)\n- [LangGraph vs Mastra](https://www.anchorterminal.com/compare/langgraph-vs-mastra.md)\n- [LangGraph vs Pydantic AI Harness](https://www.anchorterminal.com/compare/langgraph-vs-pydantic-ai-harness.md)\n- [LlamaIndex Framework vs Mastra](https://www.anchorterminal.com/compare/llamaindex-vs-mastra.md)\n- [LlamaIndex Framework vs Pydantic AI Harness](https://www.anchorterminal.com/compare/llamaindex-vs-pydantic-ai-harness.md)\n- [Mastra vs Microsoft Agent Framework](https://www.anchorterminal.com/compare/mastra-vs-microsoft-agent-framework.md)\n- [Mastra vs OpenAI Agents SDK](https://www.anchorterminal.com/compare/mastra-vs-openai-agents-sdk.md)\n- [Mastra vs Pydantic AI](https://www.anchorterminal.com/compare/mastra-vs-pydantic-ai.md)\n- [Mastra vs smolagents](https://www.anchorterminal.com/compare/mastra-vs-smolagents.md)\n- [Mastra vs Strands Agents](https://www.anchorterminal.com/compare/mastra-vs-strands-agents.md)\n- [Mastra vs Terse Durable Actors](https://www.anchorterminal.com/compare/mastra-vs-terse-durable-actors.md)\n- [Mastra vs TradingAgents](https://www.anchorterminal.com/compare/mastra-vs-tradingagents.md)\n- [Mastra vs AI SDK](https://www.anchorterminal.com/compare/mastra-vs-vercel-ai-sdk.md)\n- [Microsoft Agent Framework vs Pydantic AI Harness](https://www.anchorterminal.com/compare/microsoft-agent-framework-vs-pydantic-ai-harness.md)\n- [OpenAI Agents SDK vs Pydantic AI Harness](https://www.anchorterminal.com/compare/openai-agents-sdk-vs-pydantic-ai-harness.md)\n- [Pydantic AI Harness vs smolagents](https://www.anchorterminal.com/compare/pydantic-ai-harness-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",
  "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": "Mastra vs Pydantic AI Harness",
        "url": ""
      }
    ],
    "description": "Pydantic AI Harness scores 83.5 (A) to Mastra's 78 (A) for agent frameworks. Prices, MCP, x402, uptime and agent notes side by side.",
    "facts": [
      "Mastra A 78",
      "Pydantic AI Harness A 83.5",
      "scores"
    ],
    "h1": "Mastra vs Pydantic AI Harness",
    "image": "https://www.anchorterminal.com/assets/og/default.png",
    "path": "/compare/mastra-vs-pydantic-ai-harness",
    "published": "2026-10-01",
    "section": "tools",
    "title": "Mastra vs Pydantic AI Harness for AI agents in 2026: scores and prices",
    "toc": null,
    "updated": "2026-11-27",
    "url": "https://www.anchorterminal.com/compare/mastra-vs-pydantic-ai-harness"
  },
  "tokens": {
    "markdown": 4650,
    "slim": 880
  },
  "version": 1
}
