Harness Notes

ACP

Updated 2026-11-25,

On this page

The Agent Client Protocol (ACP) lets an editor such as Zed or a JetBrains IDE run a coding agent in its own panel. How to connect each harness, what carries over from its terminal app, and how much of the work the editor sees and controls.

Getting connected

QuestionCursor Agentchecked at 2026.10.12
Run it as an ACP agent

Run agent acp; ACP is native to the Cursor Agent CLI, so no adapter package is needed. It speaks newline-delimited JSON-RPC 2.0 over stdio and logs to stderr.

Add it to Zed, JetBrains or another editor

Cursor is in the ACP registry as cursor, which downloads the CLI package and launches cursor-agent acp, so registry-aware clients such as Zed and JetBrains can install it directly. Cursor documents JetBrains IDEs, Zed and Neovim via avante.nvim (cursor provider, auth_method = "cursor_login"); any other client can spawn agent acp.

Signing in

The only advertised auth method is cursor_login. Sign in beforehand with agent login, or launch with --api-key/CURSOR_API_KEY or --auth-token/CURSOR_AUTH_TOKEN; the client then calls authenticate with methodId: "cursor_login". Session calls made without credentials fail with an auth-required error telling the user to run agent login.

Sessions and settings

QuestionCursor Agentchecked at 2026.10.12
Resume, list or fork past sessions

Partly

session/list (optional cwd filter, no pagination) and session/load work, and loading replays the conversation history to the editor. There is no session/resume or session/fork. ACP sessions are stored separately under ~/.cursor/acp-sessions/, so terminal chats from agent --resume are not listed or loadable, and the other way round.

Switch mode or model from the editor

session/new returns modes agent, plan and ask plus the full model list, and exposes both as configOptions (mode, model). Switch them with session/set_mode, session/set_config_option or session/set_model. Model ids carry Cursor's bracketed parameters, such as claude-opus-4-8[thinking=true,context=300k,effort=high,fast=false].

Slash commands and skills

After session/new or session/load, the agent sends available_commands_update listing Cursor commands and skills (built-in, global and project, e.g. create-skill, loop, rename-chat). Sending /name args as prompt text runs the matching command or skill.

Working with the editor

QuestionCursor Agentchecked at 2026.10.12
Approving tool calls

Shell, write, delete, read, MCP and web tool calls go through session/request_permission with the options allow-once, allow-always and reject-once. Choosing allow-always adds the command, path or MCP tool to the CLI's permission allowlist. Existing permissions.allow entries and Run Everything (--force/--yolo) skip the prompt.

Cursor also asks multiple-choice questions and plan approvals through its own cursor/ask_question and cursor/create_plan methods. The question flow falls back to session/request_permission options.

Edits through the editor's buffers

Not supported

Files are read and written directly on disk, even when the client advertises fs.readTextFile/fs.writeTextFile, so unsaved editor buffers are not seen. Edits still reach the editor as diff content (path, old text, new text) on the permission request and tool call.

Commands in the editor's terminal

Not supported

Commands run in Cursor's own shell, even when the client advertises terminal: true. The agent never calls terminal/create, so output streams back only as tool call updates.

MCP servers from the editor

Servers passed in session/new/session/load are used: stdio (command, args, env), and http and sse (url, headers), which are advertised in mcpCapabilities. They are added to the servers from the user's and project's .cursor/mcp.json, which still need approval in the CLI first. Dashboard team MCP servers are not loaded in ACP mode.

What prompts carry and what streams back

Partly

Prompts accept text, images and resource links. Audio is not supported, and embeddedContext is advertised as false. Linked file: URIs inside the project root, and embedded text resources, are inlined as extra context. Streamed back: message and thought chunks, tool calls with diffs, plan entries, mode changes, session titles (session_info_update) and subagent updates; there is no usage_update.

Todo lists, subagent status and generated images also arrive through Cursor's cursor/update_todos, cursor/task and cursor/generate_image notifications.

The other direction

QuestionCursor Agentchecked at 2026.10.12
Drive other ACP agents

Not supported

The Cursor CLI only acts as an ACP agent. It cannot launch or drive other ACP agents, and its subagents are Cursor's own.

Notes and sources

Cursor Agent, 8 sources
  • ACP is built into the Cursor Agent CLI (agent acp); there is no separate adapter package.
  • Cursor adds its own cursor/* extension methods (cursor/ask_question, cursor/create_plan, cursor/update_todos, cursor/task, cursor/generate_image) that generic ACP clients can ignore or implement.
  • Behaviour below was checked against 2026.10.12-d47ca18; the ACP registry currently ships 2026.10.14-0f9edde.
  • Remote connectivity, provider relay, cloud handoff and execution lifetime are separately audited on 2026-10-19 in registry/remote.json. ACP answers retain the observed versions recorded here; stdio support does not imply network attachment.
Run it as an ACP agent, 3
Add it to Zed, JetBrains or another editor, 3
Signing in, 3
Resume, list or fork past sessions, 3
Switch mode or model from the editor, 2
Slash commands and skills, 2
Approving tool calls, 2
Edits through the editor's buffers, 2
Commands in the editor's terminal, 2
MCP servers from the editor, 3
What prompts carry and what streams back, 2
Drive other ACP agents, 2