Cursor Agent SDK: Deploy Custom AI Agents as Code
Enterprise engineering teams have spent two years assembling custom AI agents from low-code dashboards, proprietary platforms, and hand-rolled scripts. Cursor just turned that into a software project.
On October 20, 2026, Cursor released the Agent SDK: the internal framework the company uses to build Bugbot, Security Reviewer, and Rollouts. Engineering teams can now define agents in code, run them through evals, and deploy them with one command. The PGA Tour is already using it to run its entire software development factory.
What Changed on October 20
Cursor’s existing products let teams add automations through a dashboard. The Agent SDK goes further: it treats an agent as a small software project you can version, test, and deploy through the same processes as the rest of your code.
An Agent SDK project is a folder. Instructions live in Markdown. Tools are TypeScript functions. Connections to external services, evaluations, and channel configurations sit alongside them. Every piece of the agent’s behavior is a file you can review, diff, and improve over time.
This distinction matters more than it might appear. Dashboard-configured automations live outside version control. When something goes wrong, the debugging process involves screenshots and manual reproduction. When an engineer leaves, their institutional knowledge about why the agent behaves a certain way leaves with them. The Agent SDK inverts this: the agent’s prompt, tools, and test cases all exist in a repository, go through pull request review, and accumulate history the way any other system component does.
How the Agent SDK Works
An agent in the Cursor framework responds to events: GitHub, GitLab, and Bitbucket pull request events, Slack mentions and direct messages, webhooks from any service, and cron schedules for recurring jobs.
When an event arrives, the agent’s instructions guide a model through a loop. The model can call any TypeScript function defined in the project’s tools directory, delegate work to another specialized agent with its own tools and session context, or split a task across parallel subagents and wait for results.
Cursor demonstrated one concrete example: a kb-reviewer agent that checks every pull request against a team’s lessons-learned knowledge base. The team built it in about a day. It now runs on every PR in their main codebase, flags changes that contradict a recorded decision, and cites the specific note behind each finding.
The framework ships with built-in evals and event replay. Before deploying a changed agent to production, a team runs evals against a fixed set of inputs to confirm the change improved behavior (or at minimum did not regress it). Event replay lets engineers reproduce exactly what happened during a failed run.
Deployment: Managed Hosting or Your Own Infrastructure
When an agent is ready, agent-sdk deploy builds it from the current Git ref, assigns it a URL, and starts it on Cursor’s managed infrastructure. Secrets and integrations are managed in a dashboard. Logs, evals, and the playground work identically in local development and in production.
Teams that need agents inside their own network can run them as containers. Each agent is a single Node.js process, so packaging it in a container and running it on Kubernetes, ECS, or any other container runtime requires no special dependencies.
The deployment model is relevant for enterprise compliance. Teams on Cursor’s Privacy Mode can use managed hosting and receive the same privacy handling as other Cursor requests. Teams still on Legacy Privacy Mode must self-host.
The PGA Tour Case
The PGA Tour is the first enterprise customer named by Cursor in the launch announcement.
“The Agent SDK has enabled PGA to build every component of our software factory on Cursor’s infrastructure,” said Michael Gyarmathy, Principal Engineer at PGA America. “It provides the flexibility we need to build agents that drive our development process. And built-in support for evals allows us to quickly iterate on new ideas and optimize existing capabilities reliably.”
The phrase “software development factory” is significant. It implies multiple agents with distinct roles operating in sequence and in parallel: PR review, test generation, deployment approval, incident investigation, policy compliance. The Agent SDK makes this fleet a first-class deployment target instead of a collection of scripts and webhooks.
Starter Templates for Common Developer Workflows
Cursor ships the Agent SDK with several starter templates covering the most common developer workflow automation scenarios:
| Template | What It Does |
|---|---|
| Security Reviewer | Reviews pull requests for security issues, comments inline on specific lines |
| PR Autofixer | Pushes commits to a PR branch to fix failing CI checks automatically |
| Owners Policy Bot | Routes PRs to the correct reviewer according to a CODEOWNERS-style policy |
| Linear Triager | Labels and assigns Linear issues from incoming webhook events |
| Jira Triager | Same as the Linear Triager, adapted for Jira |
Each template is a starting point. Teams can modify instructions, add tools, connect MCP servers, and change which events trigger the agent without rebuilding from scratch.
Why Cursor Agent SDK Matters for Enterprise AI Strategy
The Cursor Agent SDK is the clearest statement yet that coding agents are becoming infrastructure, not features. Two years ago, “AI for development” meant autocomplete. Today it means a continuous fleet of agents handling pull request review, security scanning, compliance verification, test generation, and release approval, all running against code changes as they happen.
Enterprise multi-agent governance is a live concern for most organizations running agents in production. The Agent SDK addresses governance through software practices: agents are versioned, changes go through code review, evals catch regressions, and deployment is a deliberate act from a named Git ref. This does not replace policy enforcement, but it provides the audit trail and reproducibility teams need before they can enforce policies at all.
Cursor launched Origin, its agent-native code hosting platform, in August 2026. The Agent SDK connects to Origin events and treats Origin repositories as a first-class event source. Teams building on Cursor’s full stack now have a code host, a coding environment, managed agent infrastructure, and an agent development framework from a single platform.
The question for enterprise engineering leaders is not whether to run agents on the development lifecycle. That is already happening. The question is whether those agents run as software, with tests and history and governance, or as configuration scattered across dashboards with no audit trail. The Cursor Agent SDK is a direct answer to that question from the team that built the tools most of your engineers use every day.
FAQ
Sources: Cursor Agent SDK announcement (October 20, 2026), Cursor Agent SDK documentation, Agent SDK changelog (GA: October 23, 2026)