Skip to content
Agentic Control Plane

What the installer actually does

curl -sf https://agenticcontrolplane.com/install.sh | bash puts a hook in front of every tool call your coding agent makes. Before you pipe anything to bash, you should know what that writes. This page lists every file the installer touches, what each one is for, what leaves your machine, and the one command that removes all of it.

The script is readable source. Nothing is compiled. It writes only under your home directory and never uses sudo. Before it writes anything, it shows you the list of coding agents it found on the machine, names the files each one would get, and asks which to govern. Enter takes all of them; n exits with nothing written.

It detects 14 agents: Claude Code, Codex, Cursor, GitHub Copilot, OpenCode, OpenClaw, Hermes, DeepSeek Harness, Qwen Code, Antigravity, Grok Build, Pi, Prime Agent and Muse Code. Each has its own install guide.

Two modes: connected workspace (default) or fully on-device (--local)

# default: connect a workspace (browser OAuth) for team rules, cost X-ray, shared console.
curl -sf https://agenticcontrolplane.com/install.sh | bash

# --local: decisions run ON YOUR MACHINE. No account, no network, nothing leaves your box.
curl -sf https://agenticcontrolplane.com/install.sh | bash -s -- --local

The two modes write different files, and they send different things.

With --local, nothing leaves the machine. The installer downloads the hook once. After that, every decision is made by ~/.acp/decide.mjs against your ~/.acp/policy.json, and every call is written to ~/.acp/audit.jsonl. No account, no key, no network call at run time.

In connected mode, the hook talks to the ACP gateway on every call. Before the call runs, it sends the tool name and its arguments (for a shell call, the command text) and gets back allow, ask or deny. After the call, it sends up to 200 KB of the result so output rules such as PII redaction can run. What the gateway keeps is narrower than what it sees: by default the stored record is metadata only (tool name, decision, who ran it, timestamps, cost). Argument and result previews are stored only if you turn them on from the console’s Logging page, capped at 1,500 characters. One exception: when a call is held for approval, up to 500 characters of its arguments are kept with the request and included in the approval email, so the approver can see what they are approving. On Claude Code the hook also reads the local session transcript to price model turns; it sends token counts, never message text. The full list is on /trust and in the privacy policy.

Every row below is tagged [both], [local] or [cloud] so you can see what each mode writes.

The core

Path What it is Mode
~/.acp/govern.mjs The hook dispatcher: a few hundred lines of Node, no dependencies. Your agent runs it before and after every tool call. In local mode it calls decide.mjs; in cloud mode it POSTs to the ACP API. The installer fetches a pinned, checksum-verified copy from the plugin repo and falls back to a bundled copy if that fails. [both]
~/.acp/decide.mjs The on-device decision engine. Pure, self-contained, no network. It classifies each call and returns allow, ask or deny from your policy, plus the safety floor: rm -rf of your home or root, mkfs, dd onto a disk and fork bombs are always refused; a force-push (any branch), destructive SQL through a database client, curl \| sh, and a recursive delete outside the working directory are held until a person approves. A rule of yours can tighten that; nothing in the file can loosen it. What is and is not on the floor. [both]
~/.acp/policy.json Your rules: allow, ask or deny per tool key, one file, applied the same way to every agent. The installer seeds it with ask on rm, curl, git push, chmod and chown. Edit it by hand; the next call uses it. [local]
~/.acp/audit.jsonl The on-device log, one line per call: tool, decision, reason, timestamp. tail -f ~/.acp/audit.jsonl to watch it. Nothing is sent anywhere. [local]
~/.acp/credentials Your workspace API key, written after you authorize in the browser (mode 600). It is how the hook proves which workspace it belongs to. A token, not a password. [cloud]
~/.acp/lapse.log Written at run time, one line each time the gateway could not be reached and a call ran ungoverned, so the gap shows up in your record instead of disappearing. [cloud]
~/.acp/failmode Optional. Contains open or closed. Only exists if you create it; see when ACP is unreachable. [both]
~/.acp/.stale-notice A timestamp, rewritten on every install and acp-update. It keeps the hook from nagging about its own version right after a refresh. [both]

In --local mode, that is the whole shared install: govern.mjs and decide.mjs, reading policy.json, writing audit.jsonl. Everything below is per-harness wiring or connected-mode convenience.

Per-agent wiring, only for the agents you picked

