{
  "data": {
    "a": {
      "slug": "dspy",
      "name": "DSPy",
      "vendor": "Stanford NLP",
      "vendorUrl": "https://dspy.ai/",
      "company": "dspy.ai",
      "kind": "framework",
      "category": "frameworks",
      "summary": "DSPy is an open-source Python framework from Stanford NLP for writing language-model programs as typed signatures and modules, with a ReAct agent, MCP tool conversion, evaluation and optimisers that tune prompts and weights.",
      "url": "https://www.anchorterminal.com/tools/dspy",
      "markdownUrl": "https://www.anchorterminal.com/tools/dspy.md",
      "slimMarkdownUrl": "https://www.anchorterminal.com/tools/dspy.min.md",
      "cardUrl": "https://www.anchorterminal.com/tools/dspy.card.md",
      "jsonUrl": "https://www.anchorterminal.com/api/v1/tools/dspy.json",
      "dns": "dspy.grade.anchorterminal.com",
      "repo": "https://github.com/stanfordnlp/dspy",
      "license": "MIT",
      "transports": [],
      "packages": [
        {
          "registry": "pypi",
          "name": "dspy"
        }
      ],
      "auth": "none",
      "authNotes": "A library with no credentials of its own. dspy.LM reads the key of the model provider the developer configures.",
      "pricing": "free",
      "pricingNotes": "Free and open source under MIT, with nothing to buy from the project. You pay for model calls to the provider you configure.",
      "priceSummary": "Free · OSS",
      "where": "library",
      "x402": {
        "level": "no",
        "evidence": "No x402, MPP or L402 in the DSPy docs or the repository (checked 2026-11-23).",
        "endpoints": []
      },
      "toolCount": null,
      "popularity": {
        "githubStars": 39193,
        "npmWeekly": null,
        "pypiWeekly": null,
        "asOf": "2026-11-23"
      },
      "docsUrl": "https://dspy.ai/",
      "capabilities": [
        "agent.framework",
        "agent.mcp-client",
        "obs.evals"
      ],
      "tags": [
        "framework",
        "python",
        "open-source",
        "mcp",
        "prompt-optimisation",
        "evals",
        "sandbox"
      ],
      "lastRelease": "2026-11-10",
      "graded": true,
      "anchor": {
        "graded": true,
        "score": 68.3,
        "grade": "B",
        "agentReady": false,
        "rank": 414,
        "ranked": true,
        "rankOf": 1654,
        "categoryRank": 18,
        "methodology": "1.0",
        "run": "2026-10-01",
        "scores": {
          "ergonomics": 64,
          "maintenance": 87,
          "payments": 90,
          "reliability": 62,
          "schema": 71,
          "security": 60,
          "transparency": 52
        },
        "assessment": {
          "confidence": "medium",
          "date": "2026-11-23"
        },
        "negative": 0,
        "verdict": "An MIT Python framework with typed signatures, a ReAct agent that returns tool errors to the model, MCP tool conversion, a Deno sandbox for generated code, no telemetry found and monthly releases. Release 3.5 changed defaults and removed APIs in a minor version, and there is no tool approval hook or llms.txt.",
        "bestFor": "Python teams who want typed LM programs they can evaluate and optimise against a metric, with ReAct for tool use.",
        "strengths": [
          "No telemetry found in the source, and the optional LiteLLM engine switches LiteLLM telemetry off",
          "Tools are typed from signatures and Pydantic annotations and validated against JSON Schema before they run",
          "ReAct returns unknown tools and exceptions to the model as error results and forces a final submit at max_iters",
          "RLM runs generated Python in a Deno and Pyodide sandbox with no filesystem or network access",
          "Releases 3.4.0, 3.4.1 and 3.5.0 between 24 September and 10 November 2026, with 213 commits in 90 days"
        ],
        "weaknesses": [
          "3.5 changed the default adapter, reasoning and API routing and removed CodeAct and ProgramOfThought in a minor release",
          "No human approval hook for tool calls and no prompt-injection guidance found",
          "CVE-2025-12695, a sandbox file read in PythonInterpreter, is listed by OSV with no fixed version",
          "No llms.txt at dspy.ai, and no written deprecation policy",
          "352 open issues and 475 open pull requests, with 8 of the 50 newest issues closed"
        ],
        "agentNotes": [
          "Re-evaluate saved programs after upgrading to 3.5, since the default adapter and prompts changed",
          "Install dspy[mcp] and convert each MCP tool with dspy.Tool.from_mcp_tool while the client session stays open",
          "Disable the answer cache for calls whose output must change between runs, since memory and disk caches are on by default",
          "Wrap tools that send, pay or delete in your own confirmation step, because ReAct runs tools without approval",
          "Pin dspy to a minor version, since minor releases remove APIs"
        ],
        "metrics": {
          "kind": "local",
          "measured": false
        },
        "reviewCount": 0,
        "avgRating": 0,
        "history": [
          {
            "basis": "public evidence",
            "confidence": "medium",
            "grade": "B",
            "methodology": "1.0",
            "run": "2026-10-01",
            "runLabel": "October 2026 research run",
            "score": 68.3
          }
        ],
        "editorialScores": {
          "ergonomics": 64,
          "maintenance": 87,
          "payments": 90,
          "reliability": 62,
          "schema": 71,
          "security": 60,
          "transparency": 68
        },
        "provenanceScore": 36,
        "checked": {
          "categories": {
            "ergonomics": "2026-11-23",
            "maintenance": "2026-11-23",
            "payments": "2026-11-23",
            "reliability": "2026-11-23",
            "schema": "2026-11-23",
            "security": "2026-11-23",
            "transparency": "2026-11-23"
          },
          "last": "2026-11-23",
          "oldest": "2026-11-23",
          "stale": false,
          "staleAfterDays": 90
        }
      },
      "connect": {
        "install": "pip install dspy   # MCP tools: pip install \"dspy[mcp]\""
      },
      "letme": {
        "capability": "https://letme.dev/agent.framework",
        "tool": "https://letme.dev/dspy"
      },
      "area": "frameworks",
      "provenance": {
        "legalEntity": "",
        "domain": "dspy.ai",
        "domainRegistered": "",
        "endpointOnVendorDomain": null,
        "terms": "",
        "privacy": "",
        "statusPage": "",
        "changelog": "https://github.com/stanfordnlp/dspy/releases",
        "securityTxt": "unknown",
        "checked": "2026-11-23",
        "notes": [
          "An open-source project with no company named. The licence reads Copyright (c) 2023 Stanford Future Data Systems, the repository sits under the stanfordnlp organisation, and dspy.ai names Stanford NLP.",
          "No terms or privacy policy found on dspy.ai; the library stores data only in its local answer cache.",
          "dspy.ai/llms.txt answered 404. robots.txt rules on dspy.ai allowed the pages read.",
          "security.txt wasn't checked."
        ],
        "score": 36
      },
      "pageJsonUrl": "https://www.anchorterminal.com/tools/dspy.json",
      "live": {
        "slug": "dspy",
        "securityTxt": {
          "url": "https://dspy.ai/.well-known/security.txt",
          "state": "none",
          "checkedAt": "2026-11-23T16:42:39.18856267Z"
        },
        "updatedAt": "2026-11-23T16:42:39.18856267Z"
      }
    },
    "answer": "Mastra scores 78 (A) on agent readiness against DSPy's 68.3 (B), and leads in 6 of 7 scored categories.",
    "b": {
      "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": 66,
        "ranked": true,
        "rankOf": 1654,
        "categoryRank": 8,
        "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-23T17:47:37.503736475Z"
        },
        "versions": [
          {
            "registry": "github",
            "name": "mastra-ai/mastra",
            "version": "@mastra/core@1.84.0",
            "released": "2026-11-18",
            "seenAt": "2026-11-23T00:26:56.306296805Z"
          },
          {
            "registry": "npm",
            "name": "@mastra/core",
            "version": "1.85.0",
            "seenAt": "2026-11-23T00:26:45.4293118Z"
          },
          {
            "registry": "npm",
            "name": "@mastra/mcp",
            "version": "2.10.0",
            "seenAt": "2026-11-23T00:26:48.797680358Z"
          },
          {
            "registry": "npm",
            "name": "mastra",
            "version": "1.40.1",
            "seenAt": "2026-11-23T00:26:52.430985497Z"
          }
        ],
        "githubStars": 29745,
        "npmWeekly": 4100719,
        "securityTxt": {
          "url": "https://mastra.ai/.well-known/security.txt",
          "state": "none",
          "checkedAt": "2026-11-23T16:43:12.658748711Z"
        },
        "llmsTxt": {
          "url": "https://mastra.ai/llms.txt",
          "ok": true,
          "status": 200,
          "checkedAt": "2026-11-23T16:40:14.603398716Z"
        },
        "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-23T00:40:25.168702111Z",
            "changedAt": "2026-11-23T00:40:25.168702111Z",
            "fingerprint": "f63343c8c9a9"
          },
          {
            "url": "https://mastra.ai/pricing",
            "kind": "pricing",
            "status": 200,
            "checkedAt": "2026-11-23T00:32:12.259100682Z",
            "changedAt": "2026-11-20T23:10:21.106378567Z",
            "fingerprint": "f1f723ef1425"
          },
          {
            "url": "https://mastra.ai/privacy-policy",
            "kind": "privacy",
            "status": 200,
            "checkedAt": "2026-11-23T00:32:14.80313465Z",
            "changedAt": "2026-11-19T22:29:09.177003746Z",
            "fingerprint": "a5090695280e"
          },
          {
            "url": "https://mastra.ai/terms-of-service",
            "kind": "terms",
            "status": 200,
            "checkedAt": "2026-11-23T00:32:16.660841538Z",
            "changedAt": "2026-11-19T22:29:11.222905885Z",
            "fingerprint": "e679576cedc6"
          }
        ],
        "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-23T17:47:37.503736475Z"
      }
    },
    "edges": [
      {
        "by": 28,
        "category": "ergonomics",
        "leads": "mastra",
        "name": "Agent ergonomics",
        "reasons": {
          "a": "Framework reading. MCP tools through the dspy[mcp] extra, converted one by one from a client session the developer opens (14). max_iters with a turn budget shown to the model and a forced final submit bound a run (17). Unknown tools and tool exceptions return to the model as error results (15). History continuation and saved programs, but no resume of an interrupted run or durable store; answer caching can mask repeated calls (8). Signatures keep required arguments few, an LM must be configured, Python only (10). 14+17+15+8+10 = 64.",
          "b": "An MCP client in about ten lines with listTools() for static or listToolsets() for per-request tools, and ToolSearchProcessor for loading tools on demand (25). Step limits, memory windows and processors such as a token limiter control what reaches the model (20). MastraError with ids and categories, and processors can abort with a reason the caller can read (17). Workflow step retries, snapshots and durable agents for resuming (20). create-mastra scaffolds a project and the model router takes a plain string, but it's TypeScript only (10)."
        },
        "scores": {
          "a": 64,
          "b": 92
        }
      },
      {
        "by": 27,
        "category": "schema",
        "leads": "mastra",
        "name": "Schema \u0026 documentation",
        "reasons": {
          "a": "Framework reading. A typed Python API with an API reference for modules, tools, adapters and errors (20). No llms.txt at dspy.ai; the docs are Markdown in the repository but not served for agents (0). The tools and ReAct pages say what each part is for and when to read on (15). Tools are typed from signatures and Pydantic annotations and validated against JSON Schema (14). Many tutorials with code, and an errors page in the reference (12). Versioned docs, GitHub release notes and an upgrade guide, with no changelog file (10). 20+0+15+14+12+10 = 71.",
          "b": "Typed TypeScript API with a reference section (25). llms.txt with a when-to-use list and condensed instructions for coding agents (10). The docs say when to use durable agents, and point multi-agent users from `.network()` to supervisor agents (20). Tools take Zod schemas (15). Examples on every page, and MastraError with ids and categories documented, though errors are spread across pages (13). Per-package changelogs and migration guides (15)."
        },
        "scores": {
          "a": 71,
          "b": 98
        }
      },
      {
        "by": 25,
        "category": "reliability",
        "leads": "mastra",
        "name": "Reliability",
        "reasons": {
          "a": "Local-package reading. Official PyPI package dspy with Python 3.10 to below 3.16 stated (20). A public test workflow runs on pushes to main and pull requests for Python 3.10 to 3.15; whether main passes wasn't read, as the Actions API refused us (15). 352 open issues and 475 open pull requests on 23 November 2026. The 50 newest issues, opened from 6 October to 23 November, had 19 with a comment and 8 closed (10). Release notes and an upgrade guide for 3.5, but 3.5 changed defaults and removed APIs in a minor release (7). 3.x, while the package classifier still says Alpha, so partial (10). 20+15+10+7+10 = 62.",
          "b": "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."
        },
        "scores": {
          "a": 62,
          "b": 87
        }
      },
      {
        "by": 20,
        "category": "transparency",
        "leads": "mastra",
        "name": "Transparency \u0026 trust",
        "reasons": {
          "a": "MIT (30). The library keeps only its answer cache, in memory and on disk by default, which the cache guide describes; no terms or privacy policy exist for the project (18). Deprecation warnings name the removal version (ReActV2 removed in 3.6), but there is no written policy and 3.5 removed APIs without a prior deprecation release (8). No telemetry, though no page states it (12). 30+18+8+12 = 68.",
          "b": "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)."
        },
        "scores": {
          "a": 52,
          "b": 72
        }
      },
      {
        "by": 9,
        "category": "maintenance",
        "leads": "mastra",
        "name": "Maintenance \u0026 community",
        "reasons": {
          "a": "3.5.0 tagged on 10 November 2026, 13 days before this check (30). Three releases in the 90 days to 23 November (3.4.0, 3.4.1, 3.5.0) (20). The 50 newest issues had 19 with a comment and 8 closed, with 352 issues and 475 pull requests open, while 213 commits from about 30 authors reached the repository in 90 days (12). The package is current (15). CI on six Python versions, Dependabot and actions pinned to commit SHAs (10). 30+20+12+15+10 = 87.",
          "b": "@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."
        },
        "scores": {
          "a": 87,
          "b": 96
        }
      },
      {
        "by": 7,
        "category": "security",
        "leads": "mastra",
        "name": "Security \u0026 auth",
        "reasons": {
          "a": "Framework reading (telemetry defaults, approvals, guardrails, sandboxing). No telemetry found, and the optional LiteLLM engine switches LiteLLM telemetry off (25). No tool approval hook; RLM runs generated code in a Deno and Pyodide sandbox with no filesystem or network access (10). No prompt-injection guidance found (5). MLflow tracing through OpenTelemetry and callbacks (12). SECURITY.md with GitHub private reporting and a maintainer address, but OSV lists CVE-2025-12695 for the PythonInterpreter sandbox with no fixed version (8). 25+10+5+12+8 = 60.",
          "b": "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."
        },
        "scores": {
          "a": 60,
          "b": 67
        }
      }
    ],
    "facts": [
      {
        "a": "Agent framework",
        "b": "Agent framework",
        "name": "Kind"
      },
      {
        "a": "Stanford NLP",
        "b": "Kepler Software, Inc.",
        "name": "Vendor"
      },
      {
        "a": "no (local only)",
        "b": "no (local only)",
        "name": "Hosted endpoint"
      },
      {
        "a": "",
        "b": "",
        "name": "Transports"
      },
      {
        "a": "None",
        "b": "API key",
        "name": "Auth"
      },
      {
        "a": "Free",
        "b": "Free",
        "name": "Pricing"
      },
      {
        "a": "no",
        "b": "no",
        "name": "x402"
      },
      {
        "a": "MIT",
        "b": "Apache-2.0 for the core. Code under ee/ directories is source-available under the Mastra Enterprise License, free for development and testing",
        "name": "Licence"
      },
      {
        "a": "no",
        "b": "no",
        "name": "Read-only variant documented"
      },
      {
        "a": "no",
        "b": "yes",
        "name": "llms.txt"
      },
      {
        "a": "2026-11-10",
        "b": "2026-11-04",
        "name": "Last release"
      },
      {
        "a": "no document linked",
        "b": "2026-10-26",
        "name": "Terms last updated"
      },
      {
        "a": "no document linked",
        "b": "no date given",
        "name": "Privacy policy last updated"
      },
      {
        "a": "not read yet",
        "b": "yes",
        "name": "Customer content may train models"
      },
      {
        "a": "not read yet",
        "b": "yes",
        "name": "Terms restrict automated access"
      },
      {
        "a": "not read yet",
        "b": "not found in the text",
        "name": "Terms restrict benchmarking"
      },
      {
        "a": "not read yet",
        "b": "yes",
        "name": "Terms or service can change without notice"
      },
      {
        "a": "not read yet",
        "b": "yes",
        "name": "Arbitration or class-action waiver"
      },
      {
        "a": "39k stars",
        "b": "29k stars, 3.1M npm/wk",
        "name": "Popularity"
      }
    ],
    "faq": [
      {
        "answer": "Mastra scores 78 (A) on agent readiness against DSPy's 68.3 (B), and leads in 6 of 7 scored categories.",
        "question": "Which is better for AI agents, DSPy or Mastra?"
      },
      {
        "answer": "Yes. DSPy is open source (MIT). 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).",
        "question": "Are DSPy and Mastra open source?"
      }
    ],
    "goodFor": [
      {
        "aheadOn": null,
        "also": [
          "No key needed to call it",
          "No incidents deducted, where Mastra loses 8 points for them"
        ],
        "goodFor": "Python teams who want typed LM programs they can evaluate and optimise against a metric, with ReAct for tool use.",
        "slug": "dspy",
        "watchFor": "3.5 changed the default adapter, reasoning and API routing and removed CodeAct and ProgramOfThought in a minor release"
      },
      {
        "aheadOn": [
          "Reliability, 87 against 62",
          "Schema \u0026 documentation, 98 against 71",
          "Agent ergonomics, 92 against 64",
          "Security \u0026 auth, 67 against 60",
          "Maintenance \u0026 community, 96 against 87",
          "Transparency \u0026 trust, 72 against 52"
        ],
        "also": [
          "Agent-ready, a grade of BB or better"
        ],
        "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"
      }
    ],
    "history": {
      "dspy": null,
      "mastra": [
        {
          "causes": [
            "method"
          ],
          "date": "2026-11-13",
          "delta": 3.8,
          "from": 74.2,
          "fromGrade": "BB",
          "to": 78,
          "toGrade": "A"
        }
      ]
    },
    "job": {
      "capability": "agent.framework",
      "name": "Agent frameworks"
    },
    "others": [
      {
        "json": "https://www.anchorterminal.com/compare/agentos-vs-dspy.json",
        "title": "AgentOS vs DSPy",
        "url": "https://www.anchorterminal.com/compare/agentos-vs-dspy"
      },
      {
        "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/agno-vs-dspy.json",
        "title": "Agno vs DSPy",
        "url": "https://www.anchorterminal.com/compare/agno-vs-dspy"
      },
      {
        "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/boxlang-ai-vs-dspy.json",
        "title": "BoxLang AI vs DSPy",
        "url": "https://www.anchorterminal.com/compare/boxlang-ai-vs-dspy"
      },
      {
        "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/claude-agent-sdk-vs-dspy.json",
        "title": "Claude Agent SDK vs DSPy",
        "url": "https://www.anchorterminal.com/compare/claude-agent-sdk-vs-dspy"
      },
      {
        "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/crewai-vs-dspy.json",
        "title": "CrewAI vs DSPy",
        "url": "https://www.anchorterminal.com/compare/crewai-vs-dspy"
      },
      {
        "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/cursor-agent-sdk-vs-dspy.json",
        "title": "Cursor Agent SDK vs DSPy",
        "url": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-dspy"
      },
      {
        "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/docker-agent-vs-dspy.json",
        "title": "Docker Agent vs DSPy",
        "url": "https://www.anchorterminal.com/compare/docker-agent-vs-dspy"
      },
      {
        "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/dspy-vs-genkit.json",
        "title": "DSPy vs Genkit",
        "url": "https://www.anchorterminal.com/compare/dspy-vs-genkit"
      },
      {
        "json": "https://www.anchorterminal.com/compare/dspy-vs-google-adk.json",
        "title": "DSPy vs Agent Development Kit (ADK)",
        "url": "https://www.anchorterminal.com/compare/dspy-vs-google-adk"
      },
      {
        "json": "https://www.anchorterminal.com/compare/dspy-vs-guilds-run.json",
        "title": "DSPy vs guilds.run",
        "url": "https://www.anchorterminal.com/compare/dspy-vs-guilds-run"
      },
      {
        "json": "https://www.anchorterminal.com/compare/dspy-vs-haystack.json",
        "title": "DSPy vs Haystack",
        "url": "https://www.anchorterminal.com/compare/dspy-vs-haystack"
      },
      {
        "json": "https://www.anchorterminal.com/compare/dspy-vs-langgraph.json",
        "title": "DSPy vs LangGraph",
        "url": "https://www.anchorterminal.com/compare/dspy-vs-langgraph"
      },
      {
        "json": "https://www.anchorterminal.com/compare/dspy-vs-llamaindex.json",
        "title": "DSPy vs LlamaIndex Framework",
        "url": "https://www.anchorterminal.com/compare/dspy-vs-llamaindex"
      },
      {
        "json": "https://www.anchorterminal.com/compare/dspy-vs-microsoft-agent-framework.json",
        "title": "DSPy vs Microsoft Agent Framework",
        "url": "https://www.anchorterminal.com/compare/dspy-vs-microsoft-agent-framework"
      },
      {
        "json": "https://www.anchorterminal.com/compare/dspy-vs-openai-agents-sdk.json",
        "title": "DSPy vs OpenAI Agents SDK",
        "url": "https://www.anchorterminal.com/compare/dspy-vs-openai-agents-sdk"
      },
      {
        "json": "https://www.anchorterminal.com/compare/dspy-vs-pydantic-ai.json",
        "title": "DSPy vs Pydantic AI",
        "url": "https://www.anchorterminal.com/compare/dspy-vs-pydantic-ai"
      },
      {
        "json": "https://www.anchorterminal.com/compare/dspy-vs-smolagents.json",
        "title": "DSPy vs smolagents",
        "url": "https://www.anchorterminal.com/compare/dspy-vs-smolagents"
      },
      {
        "json": "https://www.anchorterminal.com/compare/dspy-vs-strands-agents.json",
        "title": "DSPy vs Strands Agents",
        "url": "https://www.anchorterminal.com/compare/dspy-vs-strands-agents"
      },
      {
        "json": "https://www.anchorterminal.com/compare/dspy-vs-terse-durable-actors.json",
        "title": "DSPy vs Terse Durable Actors",
        "url": "https://www.anchorterminal.com/compare/dspy-vs-terse-durable-actors"
      },
      {
        "json": "https://www.anchorterminal.com/compare/dspy-vs-tradingagents.json",
        "title": "DSPy vs TradingAgents",
        "url": "https://www.anchorterminal.com/compare/dspy-vs-tradingagents"
      },
      {
        "json": "https://www.anchorterminal.com/compare/dspy-vs-vercel-ai-sdk.json",
        "title": "DSPy vs AI SDK",
        "url": "https://www.anchorterminal.com/compare/dspy-vs-vercel-ai-sdk"
      },
      {
        "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/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/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/haystack-vs-mastra.json",
        "title": "Haystack vs Mastra",
        "url": "https://www.anchorterminal.com/compare/haystack-vs-mastra"
      },
      {
        "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/llamaindex-vs-mastra.json",
        "title": "LlamaIndex Framework vs Mastra",
        "url": "https://www.anchorterminal.com/compare/llamaindex-vs-mastra"
      },
      {
        "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"
      }
    ],
    "panel": null,
    "scores": [
      {
        "by": 25,
        "dspy": 62,
        "edge": "mastra",
        "key": "reliability",
        "mastra": 87,
        "name": "Reliability",
        "weight": 16
      },
      {
        "key": "performance",
        "name": "Performance",
        "pending": true,
        "weight": 10
      },
      {
        "by": 27,
        "dspy": 71,
        "edge": "mastra",
        "key": "schema",
        "mastra": 98,
        "name": "Schema \u0026 documentation",
        "weight": 13
      },
      {
        "by": 28,
        "dspy": 64,
        "edge": "mastra",
        "key": "ergonomics",
        "mastra": 92,
        "name": "Agent ergonomics",
        "weight": 13
      },
      {
        "by": 7,
        "dspy": 60,
        "edge": "mastra",
        "key": "security",
        "mastra": 67,
        "name": "Security \u0026 auth",
        "weight": 14
      },
      {
        "by": 0,
        "dspy": 90,
        "edge": "",
        "key": "payments",
        "mastra": 90,
        "name": "Payments \u0026 pricing",
        "weight": 10
      },
      {
        "key": "tasks",
        "name": "Task success",
        "pending": true,
        "weight": 10
      },
      {
        "by": 9,
        "dspy": 87,
        "edge": "mastra",
        "key": "maintenance",
        "mastra": 96,
        "name": "Maintenance \u0026 community",
        "weight": 7
      },
      {
        "by": 20,
        "dspy": 52,
        "edge": "mastra",
        "key": "transparency",
        "mastra": 72,
        "name": "Transparency \u0026 trust",
        "weight": 7
      }
    ],
    "summary": "Mastra scores 78 (A) on agent readiness against DSPy's 68.3 (B), and leads in 6 of 7 scored categories. Both do agent frameworks.",
    "tasks": null,
    "tutorials": [],
    "verdicts": {
      "dspy": "An MIT Python framework with typed signatures, a ReAct agent that returns tool errors to the model, MCP tool conversion, a Deno sandbox for generated code, no telemetry found and monthly releases. Release 3.5 changed defaults and removed APIs in a minor version, and there is no tool approval hook or llms.txt.",
      "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."
    }
  },
  "kind": "anchor.page",
  "links": {
    "api": "https://www.anchorterminal.com/api/v1/index.json",
    "html": "https://www.anchorterminal.com/compare/dspy-vs-mastra",
    "json": "https://www.anchorterminal.com/compare/dspy-vs-mastra.json",
    "llms": "https://www.anchorterminal.com/llms.txt",
    "markdown": "https://www.anchorterminal.com/compare/dspy-vs-mastra.md",
    "mcp": "https://www.anchorterminal.com/mcp",
    "slim": "https://www.anchorterminal.com/compare/dspy-vs-mastra.min.md"
  },
  "markdown": "Mastra scores 78 (A) on agent readiness against DSPy's 68.3 (B), and leads in 6 of 7 scored categories. Both do agent frameworks.\n\n- DSPy: grade B, 68.3/100, rank #414 of 1654. Markdown https://www.anchorterminal.com/tools/dspy.md · JSON https://www.anchorterminal.com/api/v1/tools/dspy.json\n- Mastra: grade A, 78/100, rank #66 of 1654. Markdown https://www.anchorterminal.com/tools/mastra.md · JSON https://www.anchorterminal.com/api/v1/tools/mastra.json\n- Best agent frameworks and SDKs: https://www.anchorterminal.com/best/frameworks/index.md\n- All 253 frameworks comparisons: https://www.anchorterminal.com/compare/frameworks/index.md\n\n## Which one, for what\n\n### DSPy (B)\n\nGood for: Python teams who want typed LM programs they can evaluate and optimise against a metric, with ReAct for tool use.\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: 3.5 changed the default adapter, reasoning and API routing and removed CodeAct and ProgramOfThought in a minor release\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 62\n- Schema \u0026 documentation, 98 against 71\n- Agent ergonomics, 92 against 64\n- Security \u0026 auth, 67 against 60\n- Maintenance \u0026 community, 96 against 87\n- Transparency \u0026 trust, 72 against 52\n\nAlso in its favour:\n- Agent-ready, a grade of BB or better\n\nWatch for: Malicious versions of Mastra npm packages, including @mastra/core 1.42.1, were published on 17 June 2026\n\n\n## Why the edge\n\n### Agent ergonomics: Mastra +28\n\n- DSPy (64): Framework reading. MCP tools through the dspy[mcp] extra, converted one by one from a client session the developer opens (14). max_iters with a turn budget shown to the model and a forced final submit bound a run (17). Unknown tools and tool exceptions return to the model as error results (15). History continuation and saved programs, but no resume of an interrupted run or durable store; answer caching can mask repeated calls (8). Signatures keep required arguments few, an LM must be configured, Python only (10). 14+17+15+8+10 = 64.\n- Mastra (92): An MCP client in about ten lines with listTools() for static or listToolsets() for per-request tools, and ToolSearchProcessor for loading tools on demand (25). Step limits, memory windows and processors such as a token limiter control what reaches the model (20). MastraError with ids and categories, and processors can abort with a reason the caller can read (17). Workflow step retries, snapshots and durable agents for resuming (20). create-mastra scaffolds a project and the model router takes a plain string, but it's TypeScript only (10).\n\n### Schema \u0026 documentation: Mastra +27\n\n- DSPy (71): Framework reading. A typed Python API with an API reference for modules, tools, adapters and errors (20). No llms.txt at dspy.ai; the docs are Markdown in the repository but not served for agents (0). The tools and ReAct pages say what each part is for and when to read on (15). Tools are typed from signatures and Pydantic annotations and validated against JSON Schema (14). Many tutorials with code, and an errors page in the reference (12). Versioned docs, GitHub release notes and an upgrade guide, with no changelog file (10). 20+0+15+14+12+10 = 71.\n- Mastra (98): Typed TypeScript API with a reference section (25). llms.txt with a when-to-use list and condensed instructions for coding agents (10). The docs say when to use durable agents, and point multi-agent users from `.network()` to supervisor agents (20). Tools take Zod schemas (15). Examples on every page, and MastraError with ids and categories documented, though errors are spread across pages (13). Per-package changelogs and migration guides (15).\n\n### Reliability: Mastra +25\n\n- DSPy (62): Local-package reading. Official PyPI package dspy with Python 3.10 to below 3.16 stated (20). A public test workflow runs on pushes to main and pull requests for Python 3.10 to 3.15; whether main passes wasn't read, as the Actions API refused us (15). 352 open issues and 475 open pull requests on 23 November 2026. The 50 newest issues, opened from 6 October to 23 November, had 19 with a comment and 8 closed (10). Release notes and an upgrade guide for 3.5, but 3.5 changed defaults and removed APIs in a minor release (7). 3.x, while the package classifier still says Alpha, so partial (10). 20+15+10+7+10 = 62.\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\n### Transparency \u0026 trust: Mastra +20\n\n- DSPy (52): MIT (30). The library keeps only its answer cache, in memory and on disk by default, which the cache guide describes; no terms or privacy policy exist for the project (18). Deprecation warnings name the removal version (ReActV2 removed in 3.6), but there is no written policy and 3.5 removed APIs without a prior deprecation release (8). No telemetry, though no page states it (12). 30+18+8+12 = 68.\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\n### Maintenance \u0026 community: Mastra +9\n\n- DSPy (87): 3.5.0 tagged on 10 November 2026, 13 days before this check (30). Three releases in the 90 days to 23 November (3.4.0, 3.4.1, 3.5.0) (20). The 50 newest issues had 19 with a comment and 8 closed, with 352 issues and 475 pull requests open, while 213 commits from about 30 authors reached the repository in 90 days (12). The package is current (15). CI on six Python versions, Dependabot and actions pinned to commit SHAs (10). 30+20+12+15+10 = 87.\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\n### Security \u0026 auth: Mastra +7\n\n- DSPy (60): Framework reading (telemetry defaults, approvals, guardrails, sandboxing). No telemetry found, and the optional LiteLLM engine switches LiteLLM telemetry off (25). No tool approval hook; RLM runs generated code in a Deno and Pyodide sandbox with no filesystem or network access (10). No prompt-injection guidance found (5). MLflow tracing through OpenTelemetry and callbacks (12). SECURITY.md with GitHub private reporting and a maintainer address, but OSV lists CVE-2025-12695 for the PythonInterpreter sandbox with no fixed version (8). 25+10+5+12+8 = 60.\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\n## Score by category\n\n| Category | Weight | DSPy | Mastra | Edge |\n| --- | --- | --- | --- | --- |\n| Reliability | 16% | 62 | 87 | Mastra +25 |\n| Performance | 10%, pending | pending | pending | not scored in this run |\n| Schema \u0026 documentation | 13% | 71 | 98 | Mastra +27 |\n| Agent ergonomics | 13% | 64 | 92 | Mastra +28 |\n| Security \u0026 auth | 14% | 60 | 67 | Mastra +7 |\n| Payments \u0026 pricing | 10% | 90 | 90 | even |\n| Task success | 10%, pending | pending | pending | not scored in this run |\n| Maintenance \u0026 community | 7% | 87 | 96 | Mastra +9 |\n| Transparency \u0026 trust | 7% | 52 | 72 | Mastra +20 |\n| Negative events | ≤15 | 0 | -8 | |\n| **Total** | | **68.3 · B** | **78 · A** | |\n\n## Facts side by side\n\n| Fact | DSPy | Mastra |\n| --- | --- | --- |\n| Kind | Agent framework | Agent framework |\n| Vendor | Stanford NLP | Kepler Software, Inc. |\n| Hosted endpoint | no (local only) | no (local only) |\n| Transports |  |  |\n| Auth | None | API key |\n| Pricing | Free | Free |\n| x402 | no | no |\n| Licence | MIT | Apache-2.0 for the core. Code under ee/ directories is source-available under the Mastra Enterprise License, free for development and testing |\n| Read-only variant documented | no | no |\n| llms.txt | no | yes |\n| Last release | 2026-11-10 | 2026-11-04 |\n| Terms last updated | no document linked | 2026-10-26 |\n| Privacy policy last updated | no document linked | no date given |\n| Customer content may train models | not read yet | yes |\n| Terms restrict automated access | not read yet | yes |\n| Terms restrict benchmarking | not read yet | not found in the text |\n| Terms or service can change without notice | not read yet | yes |\n| Arbitration or class-action waiver | not read yet | yes |\n| Popularity | 39k stars | 29k stars, 3.1M npm/wk |\n\n## How the scores have moved\n\n### DSPy\n\nNo score change since it was listed.\n\n### Mastra\n\n- +3.8 on 13 November 2026 (BB to A): checklist\n\n## Verdicts\n\n**DSPy.** An MIT Python framework with typed signatures, a ReAct agent that returns tool errors to the model, MCP tool conversion, a Deno sandbox for generated code, no telemetry found and monthly releases. Release 3.5 changed defaults and removed APIs in a minor version, and there is no tool approval hook or llms.txt.\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## Before you call either\n\n### DSPy\n\n1. Re-evaluate saved programs after upgrading to 3.5, since the default adapter and prompts changed\n2. Install dspy[mcp] and convert each MCP tool with dspy.Tool.from_mcp_tool while the client session stays open\n3. Disable the answer cache for calls whose output must change between runs, since memory and disk caches are on by default\n4. Wrap tools that send, pay or delete in your own confirmation step, because ReAct runs tools without approval\n5. Pin dspy to a minor version, since minor releases remove APIs\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## Questions\n\n### Which is better for AI agents, DSPy or Mastra?\n\nMastra scores 78 (A) on agent readiness against DSPy's 68.3 (B), and leads in 6 of 7 scored categories.\n\n### Are DSPy and Mastra open source?\n\nYes. DSPy is open source (MIT). 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).\n\n\n## For agents\n\n- This comparison as JSON: https://www.anchorterminal.com/compare/dspy-vs-mastra.json, and with the fewest tokens: https://www.anchorterminal.com/compare/dspy-vs-mastra.min.md\n- Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {\"a\": \"dspy\", \"b\": \"mastra\"}`. From a terminal: `anchor compare dspy mastra`\n- Each listing in full: https://www.anchorterminal.com/api/v1/tools/dspy.json and https://www.anchorterminal.com/api/v1/tools/mastra.json\n\n## Other comparisons with DSPy or Mastra\n\n- [AgentOS vs DSPy](https://www.anchorterminal.com/compare/agentos-vs-dspy.md)\n- [AgentOS vs Mastra](https://www.anchorterminal.com/compare/agentos-vs-mastra.md)\n- [Agno vs DSPy](https://www.anchorterminal.com/compare/agno-vs-dspy.md)\n- [Agno vs Mastra](https://www.anchorterminal.com/compare/agno-vs-mastra.md)\n- [BoxLang AI vs DSPy](https://www.anchorterminal.com/compare/boxlang-ai-vs-dspy.md)\n- [BoxLang AI vs Mastra](https://www.anchorterminal.com/compare/boxlang-ai-vs-mastra.md)\n- [Claude Agent SDK vs DSPy](https://www.anchorterminal.com/compare/claude-agent-sdk-vs-dspy.md)\n- [Claude Agent SDK vs Mastra](https://www.anchorterminal.com/compare/claude-agent-sdk-vs-mastra.md)\n- [CrewAI vs DSPy](https://www.anchorterminal.com/compare/crewai-vs-dspy.md)\n- [CrewAI vs Mastra](https://www.anchorterminal.com/compare/crewai-vs-mastra.md)\n- [Cursor Agent SDK vs DSPy](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-dspy.md)\n- [Cursor Agent SDK vs Mastra](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-mastra.md)\n- [Docker Agent vs DSPy](https://www.anchorterminal.com/compare/docker-agent-vs-dspy.md)\n- [Docker Agent vs Mastra](https://www.anchorterminal.com/compare/docker-agent-vs-mastra.md)\n- [DSPy vs Genkit](https://www.anchorterminal.com/compare/dspy-vs-genkit.md)\n- [DSPy vs Agent Development Kit (ADK)](https://www.anchorterminal.com/compare/dspy-vs-google-adk.md)\n- [DSPy vs guilds.run](https://www.anchorterminal.com/compare/dspy-vs-guilds-run.md)\n- [DSPy vs Haystack](https://www.anchorterminal.com/compare/dspy-vs-haystack.md)\n- [DSPy vs LangGraph](https://www.anchorterminal.com/compare/dspy-vs-langgraph.md)\n- [DSPy vs LlamaIndex Framework](https://www.anchorterminal.com/compare/dspy-vs-llamaindex.md)\n- [DSPy vs Microsoft Agent Framework](https://www.anchorterminal.com/compare/dspy-vs-microsoft-agent-framework.md)\n- [DSPy vs OpenAI Agents SDK](https://www.anchorterminal.com/compare/dspy-vs-openai-agents-sdk.md)\n- [DSPy vs Pydantic AI](https://www.anchorterminal.com/compare/dspy-vs-pydantic-ai.md)\n- [DSPy vs smolagents](https://www.anchorterminal.com/compare/dspy-vs-smolagents.md)\n- [DSPy vs Strands Agents](https://www.anchorterminal.com/compare/dspy-vs-strands-agents.md)\n- [DSPy vs Terse Durable Actors](https://www.anchorterminal.com/compare/dspy-vs-terse-durable-actors.md)\n- [DSPy vs TradingAgents](https://www.anchorterminal.com/compare/dspy-vs-tradingagents.md)\n- [DSPy vs AI SDK](https://www.anchorterminal.com/compare/dspy-vs-vercel-ai-sdk.md)\n- [Genkit vs Mastra](https://www.anchorterminal.com/compare/genkit-vs-mastra.md)\n- [Agent Development Kit (ADK) vs Mastra](https://www.anchorterminal.com/compare/google-adk-vs-mastra.md)\n- [guilds.run vs Mastra](https://www.anchorterminal.com/compare/guilds-run-vs-mastra.md)\n- [Haystack vs Mastra](https://www.anchorterminal.com/compare/haystack-vs-mastra.md)\n- [LangGraph vs Mastra](https://www.anchorterminal.com/compare/langgraph-vs-mastra.md)\n- [LlamaIndex Framework vs Mastra](https://www.anchorterminal.com/compare/llamaindex-vs-mastra.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",
  "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-23",
    "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": "DSPy vs Mastra",
        "url": ""
      }
    ],
    "description": "Mastra scores 78 (A) to DSPy's 68.3 (B) for agent frameworks. Prices, MCP, x402, uptime and agent notes side by side.",
    "facts": [
      "DSPy B 68.3",
      "Mastra A 78",
      "scores"
    ],
    "h1": "DSPy vs Mastra",
    "image": "https://www.anchorterminal.com/assets/og/default.png",
    "path": "/compare/dspy-vs-mastra",
    "published": "2026-10-01",
    "section": "tools",
    "title": "DSPy vs Mastra for AI agents in 2026: scores and prices",
    "toc": null,
    "updated": "2026-11-23",
    "url": "https://www.anchorterminal.com/compare/dspy-vs-mastra"
  },
  "tokens": {
    "markdown": 4550,
    "slim": 930
  },
  "version": 1
}
