《Cursor Docs》-Review and triage templates
Each template is one model turn. A review template reads the diff and posts one comment, and the triage template comments on a ticket you already filed.
Read More《Cursor Docs》-Review pull requests with owners policies
This agent risk tiers every pull request in your repository, requests the owners as reviewers, and approves what your policy allows. Rules live in .agentic owners/policy.yml files at any depth. The closest policy to a changed file wins. The agent reads policies from the PR's base ref, so a PR can't exempt itself.
Read More《Cursor Docs》-Tools
A tool is a typed action the model can call, such as hitting an API, running a query, or writing a file. Each file in bot/tools/ defines one tool, and the filename is the name the model sees. Server tools run on the serving host, and agent tools run as scripts next to the agent.
Read More《Cursor Docs》-Subagents
A subagent is a specialist child agent the model can delegate to mid turn. Each one lives under bot/subagents/<id / with a required agent.ts.
Read More《Cursor Docs》-Skills
A skill is an on demand procedure in the SKILL.md convention. Agent SDK advertises each skill by its description, and the model loads a skill only when the task calls for it. Skills give an agent a multi step workflow without carrying it in the always on instructions.
Read More《Cursor Docs》-Sessions, events, and streaming
A session keeps one conversation, its workspace, and an append only record of every message and tool call.
Read More《Cursor Docs》-Schedules and reminders
A schedule or a reminder lets an agent act without an inbound message.
Read More《Cursor Docs》-Project layout
An Agent SDK project keeps agent files under bot/, and each file's path determines how Agent SDK loads it. Evals live in evals/ at the project root, beside bot/.
Read More《Cursor Docs》-Playground
agent sdk serve hosts a web playground at http://127.0.0.1:3000/playground. When one server hosts multiple agents, each agent's playground is at /<slug /playground and / lists them.
Read More《Cursor Docs》-Memory
A memory hook appends one record per turn to a journal. The model reads the journal with its file tools when its instructions send it there.
Read More《Cursor Docs》-Limits
Cursor caps deployments for every team. These are the default values.
Read More《Cursor Docs》-Instructions
Instructions are the always on prompt for every turn. A root agent requires them, and a subagent may inline instructions in agent.ts instead.
Read More《Cursor Docs》-HTTP API
In the default multi agent layout each agent serves its routes at /<slug /v1/ , and mode single serves them at /v1/ .
Read More《Cursor Docs》-Hooks
A hook subscribes to selected session events and can run a side effect after each matching event is recorded. Hooks run in the serving process for every session of the agent. They cannot change the turn, the prompt, or the reply. A handler that throws is logged and skipped.
Read More《Cursor Docs》-Extensions
An extension packages capabilities that would otherwise live under bot/, such as tools, skills, and connections. One mount file adds them under a namespace without copying their source into your project.
Read More《Cursor Docs》-Evals
Evals run fixed cases against an agent and record whether its turns, tools, events, and output meet a contract. The Evals guide covers the regression workflow.
Read More《Cursor Docs》-MCP connections
An MCP connection gives the agent tools from an MCP server. Each file under bot/mcp connections/ default exports defineConnection from @grok/agent sdk/connections, and its filename becomes the server name. A connection reaches a remote HTTP server, a local stdio process, the signed in Cursor account's connectors, or a peer agent by slug.
Read More《Cursor Docs》-Agent SDK CLI
The CLI needs Node 22.13 or newer. Run agent sdk <command help to see every flag for that command.
Read More《Cursor Docs》-Channels
A channel connects an external surface to agent sessions. A file at bot/channels/<id .ts defines channel <id and mounts its routes under /v1/channels/<id , and the built in HTTP channel serves the HTTP API routes and is always available.
Read More《Cursor Docs》-Artifacts
Artifacts are durable outputs such as reviewed pull requests or reports. Records persist across sessions, update by key, and can be listed, streamed, or downloaded.
Read More《Cursor Docs》-Agent config
bot/agent.ts default exports defineAgent(config), which sets the model that runs the agent and the defaults for a local run. Every field is optional on the root agent.
Read More《Cursor Docs》-Access
Deployed Agents calls the three access levels Viewer, Editor, and Owner, and the API calls them viewer, deployer, and admin. admin is Owner, and a write also accepts owner for that role and editor for Editor.
Read More《Cursor Docs》-Build a PR reviewer with Agent SDK
You'll build a reviewer that rates each pull request as trivial, moderate, or large, then approves safe changes or asks for a human review.
Read More《Cursor Docs》-Hillclimbing
Hillclimbing improves an agent one measured change at a time. Hold the inputs fixed, change one thing, and keep it only when the same run gets better without moving the behavior you froze.
Read More《Cursor Docs》-Authenticate deployed agents with OIDC
A deployed Agent SDK agent can mint short lived OIDC JWTs signed by Cursor and exchange them for temporary cloud credentials or service tokens without storing static access keys in deployment secrets.
Read More《Cursor Docs》-Webhook agents
A custom channel turns an event from another system into an agent conversation and sends the result back to the system that started it. Use one when the built in HTTP API doesn't match the provider's payload, conversation key, or reply path.
Read More《Cursor Docs》-Microsoft Teams agents
A Teams agent wakes when someone @mentions it in a channel or group chat, messages it in a personal chat, or posts in a channel it watches. It answers in the same reply chain. teamsChannel() takes the same engagement options as slackChannel(), so an agent that already runs in Slack can run in Teams with the same shape of config.
Read More《Cursor Docs》-Run MCP connectors as the signed-in user
On Cursor hosting, a cursorAccount: true MCP connection defaults to credentials: "shared". Every turn calls the MCP server through the deployment's service account.
Read More《Cursor Docs》-PagerDuty agents
A PagerDuty agent wakes when an incident triggers, investigates it, and writes what it found back to the incident. pagerdutyChannel() verifies PagerDuty's v3 webhooks and sends every later event for that incident to the session that started the investigation.
Read More《Cursor Docs》-OpenTelemetry
Agent SDK sends traces, metrics, and logs to an OTLP collector when you set the OTEL variables. Record your own with @opentelemetry/api.
Read More《Cursor Docs》-Migrate an early-alpha project to architecture v2
Use this guide only for an Agent SDK project deployed on architecture v1 during the early alpha. Every other project already runs on v2.
Read More《Cursor Docs》-Connect a private MCP server with OAuth
Host MCP OAuth lets the machine running your agent authorize a remote MCP server without putting tokens in your source or workspace.
Read More《Cursor Docs》-Use Jev in review tools
\[!WARNING] Experimental. @grok/agent sdk/extensions/jev is experimental. Its exports and behavior can change in any release, without a deprecation period.
Read More《Cursor Docs》-Self-improvement
The improve extension lets an agent turn "change how you work" into a change to its own source. The agent writes a brief, a Cursor cloud agent edits a checkout and opens a pull request, and the agent reports the pull request.
Read More《Cursor Docs》-GitLab agents
A GitLab agent wakes on merge request, note, and pipeline events from GitLab.com or a self managed server, then writes its results back to the project. Declare onMergeRequest, onNote, or onPipeline on gitlabChannel() for each event that should wake it.
Read More《Cursor Docs》-GitHub agents
A GitHub agent wakes from repo events, reads the latest PR and CI state, then writes back reviews, comments, checks, or pushes. Every wake for the same pull request resumes one session, so the open, later comments, and CI results share one conversation.
Read More《Cursor Docs》-Convert a Cursor Automation
Convert a dashboard Automation when you want to edit its behavior as code, test it locally, or deploy it as an Agent SDK project. To change only the prompt or the trigger, stay in the dashboard.
Read More《Cursor Docs》-Cloud agents
The cursor cloud agents extension lets an Agent SDK agent hand coding work to Cursor cloud agents. A cloud agent works in a repository checkout and pushes branches and pull requests while your agent keeps talking to the person.
Read More《Cursor Docs》-Bitbucket agents
A Bitbucket agent wakes on pull request, comment, and push events from Bitbucket Cloud or Data Center, then writes its results back to the repository. Declare onPullRequest, onPullRequestComment, or onPush on bitbucketChannel() for each event that should wake it.
Read More《Cursor Docs》-Peer agents
A peer connection lets one agent ask an independent specialist for help. The specialist keeps its own instructions, tools, and sessions. On Cursor hosting, team owned agents reach each other by deployment slug, and Agent SDK handles routing and authentication for you.
Read More《Cursor Docs》-Evals
An eval sends a fixed input to the real agent and checks which tools ran and what the answer looks like. To improve an agent and lock each win with an eval, follow Hillclimbing.
Read More《Cursor Docs》-Deploy an Agent SDK project
Deploy a pushed Git ref as a stable service on Cursor managed hosting, or self host it when you need your own network or process controls.
Read More《Cursor Docs》-Build with a coding agent
A coding agent in your checkout can create an Agent SDK project, call its tools, run a real turn, and check the result from the CLI. You approve the plan and any side effects.
Read More《Cursor Docs》-Agent SDK
Agent SDK lets you define, test, evaluate, and deploy agents as code. It uses the Cursor SDK harness that powers Bugbot, Security Review, Approval Bot, and Rollouts.
Read Moredsh-claude-code-sdk: Delegate DSH tasks to local Claude Code
Through the official Claude Agent SDK, self-contained coding tasks are delegated to the local Claude Code for execution, and results are returned to DSH. DSH acts as the leader, while Claude Code serves as the worker. The plugin injects the current DSH conversation history into the task context; tool calls made by the worker do not enter the outer DSH session context.
Read Moredsh-claude-bridge: Driving the Claude Code CLI with the Agent SDK
`dsh-claude-bridge` is a plugin for DeepSeek Harness that runs the Claude Code CLI to apply Claude Pro or Max subscription usage to DSH billing and avoid the OAuth flow. It supports core features such as streaming output, tool calling, and a 1M token context window. Installation requires specifying `--profile web`, and the configuration file must specify a path. The plugin runs by reading the Claude Code CLI credentials file and overrides certain environment variables to prevent billing errors. It is maintained by shaneconner and open-sourced under the MIT license.
Read More