The installer registers the hook in each chosen agent’s own config file. It merges into JSON and TOML and keeps your other settings. The last column says whether the row is written in --local; the agents marked no use an ACP plugin that needs a workspace, and local decisions are not wired for them yet.

Agent File edited What’s added --local?
Claude Code ~/.claude/settings.json The ACP plugin from Claude Code’s marketplace (hooks, /acp-* slash commands, MCP server) when your CLI supports plugins; on older CLIs, PreToolUse + PostToolUse entries pointing at govern.mjs. Any direct entries from an earlier install are removed so no call is checked twice. yes
Cursor ~/.cursor/hooks.json, ~/.cursor/mcp.json preToolUse + postToolUse entries, and an acp entry under mcpServers. yes (the MCP entry is written too, but has no key to use)
Codex ~/.codex/config.toml, ~/.codex/hooks.json, ~/.codex/AGENTS.md Confirms Codex’s hooks feature (on by default since 0.145) and registers the hook. Connected mode also adds [mcp_servers.acp] and [model_providers.acp] tables and the AGENTS.md block. shell calls only; the MCP connector, provider table and AGENTS.md block are cloud-only
GitHub Copilot ~/.copilot/hooks/acp.json PreToolUse + PostToolUse entries. One file covers Copilot CLI and VS Code agent mode. yes
Qwen Code ~/.qwen/settings.json PreToolUse + PostToolUse entries and an acp entry under mcpServers. yes (same note as Cursor)
OpenClaw its plugin manager (openclaw plugins install) The @agenticcontrolplane/openclaw plugin. yes
OpenCode ~/.config/opencode/ (opencode.json, a plugin file, AGENTS.md) The @agenticcontrolplane/opencode plugin, a permission gate, an MCP entry and a cost X-ray provider entry. OpenCode uses in-process plugins, not shell hooks. no
Hermes the pip environment that runs hermes The acp-hermes package. Connected mode also adds a block to ~/.hermes/SOUL.md. no
DeepSeek Harness your dsh profiles (settings.yaml) The @agenticcontrolplane/dsh plugin, added to each profile through dsh’s own plugin manager. no
Pi ~/.pi/agent/extensions/acp.ts One global extension file (needs Node 22). no
Prime Agent ~/.prime/agent/extensions/acp.ts One global extension file. no
Muse Code ~/.config/muse/ A plugin bundle. Muse’s background agent makes tool calls of its own, and those appear in your audit too. no
Grok Build ~/.grok/hooks/acp.json, a hook under ~/.acp/hooks/grok-build/ A purpose-built hook, plus a [model.acp] table in ~/.grok/config.toml for the launcher. Grok also auto-loads Claude-format hooks; this one is the one that decides. no
Antigravity ~/.gemini/config/hooks.json, a hook under ~/.acp/hooks/antigravity/ An acp key merged into the shared hooks file (CLI, IDE and app), never overwriting yours. no

Where the hook can stop a call differs by harness. Only Claude Code shows a held call inline in the session. On every other harness the call is blocked, you approve it on the console Approvals page or from the email, then ask the agent to retry. Codex has no approval prompt at all, so an ask there blocks. In --local mode an ask needs someone at the terminal.

The instruction block

In connected mode the installer appends a short section to your agent’s instruction file: ~/.claude/CLAUDE.md, ~/.codex/AGENTS.md, ~/.config/opencode/AGENTS.md, ~/.hermes/SOUL.md, ~/.qwen/QWEN.md, ~/.pi/agent/AGENTS.md, ~/.prime/agent/AGENTS.md, ~/.grok/AGENTS.md and ~/.dsh/AGENTS.md, for the agents you picked. It tells the agent that its tool calls are checked and logged, and to launch through the *-acp launcher so model calls get priced.

The block sits between two HTML-comment markers, acp:begin and acp:end. The installer writes only between them and never touches the text around them. grep -rl "acp:begin" ~ finds every copy. It writes to per-user config only, never into a project repository. --local writes none of these.

The optional extras, connected mode only

None of these enforce anything. --local skips every row in this table: no launcher, no PATH edit, no shell-rc change.

