# Cursor Agent SDK vs Haystack

> 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.

- Canonical: https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-haystack
- Markdown: https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-haystack.md (~5,350 tokens)
- Slim: https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-haystack.min.md (~930 tokens, same facts, less prose, for token-sensitive contexts)
- JSON: https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-haystack.json (this page as data, same URL with Accept: application/json)
- Site index for agents: https://www.anchorterminal.com/llms.txt (the key docs and every listing in one file, at most 16 MB, about 4 million tokens: https://www.anchorterminal.com/llms-full.txt)
- API: https://www.anchorterminal.com/api/v1/index.json
- MCP: https://www.anchorterminal.com/mcp (the whole catalogue as tools, no key)
- DNS: dig +short TXT <slug>.grade.anchorterminal.com (the grade as a DNS TXT record, for a sandbox with no HTTP where names still resolve; also top., best.<category>. and <a>.vs.<b>. under the zone, and the same under grade.letme.dev)
- Licence: CC BY 4.0, credit Anchor Terminal and link this page (https://www.anchorterminal.com/terms/#data)
- Updated: 2026-11-23

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 & auth. Both do agent frameworks.

- 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
- 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
- Best agent frameworks and SDKs: https://www.anchorterminal.com/best/frameworks/index.md
- All 253 frameworks comparisons: https://www.anchorterminal.com/compare/frameworks/index.md

## Which one, for what

### Cursor Agent SDK (B)

Good 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.

Ahead on:
- Agent ergonomics, 80 against 75
- Security & auth, 68 against 63

Watch for: Closed source under Cursor's terms, with no public repository, CI or issue tracker

### Haystack (BB)

Good for: Python teams building retrieval-heavy agents or pipelines who want explicit components, approval hooks and resumable runs.

Ahead on:
- Reliability, 81 against 45
- Schema & documentation, 88 against 82
- Payments & pricing, 90 against 45
- Maintenance & community, 95 against 74

Also in its favour:
- Agent-ready, a grade of BB or better
- No key needed to call it
- Open source

Watch for: Anonymous telemetry to PostHog EU is on by default and includes the Agent's model and tool names


## Why the edge

### Payments & pricing: Haystack +45

- Cursor Agent SDK (45): Framework reading of the published rubric. No payment protocol (0). Per-million-token prices for Cursor models, including the default Grok 4.5 with Fast, and plan prices are public, but no price for managed hosting and no statement of which plans cover the Agent SDK were found (15). The package is free and the Free plan needs no card, but its usage is only described as limited agent requests (15). A person signs in through a browser or creates an API key in the dashboard before a model turn runs (0). 0+15+15+0 = 30. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 30 is 45.
- 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.

### Reliability: Haystack +36

- 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.
- 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.

### Maintenance & community: Haystack +21

- 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.
- 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.

### Schema & documentation: Haystack +6

- 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.
- 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.

### Agent ergonomics: Cursor Agent SDK +5

- 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.
- 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.

### Security & auth: Cursor Agent SDK +5

- 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.
- 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.

## Score by category

| Category | Weight | Cursor Agent SDK | Haystack | Edge |
| --- | --- | --- | --- | --- |
| Reliability | 16% | 45 | 81 | Haystack +36 |
| Performance | 10%, pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 82 | 88 | Haystack +6 |
| Agent ergonomics | 13% | 80 | 75 | Cursor Agent SDK +5 |
| Security & auth | 14% | 68 | 63 | Cursor Agent SDK +5 |
| Payments & pricing | 10% | 45 | 90 | Haystack +45 |
| Task success | 10%, pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 74 | 95 | Haystack +21 |
| Transparency & trust | 7% | 71 | 74 | Haystack +3 |
| Negative events | ≤15 | 0 | -2 | |
| **Total** | | **65.5 · B** | **77.8 · BB** | |

## Facts side by side

| Fact | Cursor Agent SDK | Haystack |
| --- | --- | --- |
| Kind | Agent framework | Agent framework |
| Vendor | Cursor | deepset |
| Hosted endpoint | no (local only) | no (local only) |
| Transports |  |  |
| Auth | OAuth or key | None |
| Pricing | Your plan | Free |
| x402 | no | no |
| Licence | Proprietary. The package's LICENSE.md reads "© Anysphere Inc. All rights reserved", with use subject to Cursor's Terms of Service (updated 3 September 2026). No source repository is published | Apache-2.0 |
| Read-only variant documented | no | no |
| llms.txt | yes | yes |
| Last release | 2026-10-25 | 2026-11-10 |
| Terms last updated | 2026-09-03 | 2025-07-24 |
| Privacy policy last updated | 2026-09-29 | 2026-10-23 |
| Customer content may train models | not found in the text | not found in the text |
| Terms restrict automated access | yes | not found in the text |
| Terms restrict benchmarking | yes | yes |
| Terms or service can change without notice | yes | not found in the text |
| Arbitration or class-action waiver | yes | yes |
| Popularity | none | 27k stars |

## How the scores have moved

### Cursor Agent SDK

- +1.8 on 13 November 2026: checklist
- +0.1 on 28 October 2026: checklist

### Haystack

No score change since it was listed.

## Verdicts

**Cursor Agent SDK.** An agent-as-code framework with typed tools, declared read and write effects that drive retries and dry runs, an approval gate per tool and evals that assert on tool calls. It's closed source, every model turn runs through Cursor's backend on a Cursor plan, local sandboxing is off by default, and the changelog has two entries.

**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.

## Before you call either

### Cursor Agent SDK

1. Install `@grok/agent-sdk`, not `@cursor/agent-sdk` from the launch post. That name answers 404 on npm
2. 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
3. Give every tool an `effect`. A tool without one counts as a write, runs once and is stubbed in dry runs
4. Start `agent-sdk serve` with `--bearer-token` on any shared host. `--allow-anonymous` admits every caller as one principal
5. Delete bot/hooks/memory.ts when sessions serve different people. The journal shares each turn's message and result with later turns

### Haystack

1. Set HAYSTACK_TELEMETRY_ENABLED=False before importing haystack if usage events must not leave the machine
2. Add a ConfirmationHook before tools that send, pay or delete
3. Pass tool_names to MCPToolset so only the needed tools from an MCP server load
4. Load pipeline YAML and resume snapshots only from trusted sources, since deserialisation can run code
5. Pin haystack-ai to a minor version and read the release notes before upgrading

## Questions

### Which is better for AI agents, Cursor Agent SDK or Haystack?

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 & auth.

### Are Cursor Agent SDK and Haystack open source?

No open-source release is listed for Cursor Agent SDK. Haystack is open source (Apache-2.0).


## For agents

- 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
- 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`
- 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

## Other comparisons with Cursor Agent SDK or Haystack

- [AgentOS vs Cursor Agent SDK](https://www.anchorterminal.com/compare/agentos-vs-cursor-agent-sdk.md)
- [AgentOS vs Haystack](https://www.anchorterminal.com/compare/agentos-vs-haystack.md)
- [Agno vs Cursor Agent SDK](https://www.anchorterminal.com/compare/agno-vs-cursor-agent-sdk.md)
- [Agno vs Haystack](https://www.anchorterminal.com/compare/agno-vs-haystack.md)
- [BoxLang AI vs Cursor Agent SDK](https://www.anchorterminal.com/compare/boxlang-ai-vs-cursor-agent-sdk.md)
- [BoxLang AI vs Haystack](https://www.anchorterminal.com/compare/boxlang-ai-vs-haystack.md)
- [Claude Agent SDK vs Cursor Agent SDK](https://www.anchorterminal.com/compare/claude-agent-sdk-vs-cursor-agent-sdk.md)
- [Claude Agent SDK vs Haystack](https://www.anchorterminal.com/compare/claude-agent-sdk-vs-haystack.md)
- [CrewAI vs Cursor Agent SDK](https://www.anchorterminal.com/compare/crewai-vs-cursor-agent-sdk.md)
- [CrewAI vs Haystack](https://www.anchorterminal.com/compare/crewai-vs-haystack.md)
- [Cursor Agent SDK vs Docker Agent](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-docker-agent.md)
- [Cursor Agent SDK vs DSPy](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-dspy.md)
- [Cursor Agent SDK vs Genkit](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-genkit.md)
- [Cursor Agent SDK vs Agent Development Kit (ADK)](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-google-adk.md)
- [Cursor Agent SDK vs guilds.run](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-guilds-run.md)
- [Cursor Agent SDK vs LangGraph](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-langgraph.md)
- [Cursor Agent SDK vs LlamaIndex Framework](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-llamaindex.md)
- [Cursor Agent SDK vs Mastra](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-mastra.md)
- [Cursor Agent SDK vs Microsoft Agent Framework](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-microsoft-agent-framework.md)
- [Cursor Agent SDK vs OpenAI Agents SDK](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-openai-agents-sdk.md)
- [Cursor Agent SDK vs Pydantic AI](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-pydantic-ai.md)
- [Cursor Agent SDK vs smolagents](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-smolagents.md)
- [Cursor Agent SDK vs Strands Agents](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-strands-agents.md)
- [Cursor Agent SDK vs Terse Durable Actors](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-terse-durable-actors.md)
- [Cursor Agent SDK vs TradingAgents](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-tradingagents.md)
- [Cursor Agent SDK vs AI SDK](https://www.anchorterminal.com/compare/cursor-agent-sdk-vs-vercel-ai-sdk.md)
- [Docker Agent vs Haystack](https://www.anchorterminal.com/compare/docker-agent-vs-haystack.md)
- [DSPy vs Haystack](https://www.anchorterminal.com/compare/dspy-vs-haystack.md)
- [Genkit vs Haystack](https://www.anchorterminal.com/compare/genkit-vs-haystack.md)
- [Agent Development Kit (ADK) vs Haystack](https://www.anchorterminal.com/compare/google-adk-vs-haystack.md)
- [guilds.run vs Haystack](https://www.anchorterminal.com/compare/guilds-run-vs-haystack.md)
- [Haystack vs LangGraph](https://www.anchorterminal.com/compare/haystack-vs-langgraph.md)
- [Haystack vs LlamaIndex Framework](https://www.anchorterminal.com/compare/haystack-vs-llamaindex.md)
- [Haystack vs Mastra](https://www.anchorterminal.com/compare/haystack-vs-mastra.md)
- [Haystack vs Microsoft Agent Framework](https://www.anchorterminal.com/compare/haystack-vs-microsoft-agent-framework.md)
- [Haystack vs OpenAI Agents SDK](https://www.anchorterminal.com/compare/haystack-vs-openai-agents-sdk.md)
- [Haystack vs Pydantic AI](https://www.anchorterminal.com/compare/haystack-vs-pydantic-ai.md)
- [Haystack vs smolagents](https://www.anchorterminal.com/compare/haystack-vs-smolagents.md)
- [Haystack vs Strands Agents](https://www.anchorterminal.com/compare/haystack-vs-strands-agents.md)
- [Haystack vs Terse Durable Actors](https://www.anchorterminal.com/compare/haystack-vs-terse-durable-actors.md)
- [Haystack vs TradingAgents](https://www.anchorterminal.com/compare/haystack-vs-tradingagents.md)
- [Haystack vs AI SDK](https://www.anchorterminal.com/compare/haystack-vs-vercel-ai-sdk.md)

---

Query this catalogue directly over MCP: https://www.anchorterminal.com/mcp (Streamable HTTP, no key). How: https://www.anchorterminal.com/agents/#mcp
