ACP Agents
One daemon for any coding agent that speaks the Agent Client Protocol (ACP) – DeepSeek Harness, Qwen Code and the many others that ship an ACP mode. You tell it the command that starts your agent in ACP mode; it does the rest.
Prerequisites
- Node.js 22.23.4+ or 24.22.1+
- An ACP agent, installed and signed in the way its own docs describe, and the command that starts it in ACP mode:
| Agent | ACP command |
|---|---|
| DeepSeek Harness | dsh acp |
| Qwen Code | qwen --acp |
| Antigravity CLI | agy acp |
For any other agent, its docs give the command – usually an acp subcommand or an --acp flag.
Install & Run
# Install daemon
npm install -g @cmdctrl/acp
# Register, naming the agent to run
cmdctrl-acp register --agent "dsh acp" -s https://api.cmd-ctrl.ai
# Start
cmdctrl-acp startRegistering starts the agent once to check it answers in ACP before it asks for your verification code, so a mistyped command fails there rather than on your phone.
How It Works
The daemon starts your agent as a background process and speaks ACP to it over stdio. Each new session starts in the project you pick; replies continue the same session.
- Replies arrive a message at a time as the agent finishes each one, with its tool activity shown while it works.
- Permission requests show as a card with the agent's own choices – Allow once, Reject and whatever else it offers. Tap one and the turn carries on. Typing yes or no works too; anything else declines the request and goes to the agent as your next message.
- Stop cancels the agent's turn. What it had already said stays in the conversation.
- Images go to agents that accept them. To one that doesn't, the message is sent without them.
When the agent asks is up to the agent. DeepSeek Harness asks when an operation needs more access than its sandbox allows; Qwen Code asks before file edits and shell commands when started with --approval-mode default:
cmdctrl-acp register --agent "qwen --acp --approval-mode default" -s https://api.cmd-ctrl.aiSessions and history
Sessions you start in the agent itself – in its own terminal UI or an editor – appear in the app when the agent can list them. Qwen Code lists a project's sessions once the daemon has worked in that project.
Agents that can replay a session (Qwen Code) show its full history, wherever it was started. For agents that can't (DeepSeek Harness), the app shows the conversation as it went through Cmd+Ctrl, which survives daemon restarts; a session started elsewhere opens without its earlier messages, and you can still continue it.
Changing the Agent
cmdctrl-acp register --agent "qwen --acp"
cmdctrl-acp stop && cmdctrl-acp startMore Than One Agent
Each agent is its own device. Give the second one an instance name and use it with every command:
cmdctrl-acp register --instance qwen --agent "qwen --acp" -s https://api.cmd-ctrl.ai
cmdctrl-acp start --instance qwenIt appears in the app as a separate device, named after your machine and the agent.
Troubleshooting
"did not start as an ACP agent" – Run the command yourself in a terminal. It should sit waiting for input rather than exit or open a UI. Check it's the ACP command, not the agent's normal one.
"not found on PATH" – The daemon runs the command with the PATH it was started with. Use the full path in --agent if the agent lives somewhere else.
Antigravity: "is an editor launcher" – The Antigravity IDE installs its own agy, which opens the editor. Install the Antigravity CLI and name it by full path: --agent "$HOME/.local/bin/agy acp". Registering without --agent finds the CLI on its own.
The agent asks you to log in – Run the agent once on its own and sign in, then restart the daemon.
"can't reopen a session after it restarts" – That agent can't continue a session once its process has ended. Start a new session.
Seeing every message on the wire – Start the daemon with CMDCTRL_ACP_TRACE=1 to log the ACP traffic.