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

Questionpichecked at pi-acp 0.0.34
Run it as an ACP agent

pi has no ACP mode of its own; run the community adapter npx -y pi-acp (svkozak/pi-acp). It starts pi --mode rpc for each session, so pi must be on PATH (or set PI_ACP_PI_COMMAND).

pi-acp 0.0.34 documents pi v0.81.0+ and was released before pi 1.0; 1.x compatibility is tracked in the adapter's issue #159.

pi --mode rpc is pi's own JSON-over-stdio protocol, not ACP; pi-acp translates between the two.

Other community adapters exist (@automatalabs/pi-acp, which embeds pi through its SDK in-process; @wbline/pi-acp-jetbrain for JetBrains), but only pi-acp is in the ACP registry.

Add it to Zed, JetBrains or another editor

pi-acp is listed in the ACP registry as pi ACP, so in Zed run zed: acp registry and pick it, which adds "agent_servers": {"pi-acp": {"type": "registry"}}. Without the registry, add a custom server with "command": "npx", "args": ["-y", "pi-acp"].

Development targets Zed; other ACP clients may work with varying compatibility.

Signing in

Partly

The adapter advertises one terminal auth method, pi_terminal_login, which runs pi-acp --terminal-login to open interactive pi so you can log in or set API keys. There is no in-protocol API-key method; credentials come from pi's own configuration or provider env vars.

If no models are available, session/new fails with an auth-required error carrying the same method.

Sessions and settings

Questionpichecked at pi-acp 0.0.34
Resume, list or fork past sessions

session/list, session/load and session/delete work over pi's own session files in ~/.pi/agent/sessions/ (or the configured sessionDir), so sessions started in the editor can be /resumed in the pi terminal and vice versa. session/resume and fork are not implemented.

session/delete removes the pi session file from disk.

Without a cwd filter, the list defaults to the last session's working directory, like pi's /resume picker.

Switch mode or model from the editor

Sessions expose two config options: Model (all models pi can use) and Thinking (pi's thinking levels), via session/set_config_option. The legacy session/set_mode and session/set_model map to the thinking level and model respectively; there are no plan/ask-style modes.

Some clients that expect a mode-category option (e.g. JetBrains) may not handle the thinking-level selector correctly.

Slash commands and skills

Partly

After session/new and session/load the adapter sends available_commands_update with pi prompt templates (~/.pi/agent/prompts, .pi/prompts), skill commands as /skill:<name> when enabled in pi settings, and adapter built-ins such as /compact, /session, /name, /export. Commands registered by pi extensions are not exposed.

/model and /clear are not implemented; use the editor's model selector and new-session command instead.

Working with the editor

Questionpichecked at pi-acp 0.0.34
Approving tool calls

Partly

pi does not ask for approval before tool calls, so tool runs never trigger session/request_permission. The adapter only uses session/request_permission to forward pi extension confirm (Yes/No) and select prompts, so a permission-gate extension installed in pi can ask through the editor.

In RPC mode pi cannot show its project-trust prompt; project resources load only if defaultProjectTrust is always or a saved decision applies.

Edits through the editor's buffers

Not supported

pi reads and writes files directly on disk; the adapter does not call fs/read_text_file or fs/write_text_file, so unsaved editor buffers are not seen. Edits are still shown in the editor as ACP diff tool-call content built from before/after snapshots.

Commands in the editor's terminal

Not supported

Commands run in pi's own shell via its bash tool; the adapter does not use terminal/create or other editor terminal methods.

MCP servers from the editor

Partly

MCP servers passed in session/new or session/load are accepted but ignored, and the adapter advertises mcpCapabilities http: false, sse: false. pi itself loads its own configured MCP servers from ~/.pi/agent/mcp.json and .pi/mcp.json, which are available in ACP sessions.

Project-level .pi/mcp.json loads only when the project is trusted, which RPC mode cannot prompt for.

What prompts carry and what streams back

Partly

Prompts can carry text, images and resource links (passed to pi as a [Context] <uri> line); embedded resources are inlined as text only when PI_ACP_ENABLE_EMBEDDED_CONTEXT=true, and audio is not supported. Back come message chunks, thought chunks, tool calls with file locations and edit diffs, usage_update context occupancy, and session titles; there are no plan updates.

The other direction

Questionpichecked at pi-acp 0.0.34
Drive other ACP agents

Not supported

Neither pi nor pi-acp can drive other ACP agents.

The third-party pi extension pi-antigravity-acp-provider runs Google Antigravity's ACP server as a pi model provider; it is a single-purpose provider, not general ACP client support.

Notes and sources

pi, 22 sources
  • pi has no native ACP support; editors connect through the community pi-acp adapter by Sergii Kozak, which runs pi in its RPC mode.
  • The adapter is pre-1.0 and expects minor breaking changes; its latest release predates pi 1.0.
  • 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, 5
Add it to Zed, JetBrains or another editor, 2
Signing in, 4
Resume, list or fork past sessions, 6
Switch mode or model from the editor, 1
Slash commands and skills, 2
Approving tool calls, 2
Edits through the editor's buffers, 2
Commands in the editor's terminal, 1
MCP servers from the editor, 4
What prompts carry and what streams back, 6
Drive other ACP agents, 3