{
  "data": {
    "a": {
      "slug": "cursor-agent-sdk",
      "name": "Cursor Agent SDK",
      "vendor": "Cursor",
      "vendorUrl": "https://cursor.com/docs/agent-sdk",
      "company": "cursor.com",
      "kind": "framework",
      "category": "frameworks",
      "summary": "Cursor's TypeScript framework for defining an agent as a folder of instructions, typed tools, skills, MCP connections and channels, testing it with evals, and running it on your own server or on Cursor's hosting.",
      "url": "https://www.anchorterminal.com/tools/cursor-agent-sdk",
      "markdownUrl": "https://www.anchorterminal.com/tools/cursor-agent-sdk.md",
      "slimMarkdownUrl": "https://www.anchorterminal.com/tools/cursor-agent-sdk.min.md",
      "cardUrl": "https://www.anchorterminal.com/tools/cursor-agent-sdk.card.md",
      "jsonUrl": "https://www.anchorterminal.com/api/v1/tools/cursor-agent-sdk.json",
      "dns": "cursor-agent-sdk.grade.anchorterminal.com",
      "license": "Proprietary. The package's LICENSE.md reads \"© Anysphere Inc. All rights reserved\", with use subject to Cursor's Terms of Service (updated 3 September 2026). No source repository is published",
      "transports": [],
      "packages": [
        {
          "registry": "npm",
          "name": "@grok/agent-sdk"
        }
      ],
      "auth": "mixed",
      "authNotes": "Model turns need a Cursor credential. `agent-sdk login` opens a browser sign-in and stores the key it creates, or pass a user API key from the dashboard or a team service-account key as `--api-key`, `CURSOR_API_KEY`, `CURSOR_API_KEY_FILE` or `CURSOR_SERVICE_ACCOUNT_KEY`. `logout` doesn't revoke the key. Direct tool calls without a model turn need no Cursor key. A self-hosted server is protected with `--bearer-token`, and a deployment's routes with an alias token.",
      "pricing": "byo-plan",
      "pricingNotes": "The package is free to install. Model turns draw on the Cursor plan of the key's owner, Free ($0, limited agent requests) to Ultra ($200 a month), and beyond the weekly pool the default model, Grok 4.5 with Fast on, is $4 per million input tokens and $18 per million output tokens. No price for Cursor-managed hosting and no statement of which plans include the Agent SDK were found (checked 2026-10-27).",
      "priceSummary": "Your plan",
      "where": "library",
      "x402": {
        "level": "no",
        "evidence": "No x402, MPP or L402 in the Agent SDK docs, the npm package or the pricing page (checked 2026-10-27).",
        "endpoints": []
      },
      "toolCount": null,
      "popularity": {
        "githubStars": null,
        "npmWeekly": null,
        "pypiWeekly": null,
        "asOf": "2026-10-27"
      },
      "docsUrl": "https://cursor.com/docs/agent-sdk",
      "llmsTxt": "https://cursor.com/llms.txt",
      "capabilities": [
        "agent.framework",
        "agent.mcp-client",
        "agent.durable",
        "agent.multi-agent",
        "obs.evals"
      ],
      "tags": [
        "official",
        "framework",
        "typescript",
        "closed-source",
        "mcp",
        "llms-txt",
        "pre-1.0",
        "self-hosted",
        "hosted",
        "new"
      ],
      "lastRelease": "2026-10-25",
      "graded": true,
      "anchor": {
        "graded": true,
        "score": 65.5,
        "grade": "B",
        "agentReady": false,
        "rank": 564,
        "ranked": true,
        "rankOf": 1654,
        "categoryRank": 19,
        "methodology": "1.0",
        "run": "2026-10-01",
        "scores": {
          "ergonomics": 80,
          "maintenance": 74,
          "payments": 45,
          "reliability": 45,
          "schema": 82,
          "security": 68,
          "transparency": 71
        },
        "assessment": {
          "confidence": "medium",
          "date": "2026-11-02"
        },
        "negative": 0,
        "verdict": "An agent-as-code framework with typed tools, declared read and write effects that drive retries and dry runs, an approval gate per tool and evals that assert on tool calls. It's closed source, every model turn runs through Cursor's backend on a Cursor plan, local sandboxing is off by default, and the changelog has two entries.",
        "bestFor": "Teams already on Cursor who want version-controlled agents for pull request review, triage and Slack, with evals in CI and one-command hosting.",
        "strengths": [
          "Tools declare a read, write or idempotent effect. Only reads and idempotent calls retry, and dry-run sessions stub writes",
          "`needsApproval` on a tool parks the call until a person approves, and `ctx.approvedBy` records who did",
          "Evals assert which tools ran, with what input, and the reply's shape, and `github replay` turns a real pull request into signed test deliveries",
          "Every page has a Markdown twin listed in cursor.com/llms.txt, and the package ships the same docs and an llms.txt",
          "Sessions keep a record of every message and tool call, and OpenTelemetry export stays off until an endpoint is set"
        ],
        "weaknesses": [
          "Closed source under Cursor's terms, with no public repository, CI or issue tracker",
          "Every model turn runs through Cursor's backend with a Cursor credential, including on a self-hosted server",
          "Local sandboxing is off by default, so shell commands auto-approve with the host's credentials",
          "The changelog has two entries, 0.2.29 and 0.3.0, both dated 23 October 2026. The 27 earlier @cursor/bdk versions have none",
          "The launch post's install command names a package that doesn't exist on npm"
        ],
        "agentNotes": [
          "Install `@grok/agent-sdk`, not `@cursor/agent-sdk` from the launch post. That name answers 404 on npm",
          "Set `local.sandbox` before a turn reads webhook payloads, pull request diffs or chat. Without it shell commands auto-approve with the host's credentials",
          "Give every tool an `effect`. A tool without one counts as a write, runs once and is stubbed in dry runs",
          "Start `agent-sdk serve` with `--bearer-token` on any shared host. `--allow-anonymous` admits every caller as one principal",
          "Delete bot/hooks/memory.ts when sessions serve different people. The journal shares each turn's message and result with later turns"
        ],
        "metrics": {
          "kind": "library",
          "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": 65.5
          }
        ],
        "editorialScores": {
          "ergonomics": 80,
          "maintenance": 74,
          "payments": 45,
          "reliability": 45,
          "schema": 82,
          "security": 68,
          "transparency": 49
        },
        "provenanceScore": 92,
        "checked": {
          "categories": {
            "ergonomics": "2026-11-02",
            "maintenance": "2026-11-02",
            "payments": "2026-11-02",
            "reliability": "2026-11-02",
            "schema": "2026-11-02",
            "security": "2026-11-02",
            "transparency": "2026-11-02"
          },
          "last": "2026-11-02",
          "lastMoved": "2026-11-13",
          "oldest": "2026-11-02",
          "stale": false,
          "staleAfterDays": 90
        }
      },
      "connect": {
        "install": "npm install --global @grok/agent-sdk",
        "headless": {
          "run": "agent-sdk run --dir . --message \"Introduce yourself in one sentence.\""
        }
      },
      "letme": {
        "capability": "https://letme.dev/agent.framework",
        "tool": "https://letme.dev/cursor-agent-sdk"
      },
      "sameCompany": [
        "cursor-cli",
        "grok-bot"
      ],
      "area": "frameworks",
      "unitPrices": [
        {
          "item": "Grok 4.5 Fast (the default model) input, beyond the weekly pool",
          "unit": "1m-tokens",
          "usd": 4,
          "note": "cache reads $1"
        },
        {
          "item": "Grok 4.5 Fast (the default model) output, beyond the weekly pool",
          "unit": "1m-tokens",
          "usd": 18
        },
        {
          "item": "Grok 4.5 input, Fast off, beyond the weekly pool",
          "unit": "1m-tokens",
          "usd": 2,
          "note": "cache reads $0.50"
        },
        {
          "item": "Grok 4.5 output, Fast off, beyond the weekly pool",
          "unit": "1m-tokens",
          "usd": 6
        },
        {
          "item": "Premium plan (first plan with Cloud Agents and third-party models)",
          "unit": "month",
          "usd": 30
        }
      ],
      "provenance": {
        "legalEntity": "Anysphere, Inc.",
        "domain": "cursor.com",
        "domainRegistered": "1995-12-20",
        "endpointOnVendorDomain": null,
        "terms": "https://cursor.com/terms-of-service",
        "privacy": "https://cursor.com/privacy",
        "statusPage": "https://status.cursor.com",
        "changelog": "https://cursor.com/docs/agent-sdk/changelog",
        "securityTxt": "valid",
        "checked": "2026-11-02",
        "notes": [
          "The package's LICENSE.md and the site footer name Anysphere, Inc. The terms of service are dated 3 September 2026 and the privacy policy 11 October 2026.",
          "RDAP (Verisign) gives cursor.com a registration date of 1995-12-20.",
          "cursor.com/.well-known/security.txt has a Contact line pointing to github.com/getcursor/cursor/security and a secondary email, and no Expires line. The site's tracker reads a file with a Contact and no Expires as valid, as on the Cursor CLI listing.",
          "The footer links status.cursor.com. Its robots.txt answered with a Cloudflare challenge on 27 October 2026, so the status page wasn't read.",
          "The npm package's repository field points to github.com/cursor/cursor, which holds only a README and SECURITY.md.",
          "On 2 November 2026 status.cursor.com answered with a redirect to status.x.ai, whose page answered a Cloudflare block, so the status page couldn't be read."
        ],
        "score": 92
      },
      "pageJsonUrl": "https://www.anchorterminal.com/tools/cursor-agent-sdk.json",
      "live": {
        "slug": "cursor-agent-sdk",
        "vendorStatus": {
          "page": "https://status.cursor.com",
          "indicator": "none",
          "summary": "All Systems Operational",
          "checkedAt": "2026-11-23T16:21:06.26034555Z"
        },
        "versions": [
          {
            "registry": "npm",
            "name": "@grok/agent-sdk",
            "version": "0.7.2",
            "seenAt": "2026-11-23T00:01:35.837224041Z"
          }
        ],
        "npmWeekly": 32477,
        "securityTxt": {
          "url": "https://cursor.com/.well-known/security.txt",
          "state": "valid",
          "checkedAt": "2026-11-22T16:40:21.561426735Z"
        },
        "llmsTxt": {
          "url": "https://cursor.com/llms.txt",
          "ok": true,
          "status": 200,
          "checkedAt": "2026-11-22T16:30:09.872769537Z"
        },
        "domain": {
          "domain": "cursor.com",
          "registered": "1995-12-20",
          "source": "https://rdap.verisign.com/com/v1/domain/cursor.com",
          "checkedAt": "2026-11-22T16:04:12.848653044Z"
        },
        "pages": [
          {
            "url": "https://cursor.com/docs/agent-sdk/changelog",
            "kind": "deprecations",
            "status": 200,
            "checkedAt": "2026-11-23T00:19:55.649015897Z",
            "changedAt": "2026-11-20T22:57:57.370731989Z",
            "fingerprint": "81181b64307c"
          },
          {
            "url": "https://cursor.com/privacy",
            "kind": "privacy",
            "status": 200,
            "checkedAt": "2026-11-23T00:19:59.596571211Z",
            "changedAt": "2026-11-08T14:42:30.344401464Z",
            "fingerprint": "b650dcc7ebc7"
          },
          {
            "url": "https://cursor.com/terms-of-service",
            "kind": "terms",
            "status": 200,
            "checkedAt": "2026-11-23T00:20:01.611582677Z",
            "changedAt": "2026-10-21T00:22:07.052190293Z",
            "fingerprint": "d31f70e876bc"
          }
        ],
        "updatedAt": "2026-11-23T16:21:06.26034555Z"
      }
    },
    "answer": "Haystack scores 77.8 (BB) on agent readiness against Cursor Agent SDK's 65.5 (B), and leads in 5 of 7 scored categories. Cursor Agent SDK leads on agent ergonomics and security \u0026 auth.",
    "b": {
      "slug": "haystack",
      "name": "Haystack",
      "vendor": "deepset",
      "vendorUrl": "https://haystack.deepset.ai/",
      "company": "deepset.ai",
      "kind": "framework",
      "category": "frameworks",
      "summary": "Haystack is deepset's open-source Python framework for building agents and retrieval pipelines, with an Agent component, MCP tool loading, human approval hooks, pipeline breakpoints and integrations for model providers and vector stores.",
      "url": "https://www.anchorterminal.com/tools/haystack",
      "markdownUrl": "https://www.anchorterminal.com/tools/haystack.md",
      "slimMarkdownUrl": "https://www.anchorterminal.com/tools/haystack.min.md",
      "cardUrl": "https://www.anchorterminal.com/tools/haystack.card.md",
      "jsonUrl": "https://www.anchorterminal.com/api/v1/tools/haystack.json",
      "dns": "haystack.grade.anchorterminal.com",
      "repo": "https://github.com/deepset-ai/haystack",
      "license": "Apache-2.0",
      "transports": [],
      "packages": [
        {
          "registry": "pypi",
          "name": "haystack-ai"
        },
        {
          "registry": "pypi",
          "name": "mcp-haystack"
        },
        {
          "registry": "pypi",
          "name": "hayhooks"
        }
      ],
      "auth": "none",
      "authNotes": "A library with no credentials of its own. The Agent takes a chat generator the developer chooses, and each model or store integration reads its own key, such as an OpenAI key for OpenAIChatGenerator.",
      "pricing": "free",
      "pricingNotes": "Free and open source under Apache-2.0, with nothing to buy for the framework. You pay for model calls. deepset sells enterprise support and the Haystack Enterprise Platform separately, with a free trial and no public prices.",
      "priceSummary": "Free · OSS",
      "where": "library",
      "x402": {
        "level": "no",
        "evidence": "No x402, MPP or L402 in the Haystack docs or the repository (checked 2026-11-23).",
        "endpoints": []
      },
      "toolCount": null,
      "popularity": {
        "githubStars": 27082,
        "npmWeekly": null,
        "pypiWeekly": null,
        "asOf": "2026-11-23"
      },
      "docsUrl": "https://docs.haystack.deepset.ai/docs/intro",
      "llmsTxt": "https://docs.haystack.deepset.ai/llms.txt",
      "capabilities": [
        "agent.framework",
        "agent.multi-agent",
        "agent.durable",
        "agent.mcp-client"
      ],
      "tags": [
        "framework",
        "python",
        "open-source",
        "llms-txt",
        "mcp",
        "rag",
        "telemetry-on",
        "human-approval"
      ],
      "lastRelease": "2026-11-10",
      "graded": true,
      "anchor": {
        "graded": true,
        "score": 77.8,
        "grade": "BB",
        "agentReady": true,
        "rank": 72,
        "ranked": true,
        "rankOf": 1654,
        "categoryRank": 9,
        "methodology": "1.0",
        "run": "2026-10-01",
        "scores": {
          "ergonomics": 75,
          "maintenance": 95,
          "payments": 90,
          "reliability": 81,
          "schema": 88,
          "security": 63,
          "transparency": 74
        },
        "assessment": {
          "confidence": "medium",
          "date": "2026-11-23"
        },
        "negative": -2,
        "negativeNotes": [
          "2026-11-10. Release 3.5.0 fixed remote code execution paths in safe-mode pipeline loading (custom Jinja filters on OutputAdapter and ConditionalRouter reaching the deserialiser's own allowlist functions) and a path boundary gap in FileSystemToolResultStore, documented in the release notes. OSV lists no advisory for them. Fixed and documented, so 2 points. https://github.com/deepset-ai/haystack/tree/v3.5.0/releasenotes/notes"
        ],
        "verdict": "An Apache-2.0 Python framework with an Agent component, per-tool approval hooks, MCP tools, failure snapshots, a written deprecation policy and releases every few weeks. It sends anonymous usage telemetry to deepset's PostHog by default, including agent model and tool names, until HAYSTACK_TELEMETRY_ENABLED is set to False.",
        "bestFor": "Python teams building retrieval-heavy agents or pipelines who want explicit components, approval hooks and resumable runs.",
        "strengths": [
          "ConfirmationHook asks a person to confirm, change or reject a tool call, with a policy set per tool",
          "Pipelines save a snapshot of the last valid state when a run fails, and breakpoints pause and resume runs",
          "A written breaking change policy keeps deprecated functionality working for one minor release with a FutureWarning",
          "Six releases from 3.1.1 to 3.5.0 between 3 September and 10 November 2026, plus nightly builds",
          "Full documentation in one llms.txt, with versioned docs for 3.2 to 3.6"
        ],
        "weaknesses": [
          "Anonymous telemetry to PostHog EU is on by default and includes the Agent's model and tool names",
          "Version numbers do not follow semantic versioning, and minor releases remove deprecated functionality",
          "SECURITY.md puts input validation, SSRF prevention and untrusted pipeline files outside Haystack's scope",
          "Remote code execution paths in pipeline deserialisation were fixed in 3.5.0 through release notes, with no published advisory found",
          "MCP tools need the separate mcp-haystack package"
        ],
        "agentNotes": [
          "Set HAYSTACK_TELEMETRY_ENABLED=False before importing haystack if usage events must not leave the machine",
          "Add a ConfirmationHook before tools that send, pay or delete",
          "Pass tool_names to MCPToolset so only the needed tools from an MCP server load",
          "Load pipeline YAML and resume snapshots only from trusted sources, since deserialisation can run code",
          "Pin haystack-ai to a minor version and read the release notes before upgrading"
        ],
        "metrics": {
          "kind": "local",
          "measured": false
        },
        "reviewCount": 0,
        "avgRating": 0,
        "history": [
          {
            "basis": "public evidence",
            "confidence": "medium",
            "grade": "BB",
            "methodology": "1.0",
            "run": "2026-10-01",
            "runLabel": "October 2026 research run",
            "score": 77.8
          }
        ],
        "editorialScores": {
          "ergonomics": 75,
          "maintenance": 95,
          "payments": 90,
          "reliability": 81,
          "schema": 88,
          "security": 63,
          "transparency": 90
        },
        "provenanceScore": 58,
        "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 haystack-ai   # MCP tools: pip install mcp-haystack"
      },
      "letme": {
        "capability": "https://letme.dev/agent.framework",
        "tool": "https://letme.dev/haystack"
      },
      "area": "frameworks",
      "provenance": {
        "legalEntity": "deepset GmbH",
        "domain": "deepset.ai",
        "domainRegistered": "",
        "endpointOnVendorDomain": null,
        "terms": "https://www.deepset.ai/terms-and-conditions",
        "privacy": "https://www.deepset.ai/privacy-policy",
        "statusPage": "",
        "changelog": "https://github.com/deepset-ai/haystack/releases",
        "securityTxt": "unknown",
        "checked": "2026-11-23",
        "notes": [
          "deepset GmbH, Zinnowitzerstr. 1, 10115 Berlin, registered at Amtsgericht Berlin-Charlottenburg as HRB 197429 B, with managing directors Milos Rusic and Malte Pietsch, per the imprint.",
          "The framework is Apache-2.0. The privacy policy, updated 23 October 2026, covers deepset's website, contact and Enterprise Platform accounts and does not mention framework telemetry; the telemetry page in the docs describes it.",
          "robots.txt on haystack.deepset.ai and docs.haystack.deepset.ai answered 404, so those hosts publish no rules. www.deepset.ai publishes rules that allowed the pages read.",
          "trust.deepset.ai rendered no text to our reader, so its certifications weren't read. security.txt wasn't checked."
        ],
        "score": 58
      },
      "pageJsonUrl": "https://www.anchorterminal.com/tools/haystack.json"
    },
    "edges": [
      {
        "by": 45,
        "category": "payments",
        "leads": "haystack",
        "name": "Payments \u0026 pricing",
        "reasons": {
          "a": "Framework reading of the published rubric. No payment protocol (0). Per-million-token prices for Cursor models, including the default Grok 4.5 with Fast, and plan prices are public, but no price for managed hosting and no statement of which plans cover the Agent SDK were found (15). The package is free and the Free plan needs no card, but its usage is only described as limited agent requests (15). A person signs in through a browser or creates an API key in the dashboard before a model turn runs (0). 0+15+15+0 = 30. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 30 is 45.",
          "b": "Self-hosted rule. Free Apache-2.0 package with nothing to buy for the framework itself (30 + 30 + 30). No payment protocol (0). deepset's enterprise support and Enterprise Platform are separate offerings with no public prices and weren't graded. 0+30+30+30 = 90."
        },
        "scores": {
          "a": 45,
          "b": 90
        }
      },
      {
        "by": 36,
        "category": "reliability",
        "leads": "haystack",
        "name": "Reliability",
        "reasons": {
          "a": "Local-package reading, since the owner runs the framework, with Cursor's hosting as an option. Official npm package with Node 22.13 or newer stated in engines and in the docs, which also say never Bun (20). Closed source, so no public CI or test suite (0). No public issue tracker. github.com/cursor/cursor holds a README and SECURITY.md, and forum.cursor.com has no Agent SDK tag, so there's nothing to count open crashes against. The troubleshooting page lists known failures with fixes (5). A dated changelog of two entries, 0.2.29 and 0.3.0, both 23 October 2026, and 0.3.0 calls out the removed `persistent` option, but the 27 earlier @cursor/bdk versions and 123 @cursor/july versions have no notes, and one build ships under three package names (5). Version 0.3.0, but the changelog post of 20 October says generally available and the docs changelog labels 0.3.0 the GA release, which we read as declared stable (15). 20+0+5+5+15 = 45.",
          "b": "Local-package reading. Official PyPI package haystack-ai with Python 3.11 or newer stated (20). A public tests workflow runs unit tests on Ubuntu, Windows and macOS for pushes to main and pull requests, plus e2e, CodeQL and Scorecard workflows; whether main passes wasn't read, as the Actions API refused us (15). 106 open issues and 68 open pull requests on 23 November 2026. The 50 newest issues were opened from 11 to 23 November, and 24 had a comment and 19 were closed (20). Release notes for every release and a migration guide for 3.0, but the policy says versions don't follow semantic versioning and minors remove deprecated functionality (11). 3.x with a Production/Stable classifier (15). 20+15+20+11+15 = 81."
        },
        "scores": {
          "a": 45,
          "b": 81
        }
      },
      {
        "by": 21,
        "category": "maintenance",
        "leads": "haystack",
        "name": "Maintenance \u0026 community",
        "reasons": {
          "a": "0.3.0 on npm on 25 October 2026, per the 27 October check (npm not re-read on 2 November), and the docs changelog still ends at 0.3.0 of 23 October (30). Five @grok/agent-sdk versions from 22 to 25 October and 29 @cursor/bdk versions since 22 September, per the 27 October check (20). Closed product. A public changelog with two entries and a forum with no Agent SDK tag, so we couldn't see replies to SDK reports (8). The npm package is current and official, TypeScript only (12). Dependencies are current releases, but there's no public CI and the same build goes out under three names with a postinstall script (4). 30+20+8+12+4 = 74.",
          "b": "3.5.0 tagged on 10 November 2026, 13 days before this check (30). Six releases in the 90 days to 23 November (3.1.1, 3.2.0, 3.3.0, 3.4.0, 3.4.1, 3.5.0) and nightly dev builds on PyPI (20). The 50 newest issues, opened from 11 to 23 November, had 24 with a comment and 19 closed, with 106 issues open (20). The package and its integrations are current, with 3.6 in release candidate (15). CodeQL, Scorecard, Dependabot updates and actions pinned to commit SHAs (10). 30+20+20+15+10 = 95."
        },
        "scores": {
          "a": 74,
          "b": 95
        }
      },
      {
        "by": 6,
        "category": "schema",
        "leads": "haystack",
        "name": "Schema \u0026 documentation",
        "reasons": {
          "a": "Framework reading. Typed TypeScript declarations ship in the package, tools take Zod or JSON Schema, `agent-sdk help --json` describes every command's flags and exit codes, and `GET /v1/info` and `GET /v1/tools/:name` return the discovered surface and each tool's schemas. No OpenAPI document for the HTTP routes (20). cursor.com/llms.txt lists every Agent SDK page with a Markdown twin, and the package ships the docs and an llms.txt (10). The overview has a table of when to use the Agent SDK, Automations or Grok Bot, and the hooks page has a table of what to use instead of a hook for each job (18). Typed config, `effect` as an enum or predicate, `timeArgs` checked against the input schema, and slug patterns stated (13). Examples on every page, with error tables for direct tool calls, HTTP 401, 403 and 409, the limit error's JSON and seven exit codes (15). A dated changelog, but only two entries, both from 23 October 2026 (6). 20+10+18+13+15+6 = 82.",
          "b": "Framework reading. A typed Python API (py.typed) with a generated API reference (22). llms.txt holds the full documentation, 493 pages in one file (10). The agent pages say what each hook and component is for, with a table of which hook guards which risk (16). Tools are typed from function signatures and components (13). Tutorials, a cookbook and code on every page; error types such as PipelineRuntimeError and tool invocation errors are shown in the guides without a catalogue (12). Versioned docs and release notes per release (15). 22+10+16+13+12+15 = 88."
        },
        "scores": {
          "a": 82,
          "b": 88
        }
      },
      {
        "by": 5,
        "category": "ergonomics",
        "leads": "cursor-agent-sdk",
        "name": "Agent ergonomics",
        "reasons": {
          "a": "Framework reading, scored on what it takes to run a tool-calling agent with MCP. One file per tool and one file per MCP connection, `tools` and `disallowedTools` filters with `effects: \"read\"`, and an allowlist for the harness's built-in tools (22). Concurrency caps with queued turns, `--fields`, page tokens and limits on list commands, and a per-session cost view. We found no turn cap or spend cap for a run (12). Built-in routes return `{ ok: false, error }` codes, direct tool calls have documented 400, 404, 409 and 500 codes, and the CLI has seven exit codes (18). Reads and idempotent calls retry up to three times, writes run once, MCP readOnlyHint and idempotentHint decide retries for connection tools, and dry-run sessions stub writes (20). `agent-sdk init` scaffolds a working project and every agent field is optional, but the framework is TypeScript only (8). 22+12+18+20+8 = 80.",
          "b": "Framework reading. MCPToolset loads an MCP server's tools with a tool_names filter, and SearchableToolset shows the model only matching tools, but MCP needs the separate mcp-haystack package (20). max_agent_steps, a step budget hook, streaming and ToolResultOffloadCompactor bound a run and its context (17). Tool failures go back to the model by default, or raise when raise_on_tool_invocation_failure is set (14). Failed pipelines raise with a snapshot of the last valid state and runs resume from it or from a breakpoint, with no built-in durable store (14). The Agent needs a chat generator passed in, so there is no silent default provider, and the framework is Python only (10). 20+17+14+14+10 = 75."
        },
        "scores": {
          "a": 80,
          "b": 75
        }
      },
      {
        "by": 5,
        "category": "security",
        "leads": "cursor-agent-sdk",
        "name": "Security \u0026 auth",
        "reasons": {
          "a": "Framework reading. 30 for what leaves the machine by default, 20 for approvals and sandboxing, 15 for prompt injection, 15 for audit and 20 for the security programme. Every model turn goes through Cursor's backend with a Cursor credential, even on a self-hosted server, and the data-use page says Cursor may store and train on prompts and code with Privacy Mode off. Managed hosting stores the repository and agent data whatever the Privacy Mode setting. OpenTelemetry export is off until an endpoint is set, with prompt text and tool payloads behind separate flags, and the npm update check has a documented switch. Install copies skills into ~/.cursor/skills (18). `needsApproval` parks a tool call for a person, dry runs stub writes and the harness tools take an allowlist, but `local.sandbox` is off by default, so shell commands auto-approve with the host's environment and file tools reach any path the process can. Hosted deployments enforce an egress allowlist (12). The docs tell you to turn the sandbox on for webhook payloads, diffs and chat, document HMAC and shared-secret auth on webhook routes, and warn that anyone who can talk to the agent can drive Cursor account connectors. The scaffolded memory journal shares turns across sessions, with an instruction to treat it as untrusted (10). Sessions keep every message and tool call, hooks can mirror them for audit, and `ctx.approvedBy` records the approver (14). security.txt and SECURITY.md with a disclosure address and Cursor's GitHub advisories, no bug bounty found, and no advisory for the three package names in OSV on 2 November (14). SOC 2 and ISO 27001 aren't scored on the framework reading. 18+12+10+14+14 = 68.",
          "b": "Framework reading (telemetry defaults, approvals, guardrails, sandboxing). Anonymous telemetry to PostHog is on by default and includes agent model and tool names, documented with an opt-out (10). ConfirmationHook lets a person confirm, change or reject each tool call, with a policy per tool (18). ChatPromptBuilder sanitises template variables, but SECURITY.md leaves input validation, SSRF and untrusted pipeline files to the application (7). Tracer interface with OpenTelemetry, Langfuse and logging tracers (14). SECURITY.md with a reporting address, CodeQL and Scorecard workflows and one 2024 GitHub advisory, but the November 2026 remote code execution fixes shipped through release notes with no advisory found (14). 10+18+7+14+14 = 63."
        },
        "scores": {
          "a": 68,
          "b": 63
        }
      }
    ],
    "facts": [
      {
        "a": "Agent framework",
        "b": "Agent framework",
        "name": "Kind"
      },
      {
        "a": "Cursor",
        "b": "deepset",
        "name": "Vendor"
      },
      {
        "a": "no (local only)",
        "b": "no (local only)",
        "name": "Hosted endpoint"
      },
      {
        "a": "",
        "b": "",
        "name": "Transports"
      },
      {
        "a": "OAuth or key",
        "b": "None",
        "name": "Auth"
      },
      {
        "a": "Your plan",
        "b": "Free",
        "name": "Pricing"
      },
      {
        "a": "no",
        "b": "no",
        "name": "x402"
      },
      {
        "a": "Proprietary. The package's LICENSE.md reads \"© Anysphere Inc. All rights reserved\", with use subject to Cursor's Terms of Service (updated 3 September 2026). No source repository is published",
        "b": "Apache-2.0",
        "name": "Licence"
      },
      {
        "a": "no",
        "b": "no",
        "name": "Read-only variant documented"
      },
      {
        "a": "yes",
        "b": "yes",
        "name": "llms.txt"
      },
      {
        "a": "2026-10-25",
        "b": "2026-11-10",
        "name": "Last release"
      },
      {
        "a": "2026-09-03",
        "b": "2025-07-24",
        "name": "Terms last updated"
      },
      {
        "a": "2026-09-29",
        "b": "2026-10-23",
        "name": "Privacy policy last updated"
      },
      {
        "a": "not found in the text",
        "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": "yes",
        "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": "none",
        "b": "27k stars",
        "name": "Popularity"
      }
    ],
    "faq": [
      {
        "answer": "Haystack scores 77.8 (BB) on agent readiness against Cursor Agent SDK's 65.5 (B), and leads in 5 of 7 scored categories. Cursor Agent SDK leads on agent ergonomics and security \u0026 auth.",
        "question": "Which is better for AI agents, Cursor Agent SDK or Haystack?"
      },
      {
        "answer": "No open-source release is listed for Cursor Agent SDK. Haystack is open source (Apache-2.0).",
        "question": "Are Cursor Agent SDK and Haystack open source?"
      }
    ],
    "goodFor": [
      {
        "aheadOn": [
          "Agent ergonomics, 80 against 75",
          "Security \u0026 auth, 68 against 63"
        ],
        "also": null,
        "goodFor": "Teams already on Cursor who want version-controlled agents for pull request review, triage and Slack, with evals in CI and one-command hosting.",
        "slug": "cursor-agent-sdk",
        "watchFor": "Closed source under Cursor's terms, with no public repository, CI or issue tracker"
      },
      {
        "aheadOn": [
          "Reliability, 81 against 45",
          "Schema \u0026 documentation, 88 against 82",
          "Payments \u0026 pricing, 90 against 45",
          "Maintenance \u0026 community, 95 against 74"
        ],
        "also": [
          "Agent-ready, a grade of BB or better",
          "No key needed to call it",
          "Open source"
        ],
        "goodFor": "Python teams building retrieval-heavy agents or pipelines who want explicit components, approval hooks and resumable runs.",
        "slug": "haystack",
        "watchFor": "Anonymous telemetry to PostHog EU is on by default and includes the Agent's model and tool names"
      }
    ],
    "history": {
      "cursor-agent-sdk": [
        {
          "causes": [
            "method"
          ],
          "date": "2026-11-13",
          "delta": 1.8,
          "from": 63.7,
          "fromGrade": "B",
          "to": 65.5,
          "toGrade": "B"
        },
        {
          "causes": [
            "method"
          ],
          "date": "2026-10-28",
          "delta": 0.1,
          "from": 63.6,
          "fromGrade": "B",
          "to": 63.7,
          "toGrade": "B"
        }
      ],
      "haystack": null
    },
    "job": {
      "capability": "agent.framework",
      "name": "Agent frameworks"
    },
    "others": [
      {
        "json": "https://www.anchorterminal.com/compare/agentos-vs-cursor-agent-sdk.json",
        "title": "AgentOS vs Cursor Agent SDK",
        "url": "https://www.anchorterminal.com/compare/agentos-vs-cursor-agent-sdk"
      },
      {
        "json": "https://www.anchorterminal.com/compare/agentos-vs-haystack.json",
        "title": "AgentOS vs Haystack",
        "url": "https://www.anchorterminal.com/compare/agentos-vs-haystack"
      },
      {
        "json": "https://www.anchorterminal.com/compare/agno-vs-cursor-agent-sdk.json",
        "title": "Agno vs Cursor Agent SDK",
        "url": "https://www.anchorterminal.com/compare/agno-vs-cursor-agent-sdk"
      },
      {
        "json": "https://www.anchorterminal.com/compare/agno-vs-haystack.json",
        "title": "Agno vs Haystack",
        "url": "https://www.anchorterminal.com/compare/agno-vs-haystack"
      },
      {
        "json": "https://www.anchorterminal.com/compare/boxlang-ai-vs-cursor-agent-sdk.json",
        "title": "BoxLang AI vs Cursor Agent SDK",
        "url": "https://www.anchorterminal.com/compare/boxlang-ai-vs-cursor-agent-sdk"
      },
      {
        "json": "https://www.anchorterminal.com/compare/boxlang-ai-vs-haystack.json",
        "title": "BoxLang AI vs Haystack",
        "url": "https://www.anchorterminal.com/compare/boxlang-ai-vs-haystack"
      },
      {
        "json": "https://www.anchorterminal.com/compare/claude-agent-sdk-vs-cursor-agent-sdk.json",
        "title": "Claude Agent SDK vs Cursor Agent SDK",
        "url": "https://www.anchorterminal.com/compare/claude-agent-sdk-vs-cursor-agent-sdk"
      },
      {
        "json": "https://www.anchorterminal.com/compare/claude-agent-sdk-vs-haystack.json",
        "title": "Claude Agent SDK vs Haystack",
        "url": "https://www.anchorterminal.com/compare/claude-agent-sdk-vs-haystack"
      },
      {
        "json": "https://www.anchorterminal.com/compare/crewai-vs-cursor-agent-sdk.json",
        "title": "CrewAI vs Cursor Agent SDK",
        "url": "https://www.anchorterminal.com/compare/crewai-vs-cursor-agent-sdk"
      },
      {
        "json": "https://www.anchorterminal.com/compare/crewai-vs-haystack.json",
        "title": "CrewAI vs Haystack",
        "url": "https://www.anchorterminal.com/compare/crewai-vs-haystack"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-docker-agent.json",
        "title": "Cursor Agent SDK vs Docker Agent",
        "url": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-docker-agent"
      },
      {
        "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-genkit.json",
        "title": "Cursor Agent SDK vs Genkit",
        "url": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-genkit"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-google-adk.json",
        "title": "Cursor Agent SDK vs Agent Development Kit (ADK)",
        "url": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-google-adk"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-guilds-run.json",
        "title": "Cursor Agent SDK vs guilds.run",
        "url": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-guilds-run"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-langgraph.json",
        "title": "Cursor Agent SDK vs LangGraph",
        "url": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-langgraph"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-llamaindex.json",
        "title": "Cursor Agent SDK vs LlamaIndex Framework",
        "url": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-llamaindex"
      },
      {
        "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-microsoft-agent-framework.json",
        "title": "Cursor Agent SDK vs Microsoft Agent Framework",
        "url": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-microsoft-agent-framework"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-openai-agents-sdk.json",
        "title": "Cursor Agent SDK vs OpenAI Agents SDK",
        "url": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-openai-agents-sdk"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-pydantic-ai.json",
        "title": "Cursor Agent SDK vs Pydantic AI",
        "url": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-pydantic-ai"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-smolagents.json",
        "title": "Cursor Agent SDK vs smolagents",
        "url": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-smolagents"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-strands-agents.json",
        "title": "Cursor Agent SDK vs Strands Agents",
        "url": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-strands-agents"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-terse-durable-actors.json",
        "title": "Cursor Agent SDK vs Terse Durable Actors",
        "url": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-terse-durable-actors"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-tradingagents.json",
        "title": "Cursor Agent SDK vs TradingAgents",
        "url": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-tradingagents"
      },
      {
        "json": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-vercel-ai-sdk.json",
        "title": "Cursor Agent SDK vs AI SDK",
        "url": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-vercel-ai-sdk"
      },
      {
        "json": "https://www.anchorterminal.com/compare/docker-agent-vs-haystack.json",
        "title": "Docker Agent vs Haystack",
        "url": "https://www.anchorterminal.com/compare/docker-agent-vs-haystack"
      },
      {
        "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/genkit-vs-haystack.json",
        "title": "Genkit vs Haystack",
        "url": "https://www.anchorterminal.com/compare/genkit-vs-haystack"
      },
      {
        "json": "https://www.anchorterminal.com/compare/google-adk-vs-haystack.json",
        "title": "Agent Development Kit (ADK) vs Haystack",
        "url": "https://www.anchorterminal.com/compare/google-adk-vs-haystack"
      },
      {
        "json": "https://www.anchorterminal.com/compare/guilds-run-vs-haystack.json",
        "title": "guilds.run vs Haystack",
        "url": "https://www.anchorterminal.com/compare/guilds-run-vs-haystack"
      },
      {
        "json": "https://www.anchorterminal.com/compare/haystack-vs-langgraph.json",
        "title": "Haystack vs LangGraph",
        "url": "https://www.anchorterminal.com/compare/haystack-vs-langgraph"
      },
      {
        "json": "https://www.anchorterminal.com/compare/haystack-vs-llamaindex.json",
        "title": "Haystack vs LlamaIndex Framework",
        "url": "https://www.anchorterminal.com/compare/haystack-vs-llamaindex"
      },
      {
        "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-microsoft-agent-framework.json",
        "title": "Haystack vs Microsoft Agent Framework",
        "url": "https://www.anchorterminal.com/compare/haystack-vs-microsoft-agent-framework"
      },
      {
        "json": "https://www.anchorterminal.com/compare/haystack-vs-openai-agents-sdk.json",
        "title": "Haystack vs OpenAI Agents SDK",
        "url": "https://www.anchorterminal.com/compare/haystack-vs-openai-agents-sdk"
      },
      {
        "json": "https://www.anchorterminal.com/compare/haystack-vs-pydantic-ai.json",
        "title": "Haystack vs Pydantic AI",
        "url": "https://www.anchorterminal.com/compare/haystack-vs-pydantic-ai"
      },
      {
        "json": "https://www.anchorterminal.com/compare/haystack-vs-smolagents.json",
        "title": "Haystack vs smolagents",
        "url": "https://www.anchorterminal.com/compare/haystack-vs-smolagents"
      },
      {
        "json": "https://www.anchorterminal.com/compare/haystack-vs-strands-agents.json",
        "title": "Haystack vs Strands Agents",
        "url": "https://www.anchorterminal.com/compare/haystack-vs-strands-agents"
      },
      {
        "json": "https://www.anchorterminal.com/compare/haystack-vs-terse-durable-actors.json",
        "title": "Haystack vs Terse Durable Actors",
        "url": "https://www.anchorterminal.com/compare/haystack-vs-terse-durable-actors"
      },
      {
        "json": "https://www.anchorterminal.com/compare/haystack-vs-tradingagents.json",
        "title": "Haystack vs TradingAgents",
        "url": "https://www.anchorterminal.com/compare/haystack-vs-tradingagents"
      },
      {
        "json": "https://www.anchorterminal.com/compare/haystack-vs-vercel-ai-sdk.json",
        "title": "Haystack vs AI SDK",
        "url": "https://www.anchorterminal.com/compare/haystack-vs-vercel-ai-sdk"
      }
    ],
    "panel": null,
    "scores": [
      {
        "by": 36,
        "cursor-agent-sdk": 45,
        "edge": "haystack",
        "haystack": 81,
        "key": "reliability",
        "name": "Reliability",
        "weight": 16
      },
      {
        "key": "performance",
        "name": "Performance",
        "pending": true,
        "weight": 10
      },
      {
        "by": 6,
        "cursor-agent-sdk": 82,
        "edge": "haystack",
        "haystack": 88,
        "key": "schema",
        "name": "Schema \u0026 documentation",
        "weight": 13
      },
      {
        "by": 5,
        "cursor-agent-sdk": 80,
        "edge": "cursor-agent-sdk",
        "haystack": 75,
        "key": "ergonomics",
        "name": "Agent ergonomics",
        "weight": 13
      },
      {
        "by": 5,
        "cursor-agent-sdk": 68,
        "edge": "cursor-agent-sdk",
        "haystack": 63,
        "key": "security",
        "name": "Security \u0026 auth",
        "weight": 14
      },
      {
        "by": 45,
        "cursor-agent-sdk": 45,
        "edge": "haystack",
        "haystack": 90,
        "key": "payments",
        "name": "Payments \u0026 pricing",
        "weight": 10
      },
      {
        "key": "tasks",
        "name": "Task success",
        "pending": true,
        "weight": 10
      },
      {
        "by": 21,
        "cursor-agent-sdk": 74,
        "edge": "haystack",
        "haystack": 95,
        "key": "maintenance",
        "name": "Maintenance \u0026 community",
        "weight": 7
      },
      {
        "by": 3,
        "cursor-agent-sdk": 71,
        "edge": "haystack",
        "haystack": 74,
        "key": "transparency",
        "name": "Transparency \u0026 trust",
        "weight": 7
      }
    ],
    "summary": "Haystack scores 77.8 (BB) on agent readiness against Cursor Agent SDK's 65.5 (B), and leads in 5 of 7 scored categories. Cursor Agent SDK leads on agent ergonomics and security \u0026 auth. Both do agent frameworks.",
    "tasks": null,
    "tutorials": [],
    "verdicts": {
      "cursor-agent-sdk": "An agent-as-code framework with typed tools, declared read and write effects that drive retries and dry runs, an approval gate per tool and evals that assert on tool calls. It's closed source, every model turn runs through Cursor's backend on a Cursor plan, local sandboxing is off by default, and the changelog has two entries.",
      "haystack": "An Apache-2.0 Python framework with an Agent component, per-tool approval hooks, MCP tools, failure snapshots, a written deprecation policy and releases every few weeks. It sends anonymous usage telemetry to deepset's PostHog by default, including agent model and tool names, until HAYSTACK_TELEMETRY_ENABLED is set to False."
    }
  },
  "kind": "anchor.page",
  "links": {
    "api": "https://www.anchorterminal.com/api/v1/index.json",
    "html": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-haystack",
    "json": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-haystack.json",
    "llms": "https://www.anchorterminal.com/llms.txt",
    "markdown": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-haystack.md",
    "mcp": "https://www.anchorterminal.com/mcp",
    "slim": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-haystack.min.md"
  },
  "markdown": "Haystack scores 77.8 (BB) on agent readiness against Cursor Agent SDK's 65.5 (B), and leads in 5 of 7 scored categories. Cursor Agent SDK leads on agent ergonomics and security \u0026 auth. Both do agent frameworks.\n\n- Cursor Agent SDK: grade B, 65.5/100, rank #564 of 1654. Markdown https://www.anchorterminal.com/tools/cursor-agent-sdk.md · JSON https://www.anchorterminal.com/api/v1/tools/cursor-agent-sdk.json\n- Haystack: grade BB, 77.8/100, rank #72 of 1654. Markdown https://www.anchorterminal.com/tools/haystack.md · JSON https://www.anchorterminal.com/api/v1/tools/haystack.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### Cursor Agent SDK (B)\n\nGood for: Teams already on Cursor who want version-controlled agents for pull request review, triage and Slack, with evals in CI and one-command hosting.\n\nAhead on:\n- Agent ergonomics, 80 against 75\n- Security \u0026 auth, 68 against 63\n\nWatch for: Closed source under Cursor's terms, with no public repository, CI or issue tracker\n\n### Haystack (BB)\n\nGood for: Python teams building retrieval-heavy agents or pipelines who want explicit components, approval hooks and resumable runs.\n\nAhead on:\n- Reliability, 81 against 45\n- Schema \u0026 documentation, 88 against 82\n- Payments \u0026 pricing, 90 against 45\n- Maintenance \u0026 community, 95 against 74\n\nAlso in its favour:\n- Agent-ready, a grade of BB or better\n- No key needed to call it\n- Open source\n\nWatch for: Anonymous telemetry to PostHog EU is on by default and includes the Agent's model and tool names\n\n\n## Why the edge\n\n### Payments \u0026 pricing: Haystack +45\n\n- Cursor Agent SDK (45): Framework reading of the published rubric. No payment protocol (0). Per-million-token prices for Cursor models, including the default Grok 4.5 with Fast, and plan prices are public, but no price for managed hosting and no statement of which plans cover the Agent SDK were found (15). The package is free and the Free plan needs no card, but its usage is only described as limited agent requests (15). A person signs in through a browser or creates an API key in the dashboard before a model turn runs (0). 0+15+15+0 = 30. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 30 is 45.\n- Haystack (90): Self-hosted rule. Free Apache-2.0 package with nothing to buy for the framework itself (30 + 30 + 30). No payment protocol (0). deepset's enterprise support and Enterprise Platform are separate offerings with no public prices and weren't graded. 0+30+30+30 = 90.\n\n### Reliability: Haystack +36\n\n- Cursor Agent SDK (45): Local-package reading, since the owner runs the framework, with Cursor's hosting as an option. Official npm package with Node 22.13 or newer stated in engines and in the docs, which also say never Bun (20). Closed source, so no public CI or test suite (0). No public issue tracker. github.com/cursor/cursor holds a README and SECURITY.md, and forum.cursor.com has no Agent SDK tag, so there's nothing to count open crashes against. The troubleshooting page lists known failures with fixes (5). A dated changelog of two entries, 0.2.29 and 0.3.0, both 23 October 2026, and 0.3.0 calls out the removed `persistent` option, but the 27 earlier @cursor/bdk versions and 123 @cursor/july versions have no notes, and one build ships under three package names (5). Version 0.3.0, but the changelog post of 20 October says generally available and the docs changelog labels 0.3.0 the GA release, which we read as declared stable (15). 20+0+5+5+15 = 45.\n- Haystack (81): Local-package reading. Official PyPI package haystack-ai with Python 3.11 or newer stated (20). A public tests workflow runs unit tests on Ubuntu, Windows and macOS for pushes to main and pull requests, plus e2e, CodeQL and Scorecard workflows; whether main passes wasn't read, as the Actions API refused us (15). 106 open issues and 68 open pull requests on 23 November 2026. The 50 newest issues were opened from 11 to 23 November, and 24 had a comment and 19 were closed (20). Release notes for every release and a migration guide for 3.0, but the policy says versions don't follow semantic versioning and minors remove deprecated functionality (11). 3.x with a Production/Stable classifier (15). 20+15+20+11+15 = 81.\n\n### Maintenance \u0026 community: Haystack +21\n\n- Cursor Agent SDK (74): 0.3.0 on npm on 25 October 2026, per the 27 October check (npm not re-read on 2 November), and the docs changelog still ends at 0.3.0 of 23 October (30). Five @grok/agent-sdk versions from 22 to 25 October and 29 @cursor/bdk versions since 22 September, per the 27 October check (20). Closed product. A public changelog with two entries and a forum with no Agent SDK tag, so we couldn't see replies to SDK reports (8). The npm package is current and official, TypeScript only (12). Dependencies are current releases, but there's no public CI and the same build goes out under three names with a postinstall script (4). 30+20+8+12+4 = 74.\n- Haystack (95): 3.5.0 tagged on 10 November 2026, 13 days before this check (30). Six releases in the 90 days to 23 November (3.1.1, 3.2.0, 3.3.0, 3.4.0, 3.4.1, 3.5.0) and nightly dev builds on PyPI (20). The 50 newest issues, opened from 11 to 23 November, had 24 with a comment and 19 closed, with 106 issues open (20). The package and its integrations are current, with 3.6 in release candidate (15). CodeQL, Scorecard, Dependabot updates and actions pinned to commit SHAs (10). 30+20+20+15+10 = 95.\n\n### Schema \u0026 documentation: Haystack +6\n\n- Cursor Agent SDK (82): Framework reading. Typed TypeScript declarations ship in the package, tools take Zod or JSON Schema, `agent-sdk help --json` describes every command's flags and exit codes, and `GET /v1/info` and `GET /v1/tools/:name` return the discovered surface and each tool's schemas. No OpenAPI document for the HTTP routes (20). cursor.com/llms.txt lists every Agent SDK page with a Markdown twin, and the package ships the docs and an llms.txt (10). The overview has a table of when to use the Agent SDK, Automations or Grok Bot, and the hooks page has a table of what to use instead of a hook for each job (18). Typed config, `effect` as an enum or predicate, `timeArgs` checked against the input schema, and slug patterns stated (13). Examples on every page, with error tables for direct tool calls, HTTP 401, 403 and 409, the limit error's JSON and seven exit codes (15). A dated changelog, but only two entries, both from 23 October 2026 (6). 20+10+18+13+15+6 = 82.\n- Haystack (88): Framework reading. A typed Python API (py.typed) with a generated API reference (22). llms.txt holds the full documentation, 493 pages in one file (10). The agent pages say what each hook and component is for, with a table of which hook guards which risk (16). Tools are typed from function signatures and components (13). Tutorials, a cookbook and code on every page; error types such as PipelineRuntimeError and tool invocation errors are shown in the guides without a catalogue (12). Versioned docs and release notes per release (15). 22+10+16+13+12+15 = 88.\n\n### Agent ergonomics: Cursor Agent SDK +5\n\n- Cursor Agent SDK (80): Framework reading, scored on what it takes to run a tool-calling agent with MCP. One file per tool and one file per MCP connection, `tools` and `disallowedTools` filters with `effects: \"read\"`, and an allowlist for the harness's built-in tools (22). Concurrency caps with queued turns, `--fields`, page tokens and limits on list commands, and a per-session cost view. We found no turn cap or spend cap for a run (12). Built-in routes return `{ ok: false, error }` codes, direct tool calls have documented 400, 404, 409 and 500 codes, and the CLI has seven exit codes (18). Reads and idempotent calls retry up to three times, writes run once, MCP readOnlyHint and idempotentHint decide retries for connection tools, and dry-run sessions stub writes (20). `agent-sdk init` scaffolds a working project and every agent field is optional, but the framework is TypeScript only (8). 22+12+18+20+8 = 80.\n- Haystack (75): Framework reading. MCPToolset loads an MCP server's tools with a tool_names filter, and SearchableToolset shows the model only matching tools, but MCP needs the separate mcp-haystack package (20). max_agent_steps, a step budget hook, streaming and ToolResultOffloadCompactor bound a run and its context (17). Tool failures go back to the model by default, or raise when raise_on_tool_invocation_failure is set (14). Failed pipelines raise with a snapshot of the last valid state and runs resume from it or from a breakpoint, with no built-in durable store (14). The Agent needs a chat generator passed in, so there is no silent default provider, and the framework is Python only (10). 20+17+14+14+10 = 75.\n\n### Security \u0026 auth: Cursor Agent SDK +5\n\n- Cursor Agent SDK (68): Framework reading. 30 for what leaves the machine by default, 20 for approvals and sandboxing, 15 for prompt injection, 15 for audit and 20 for the security programme. Every model turn goes through Cursor's backend with a Cursor credential, even on a self-hosted server, and the data-use page says Cursor may store and train on prompts and code with Privacy Mode off. Managed hosting stores the repository and agent data whatever the Privacy Mode setting. OpenTelemetry export is off until an endpoint is set, with prompt text and tool payloads behind separate flags, and the npm update check has a documented switch. Install copies skills into ~/.cursor/skills (18). `needsApproval` parks a tool call for a person, dry runs stub writes and the harness tools take an allowlist, but `local.sandbox` is off by default, so shell commands auto-approve with the host's environment and file tools reach any path the process can. Hosted deployments enforce an egress allowlist (12). The docs tell you to turn the sandbox on for webhook payloads, diffs and chat, document HMAC and shared-secret auth on webhook routes, and warn that anyone who can talk to the agent can drive Cursor account connectors. The scaffolded memory journal shares turns across sessions, with an instruction to treat it as untrusted (10). Sessions keep every message and tool call, hooks can mirror them for audit, and `ctx.approvedBy` records the approver (14). security.txt and SECURITY.md with a disclosure address and Cursor's GitHub advisories, no bug bounty found, and no advisory for the three package names in OSV on 2 November (14). SOC 2 and ISO 27001 aren't scored on the framework reading. 18+12+10+14+14 = 68.\n- Haystack (63): Framework reading (telemetry defaults, approvals, guardrails, sandboxing). Anonymous telemetry to PostHog is on by default and includes agent model and tool names, documented with an opt-out (10). ConfirmationHook lets a person confirm, change or reject each tool call, with a policy per tool (18). ChatPromptBuilder sanitises template variables, but SECURITY.md leaves input validation, SSRF and untrusted pipeline files to the application (7). Tracer interface with OpenTelemetry, Langfuse and logging tracers (14). SECURITY.md with a reporting address, CodeQL and Scorecard workflows and one 2024 GitHub advisory, but the November 2026 remote code execution fixes shipped through release notes with no advisory found (14). 10+18+7+14+14 = 63.\n\n## Score by category\n\n| Category | Weight | Cursor Agent SDK | Haystack | Edge |\n| --- | --- | --- | --- | --- |\n| Reliability | 16% | 45 | 81 | Haystack +36 |\n| Performance | 10%, pending | pending | pending | not scored in this run |\n| Schema \u0026 documentation | 13% | 82 | 88 | Haystack +6 |\n| Agent ergonomics | 13% | 80 | 75 | Cursor Agent SDK +5 |\n| Security \u0026 auth | 14% | 68 | 63 | Cursor Agent SDK +5 |\n| Payments \u0026 pricing | 10% | 45 | 90 | Haystack +45 |\n| Task success | 10%, pending | pending | pending | not scored in this run |\n| Maintenance \u0026 community | 7% | 74 | 95 | Haystack +21 |\n| Transparency \u0026 trust | 7% | 71 | 74 | Haystack +3 |\n| Negative events | ≤15 | 0 | -2 | |\n| **Total** | | **65.5 · B** | **77.8 · BB** | |\n\n## Facts side by side\n\n| Fact | Cursor Agent SDK | Haystack |\n| --- | --- | --- |\n| Kind | Agent framework | Agent framework |\n| Vendor | Cursor | deepset |\n| Hosted endpoint | no (local only) | no (local only) |\n| Transports |  |  |\n| Auth | OAuth or key | None |\n| Pricing | Your plan | Free |\n| x402 | no | no |\n| Licence | Proprietary. The package's LICENSE.md reads \"© Anysphere Inc. All rights reserved\", with use subject to Cursor's Terms of Service (updated 3 September 2026). No source repository is published | Apache-2.0 |\n| Read-only variant documented | no | no |\n| llms.txt | yes | yes |\n| Last release | 2026-10-25 | 2026-11-10 |\n| Terms last updated | 2026-09-03 | 2025-07-24 |\n| Privacy policy last updated | 2026-09-29 | 2026-10-23 |\n| Customer content may train models | not found in the text | not found in the text |\n| Terms restrict automated access | yes | not found in the text |\n| Terms restrict benchmarking | yes | 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 | none | 27k stars |\n\n## How the scores have moved\n\n### Cursor Agent SDK\n\n- +1.8 on 13 November 2026: checklist\n- +0.1 on 28 October 2026: checklist\n\n### Haystack\n\nNo score change since it was listed.\n\n## Verdicts\n\n**Cursor Agent SDK.** An agent-as-code framework with typed tools, declared read and write effects that drive retries and dry runs, an approval gate per tool and evals that assert on tool calls. It's closed source, every model turn runs through Cursor's backend on a Cursor plan, local sandboxing is off by default, and the changelog has two entries.\n\n**Haystack.** An Apache-2.0 Python framework with an Agent component, per-tool approval hooks, MCP tools, failure snapshots, a written deprecation policy and releases every few weeks. It sends anonymous usage telemetry to deepset's PostHog by default, including agent model and tool names, until HAYSTACK_TELEMETRY_ENABLED is set to False.\n\n## Before you call either\n\n### Cursor Agent SDK\n\n1. Install `@grok/agent-sdk`, not `@cursor/agent-sdk` from the launch post. That name answers 404 on npm\n2. Set `local.sandbox` before a turn reads webhook payloads, pull request diffs or chat. Without it shell commands auto-approve with the host's credentials\n3. Give every tool an `effect`. A tool without one counts as a write, runs once and is stubbed in dry runs\n4. Start `agent-sdk serve` with `--bearer-token` on any shared host. `--allow-anonymous` admits every caller as one principal\n5. Delete bot/hooks/memory.ts when sessions serve different people. The journal shares each turn's message and result with later turns\n\n### Haystack\n\n1. Set HAYSTACK_TELEMETRY_ENABLED=False before importing haystack if usage events must not leave the machine\n2. Add a ConfirmationHook before tools that send, pay or delete\n3. Pass tool_names to MCPToolset so only the needed tools from an MCP server load\n4. Load pipeline YAML and resume snapshots only from trusted sources, since deserialisation can run code\n5. Pin haystack-ai to a minor version and read the release notes before upgrading\n\n## Questions\n\n### Which is better for AI agents, Cursor Agent SDK or Haystack?\n\nHaystack scores 77.8 (BB) on agent readiness against Cursor Agent SDK's 65.5 (B), and leads in 5 of 7 scored categories. Cursor Agent SDK leads on agent ergonomics and security \u0026 auth.\n\n### Are Cursor Agent SDK and Haystack open source?\n\nNo open-source release is listed for Cursor Agent SDK. Haystack is open source (Apache-2.0).\n\n\n## For agents\n\n- This comparison as JSON: https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-haystack.json, and with the fewest tokens: https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-haystack.min.md\n- Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {\"a\": \"cursor-agent-sdk\", \"b\": \"haystack\"}`. From a terminal: `anchor compare cursor-agent-sdk haystack`\n- Each listing in full: https://www.anchorterminal.com/api/v1/tools/cursor-agent-sdk.json and https://www.anchorterminal.com/api/v1/tools/haystack.json\n\n## Other comparisons with Cursor Agent SDK or Haystack\n\n- [AgentOS vs Cursor Agent SDK](https://www.anchorterminal.com/compare/agentos-vs-cursor-agent-sdk.md)\n- [AgentOS vs Haystack](https://www.anchorterminal.com/compare/agentos-vs-haystack.md)\n- [Agno vs Cursor Agent SDK](https://www.anchorterminal.com/compare/agno-vs-cursor-agent-sdk.md)\n- [Agno vs Haystack](https://www.anchorterminal.com/compare/agno-vs-haystack.md)\n- [BoxLang AI vs Cursor Agent SDK](https://www.anchorterminal.com/compare/boxlang-ai-vs-cursor-agent-sdk.md)\n- [BoxLang AI vs Haystack](https://www.anchorterminal.com/compare/boxlang-ai-vs-haystack.md)\n- [Claude Agent SDK vs Cursor Agent SDK](https://www.anchorterminal.com/compare/claude-agent-sdk-vs-cursor-agent-sdk.md)\n- [Claude Agent SDK vs Haystack](https://www.anchorterminal.com/compare/claude-agent-sdk-vs-haystack.md)\n- [CrewAI vs Cursor Agent SDK](https://www.anchorterminal.com/compare/crewai-vs-cursor-agent-sdk.md)\n- [CrewAI vs Haystack](https://www.anchorterminal.com/compare/crewai-vs-haystack.md)\n- [Cursor Agent SDK vs Docker Agent](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-docker-agent.md)\n- [Cursor Agent SDK vs DSPy](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-dspy.md)\n- [Cursor Agent SDK vs Genkit](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-genkit.md)\n- [Cursor Agent SDK vs Agent Development Kit (ADK)](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-google-adk.md)\n- [Cursor Agent SDK vs guilds.run](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-guilds-run.md)\n- [Cursor Agent SDK vs LangGraph](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-langgraph.md)\n- [Cursor Agent SDK vs LlamaIndex Framework](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-llamaindex.md)\n- [Cursor Agent SDK vs Mastra](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-mastra.md)\n- [Cursor Agent SDK vs Microsoft Agent Framework](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-microsoft-agent-framework.md)\n- [Cursor Agent SDK vs OpenAI Agents SDK](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-openai-agents-sdk.md)\n- [Cursor Agent SDK vs Pydantic AI](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-pydantic-ai.md)\n- [Cursor Agent SDK vs smolagents](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-smolagents.md)\n- [Cursor Agent SDK vs Strands Agents](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-strands-agents.md)\n- [Cursor Agent SDK vs Terse Durable Actors](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-terse-durable-actors.md)\n- [Cursor Agent SDK vs TradingAgents](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-tradingagents.md)\n- [Cursor Agent SDK vs AI SDK](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-vercel-ai-sdk.md)\n- [Docker Agent vs Haystack](https://www.anchorterminal.com/compare/docker-agent-vs-haystack.md)\n- [DSPy vs Haystack](https://www.anchorterminal.com/compare/dspy-vs-haystack.md)\n- [Genkit vs Haystack](https://www.anchorterminal.com/compare/genkit-vs-haystack.md)\n- [Agent Development Kit (ADK) vs Haystack](https://www.anchorterminal.com/compare/google-adk-vs-haystack.md)\n- [guilds.run vs Haystack](https://www.anchorterminal.com/compare/guilds-run-vs-haystack.md)\n- [Haystack vs LangGraph](https://www.anchorterminal.com/compare/haystack-vs-langgraph.md)\n- [Haystack vs LlamaIndex Framework](https://www.anchorterminal.com/compare/haystack-vs-llamaindex.md)\n- [Haystack vs Mastra](https://www.anchorterminal.com/compare/haystack-vs-mastra.md)\n- [Haystack vs Microsoft Agent Framework](https://www.anchorterminal.com/compare/haystack-vs-microsoft-agent-framework.md)\n- [Haystack vs OpenAI Agents SDK](https://www.anchorterminal.com/compare/haystack-vs-openai-agents-sdk.md)\n- [Haystack vs Pydantic AI](https://www.anchorterminal.com/compare/haystack-vs-pydantic-ai.md)\n- [Haystack vs smolagents](https://www.anchorterminal.com/compare/haystack-vs-smolagents.md)\n- [Haystack vs Strands Agents](https://www.anchorterminal.com/compare/haystack-vs-strands-agents.md)\n- [Haystack vs Terse Durable Actors](https://www.anchorterminal.com/compare/haystack-vs-terse-durable-actors.md)\n- [Haystack vs TradingAgents](https://www.anchorterminal.com/compare/haystack-vs-tradingagents.md)\n- [Haystack vs AI SDK](https://www.anchorterminal.com/compare/haystack-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": "Cursor Agent SDK vs Haystack",
        "url": ""
      }
    ],
    "description": "Haystack scores 77.8 (BB) to Cursor Agent SDK's 65.5 (B) for agent frameworks. Prices, MCP, x402, uptime and agent notes side by side.",
    "facts": [
      "Cursor Agent SDK B 65.5",
      "Haystack BB 77.8",
      "scores"
    ],
    "h1": "Cursor Agent SDK vs Haystack",
    "image": "https://www.anchorterminal.com/assets/og/default.png",
    "path": "/compare/cursor-agent-sdk-vs-haystack",
    "published": "2026-10-01",
    "section": "tools",
    "title": "Cursor Agent SDK vs Haystack for AI agents in 2026: scores and prices",
    "toc": null,
    "updated": "2026-11-23",
    "url": "https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-haystack"
  },
  "tokens": {
    "markdown": 5350,
    "slim": 930
  },
  "version": 1
}