Path What it is Note
~/.acp/bin/claude-acp and the other *-acp launchers (codex-acp, opencode-acp, hermes-acp, qwen-acp, pi-acp, prime-acp, grok-acp, dsh-acp) Starts the agent with its model calls routed through the ACP proxy, so they are metered and show up in the cost X-ray. Plain claude is untouched. Optional. Without a launcher, Claude Code sessions are still priced from the transcript (an estimate at list rates, not a metered charge).
~/.zshrc / ~/.bashrc / ~/.profile One line appended: export PATH="$HOME/.acp/bin:$PATH" so the launchers are on your PATH. The most invasive thing the installer does. Tagged # acp-installer so it is easy to find and remove.
~/.acp/transcript-offsets.json How far the hook has read in each session transcript it has priced. A few byte offsets. Safe to delete; turns already reported are not re-priced.
~/.acp/bin/acp-session-summary Prints a session’s cost with a link to its X-ray. The launchers call it on exit. Convenience.
~/.acp/bin/acp-update Re-runs the installer in --update mode: refreshes govern.mjs, the launchers and each harness’s registration, without touching ~/.acp/credentials or repeating the login. The hook tells you when a refresh is available.
~/.acp/bin/acp-uninstall, ~/.acp/uninstall.sh The uninstaller, cached on your disk at install time so leaving never depends on us being reachable. See below.
MCP entries: Cursor ~/.cursor/mcp.json, Qwen ~/.qwen/settings.json, Codex config.toml, OpenCode opencode.json; Claude Code gets it through the plugin Registers the ACP introspection MCP server so your agent can ask about its own usage, cost and policy. Read-only tools; see the MCP tools.

What a connected workspace does on day one

A new workspace starts in audit mode: every call is recorded, the safety floor applies, and your own rules do not block anything yet. /acp-enforce in your agent, or the console’s Policies page, turns them on. With --local your rules apply from the first call; there is no mode switch. Rules that stop the scary things covers what the floor already does and the rule for each gap.

Why not just the harness’s own auto mode and a sandbox?

They solve a different problem, and you probably want both. A sandbox limits where writes and network land. Auto mode and allowlists decide which tools run without a prompt. Neither will stop a git push --force or a DROP TABLE against a reachable database, because both are ordinary, allowed actions inside any sandbox.

What this install adds is one set of rules and one log across every harness on the machine, a hold on the floor actions before they run, and in connected mode, rules by session tier, so an unattended background or subagent run can be set to Never on the dangerous keys while your interactive sessions stay on Ask. Two limits to know: the floor reads shell command text only, so MCP and other non-shell tools do not reach it; and it is a client-side hook, so a harness setting that disables all hooks disables this one too.

When ACP is unreachable

  • Claude Code (the plugin): an interactive session fails open. The call runs, the session shows an UNGOVERNED notice, and the lapse is recorded. Subagent, background and API-tier sessions fail closed: the call is denied until the gateway answers. There is no setting that changes this.
  • Every other harness (the shared ~/.acp/govern.mjs): fails open in every tier, with the same notice and a line in ~/.acp/lapse.log. To block instead, run echo closed > ~/.acp/failmode on that machine, or set ACP_FAIL_MODE=closed.
  • --local: there is no gateway to lose. If decide.mjs itself is missing, the call runs, flagged ungoverned, with an audit line saying so.

How to remove all of it

acp-uninstall                    # or: curl -sf https://agenticcontrolplane.com/uninstall.sh | bash
acp-uninstall --dry-run          # show what it would touch, change nothing

Use the curl form after a --local install, which has no acp-uninstall on disk. The uninstaller removes the hook entries and leaves your other hooks, strips the acp:begin/acp:end blocks and leaves everything around them, drops the MCP and provider entries, the Pi and Prime Agent extension files, the # acp-installer PATH line, the Claude Code plugin, and then ~/.acp itself. Registrations go first and ~/.acp last, so nothing is ever left pointing at a file that is gone. Every removal checks that the entry points at ~/.acp, govern.mjs or api.agenticcontrolplane.com before touching it.

It leaves a few things for you, and names each one that applies: plugins installed through a harness’s own plugin manager (Hermes, Muse Code, OpenClaw, dsh), the [features].hooks flag in ~/.codex/config.toml, and OpenCode permission entries it cannot tell from yours. Your workspace and its history live server-side and are not removed with the client; delete them yourself under Settings → Your data in the console. Deletion is permanent.

What we hold ourselves to

  • --local is local. The hook, the decision engine, your policy and your audit log are the whole install, all on your machine. No account, no key, no network call. You can read every decision decide.mjs makes.
  • The cloud extras exist only when you connect a workspace. Add --local and no launcher, PATH line or instruction block is written.
  • Nothing is hidden. The script is plain text you can read top to bottom before running it, and the local engine ships in the same file, so you can check the safety floor yourself.