Operate ACP Agent Integration
Operate an existing ACP agent without confusing client setup, agent-native
configuration, and protocol behavior. Read references/acp-operations-map.md
for the current connection and failure map.
Preflight
- Name the ACP client and ACP agent/server process.
- Treat ACP v1 as the current latest protocol and v2 as draft design work.
Check the capabilities negotiated by the actual pair; do not infer wire
compatibility from SDK package versions or implement a draft RFD as stable.
- Check the canonical ACP Registry with
the managed ACP registry checker.
- If the agent is missing, use its official local executable only when the
client supports custom agents. Keep registry absence distinct from missing
ACP support.
- Run the agent's documented non-interactive health or version check before
opening the client.
For Hermes, check hermes acp --version, hermes acp --check, hermes doctor,
and hermes status as needed. ACP reuses Hermes provider credentials, config,
skills, and state; it does not create a separate provider setup.
Connect And Validate
- Configure the client launch command and environment with the smallest
required surface.
- Confirm stdout is reserved for JSON-RPC and human-readable logs go to
stderr.
- Inspect the initialization response for protocol version, agent
capabilities, authentication methods, and implementation identity.
- Complete agent-owned or terminal authentication before starting a session.
- Create a harmless session and verify working-directory binding.
- Verify streaming messages, tool calls, file diffs, terminal rendering,
permission requests, cancellation, and any advertised load, resume, fork,
list, close, mode, or config-option behavior independently.
- Verify forwarded MCP servers separately from the agent's native MCP config.
Completed v1 additions include generic session configuration options,
session/list, session-information updates, session/resume, and
session/close. Elicitation, boolean config-option refinements,
session/delete, logout, additional directories, remote transports, and the v2
prompt lifecycle remain draft RFDs unless the live ACP documentation says they
have advanced. Gate experimental behavior on explicit capabilities and label
it as draft in reports.
Host Handoffs
- For Zed registry/custom-agent settings and ACP logs, use
operate-zed-agent.
- For Xcode's Add an Agent flow, Xcode-owned tools, and permissions, use
apple-dev-skills:xcode-coding-intelligence-workflow.
- For an external agent running outside Xcode and calling Xcode tools, stop:
that is MCP through
xcrun mcpbridge, not an ACP-hosted Xcode agent.
- For a custom program driving Hermes, reconsider the TUI gateway or API server
through
choose-agent-integration-protocol.
Diagnose By Layer
- Discovery failure: inspect the canonical registry or custom client config.
- Spawn failure: inspect executable path, arguments, environment, and stderr.
- Handshake failure: inspect protocol version and capabilities.
- Authentication failure: inspect advertised auth methods and agent-native
provider state.
- Empty or wrong workspace: inspect session cwd and additional roots.
- Missing tool: inspect client-forwarded MCP and agent-native MCP separately.
- Missing history: inspect whether load, resume, list, or fork is advertised;
do not assume every client exposes every optional method.
Report
Report registry status, launch source, client and agent versions, negotiated
protocol and capabilities, auth owner, cwd, session behavior, MCP paths,
permission behavior, evidence collected, and unresolved client-specific UI
checks.
1---2name: operate-acp-agent-integration3description: Install, launch, validate, and diagnose existing ACP agents across Zed, Xcode, and other clients. Use for registry discovery, custom launch commands, auth, capabilities, sessions, and logs.4---56# Operate ACP Agent Integration78Operate an existing ACP agent without confusing client setup, agent-native9configuration, and protocol behavior. Read `references/acp-operations-map.md`10for the current connection and failure map.1112## Preflight13141. Name the ACP client and ACP agent/server process.152. Treat ACP v1 as the current latest protocol and v2 as draft design work.16 Check the capabilities negotiated by the actual pair; do not infer wire17 compatibility from SDK package versions or implement a draft RFD as stable.183. Check the canonical ACP Registry with19 the managed ACP registry checker.204. If the agent is missing, use its official local executable only when the21 client supports custom agents. Keep registry absence distinct from missing22 ACP support.235. Run the agent's documented non-interactive health or version check before24 opening the client.2526For Hermes, check `hermes acp --version`, `hermes acp --check`, `hermes doctor`,27and `hermes status` as needed. ACP reuses Hermes provider credentials, config,28skills, and state; it does not create a separate provider setup.2930## Connect And Validate31321. Configure the client launch command and environment with the smallest33 required surface.342. Confirm stdout is reserved for JSON-RPC and human-readable logs go to35 stderr.363. Inspect the initialization response for protocol version, agent37 capabilities, authentication methods, and implementation identity.384. Complete agent-owned or terminal authentication before starting a session.395. Create a harmless session and verify working-directory binding.406. Verify streaming messages, tool calls, file diffs, terminal rendering,41 permission requests, cancellation, and any advertised load, resume, fork,42 list, close, mode, or config-option behavior independently.437. Verify forwarded MCP servers separately from the agent's native MCP config.4445Completed v1 additions include generic session configuration options,46`session/list`, session-information updates, `session/resume`, and47`session/close`. Elicitation, boolean config-option refinements,48`session/delete`, logout, additional directories, remote transports, and the v249prompt lifecycle remain draft RFDs unless the live ACP documentation says they50have advanced. Gate experimental behavior on explicit capabilities and label51it as draft in reports.5253## Host Handoffs5455- For Zed registry/custom-agent settings and ACP logs, use `operate-zed-agent`.56- For Xcode's Add an Agent flow, Xcode-owned tools, and permissions, use57 `apple-dev-skills:xcode-coding-intelligence-workflow`.58- For an external agent running outside Xcode and calling Xcode tools, stop:59 that is MCP through `xcrun mcpbridge`, not an ACP-hosted Xcode agent.60- For a custom program driving Hermes, reconsider the TUI gateway or API server61 through `choose-agent-integration-protocol`.6263## Diagnose By Layer6465- Discovery failure: inspect the canonical registry or custom client config.66- Spawn failure: inspect executable path, arguments, environment, and stderr.67- Handshake failure: inspect protocol version and capabilities.68- Authentication failure: inspect advertised auth methods and agent-native69 provider state.70- Empty or wrong workspace: inspect session cwd and additional roots.71- Missing tool: inspect client-forwarded MCP and agent-native MCP separately.72- Missing history: inspect whether load, resume, list, or fork is advertised;73 do not assume every client exposes every optional method.7475## Report7677Report registry status, launch source, client and agent versions, negotiated78protocol and capabilities, auth owner, cwd, session behavior, MCP paths,79permission behavior, evidence collected, and unresolved client-specific UI80checks.