Manual contents

Editors (Agent Client Protocol)

Managoat speaks the Agent Client Protocol, ACP. So an ACP-capable editor can drive a conversation on a Managoat agent. Prompt it, watch it think and call tools, cancel it, close the editor, and reopen the conversation later.

The editor spawns managoat acp as a subprocess and talks JSON-RPC to it over the pipe. That process talks HTTP and SSE to your Managoat instance.

editor ──spawns──▶ managoat acp ──HTTPS──▶ Managoat ──ACP──▶ sandbox
(ACP over stdio) (the agent)

Summary

Direction Inbound. The editor drives Managoat.
Talks over managoat acp, spawned locally.
Configured on The developer's machine.
Credential Whatever managoat auth login already saved.
Configured for One agent. Use one editor entry for each agent you want to reach.
Operator setup None.

What this is, and is not

It is a control surface for a remote conversation. The agent runs in a Managoat sandbox, on a checkout that the sandbox made, on a machine that is not yours.

It is not a way for the agent to edit the files open in your editor. The integration declares no filesystem access and no terminal access. The file paths a tool call reports are paths in the sandbox, and Managoat deliberately does not send them as locations you can click. A click would open the wrong file on your machine, or open nothing. They travel under _meta.managoat.sandboxLocations instead.

Three reasons to reach for this, and not for a local agent.

  • The work outlives the editor. Close the laptop mid-turn, and the turn continues. Reopen it, and the server replays the transcript.
  • The unit is a Managoat agent. That is an environment, vault overrides, skills, MCP servers and inference credentials, none of which touch your machine.
  • The same conversation is open in the conversations app, for you or for a teammate, while it runs.

Setup

  1. Install the CLI and log in.

    brew install managoat/tap/managoat
    managoat auth login

    Point it at your own instance first. The CLI defaults to https://managoat.com, the maintainer's instance, which has signup closed.

    MANAGOAT_BASE_URL=https://fountain.example.com managoat auth login
  2. Choose an agent. managoat agent list shows yours. The editor entry names one agent, so add one entry for each agent you want to reach.

  3. Configure your editor, as below, then start a new thread with it.

Zed

In settings.json, which zed: open settings opens:

{
"agent_servers": {
"Managoat: researcher": {
"type": "custom",
"command": "managoat",
"args": ["acp", "--agent", "researcher"],
"env": {}
}
}
}

Use the agent's name or its id in --args. To reach an instance or profile that is not the default, add "--profile", "staging" to args, or set MANAGOAT_BASE_URL in env.

A secret for one entry

--vault <name-or-id> attaches a vault to each conversation the entry opens. Vault values override the agent's environment. So a secret that belongs to this entry goes here. An identity the agent posts under is one example, and a token scoped to one workspace is another.

"args": ["acp", "--agent", "researcher", "--vault", "researcher-identity"]

The difference matters as soon as you have two entries. Each agent attached to an environment shares it, so each of them uses a credential you put there. A vault attaches to one conversation, so two entries stay apart even when they point at the same agent.

An environment for one entry

--environment <name-or-id> provisions each conversation the entry opens from that environment, and not from the agent's own.

Use it when one agent config must run under several baselines. The same "engineer" then runs against a fountain environment in one entry and a website environment in another, and you duplicate no agent. The vault, if there is one, still wins on a key collision. An agent can also restrict which environments can stand in for its own, with allowed_environment_ids.

Several entries on one machine

--workspace <id-or-name> opens each conversation the entry starts on a workspace's machine, and --cwd picks its folder there. Point a claude entry and a codex entry at one workspace, each with its own --cwd, and both agents work on the same checkout:

"args": ["acp", "--agent", "web-dev", "--workspace", "app-box", "--cwd", "/home/sprite/app/web"]

The workspace supplies the environment and vault, so leave --environment and --vault out. Conversations in one workspace can read and change each other's files and tokens; an entry that must stay isolated leaves --workspace out.

Approve a tool before it runs

By default the agent runs a tool without a question. --permission ask puts the question in your editor instead, as its own approval prompt. The tool waits for your answer.

"args": ["acp", "--agent", "researcher", "--permission", "ask"]

To ask about one kind of tool only, name the kind. --permission execute=ask asks before a shell command, and permits the rest. An entry can only narrow what the agent itself permits. Before a tool runs holds the policy, the keys and the three verdicts.

No answer is an answer. Managoat refuses a prompt that you dismiss. It refuses one that your editor never answers, and one that waits 5 minutes. The turn continues either way, and the agent reads that it has no permission.

Any other ACP client

Nothing in the adapter is specific to Zed. Whatever your client calls it, the agent command is this, spoken over stdin and stdout.

managoat acp --agent <name-or-id>

Each client below can launch a custom ACP agent command, and appears on the protocol's list of clients. We have verified Zed against Managoat, and not the clients below. The configuration shapes come from each client's own documentation. Whichever client you use, managoat must be on the PATH the editor passes on, or named by its full path, and managoat auth login must already have run as the same user.

Client Where a custom agent goes
JetBrains IDEs The AI Assistant plugin's chat: Add Custom Agent creates ~/.jetbrains/acp.json, with the same agent_servers shape as Zed, shown below. JetBrains says an ACP agent needs no JetBrains AI subscription. Read JetBrains: ACP.
Neovim CodeCompanion takes a full ACP adapter under adapters.acp, whose command is { "managoat", "acp", "--agent", "researcher" }. avante.nvim takes an entry in acp_providers with a command and args.
Emacs agent-shell builds each agent from a config in agent-shell-agent-configs. It documents no recipe for an agent it does not ship, so adding one means copying one of its built-in configs.
Obsidian The Agent Client plugin, on desktop: in its custom-agent settings, the path is managoat and the arguments are acp, --agent and the agent's name, one a line.
Jupyter agent-client-kernel reads the command from the environment, as below, or from %agent config managoat acp --agent researcher in a notebook.
VS Code Not built in. Third-party ACP extensions such as ACP Client take a command and arguments.

The JetBrains file:

{
"agent_servers": {
"Managoat: researcher": {
"command": "managoat",
"args": ["acp", "--agent", "researcher"]
}
}
}

The Jupyter kernel's environment:

export ACP_AGENT_COMMAND=managoat
export ACP_AGENT_ARGS="acp --agent researcher"

Buzz is ACP-native and must work the same way. We have not verified its configuration format for a custom agent. If you make one of these work, or find one that does not, a note in an issue is welcome.

What you get

The managoat acp reference holds the adapter's full protocol surface. It covers each method, the _meta extensions that a chat harness uses, and what Managoat forwards or deliberately ignores. Here is the short version.

ACP What happens
initialize The capability handshake. Protocol version 1.
authenticate Uses the credentials that managoat auth login saved. There is no second login.
session/new Creates a conversation for the agent you configured.
session/prompt Runs a turn. Messages, thoughts and tool calls stream back as they happen.
session/cancel Interrupts the turn that runs.
session/load Replays the conversation into an editor you just opened.
session/request_permission (agent → editor) Asks you before the agent runs a tool, when the policy says ask. Your answer goes back to the agent.

A prompt can carry images. A dropped connection is not a lost turn. The server closes an idle stream after 60 seconds, and the adapter reconnects and continues from where it stopped.

Limits, stated rather than discovered

  • No access to your local files, as above.
  • A reclaimed sandbox loses the agent's memory. If Managoat reclaimed a conversation's sandbox while you were away, session/load still replays the full transcript. The agent itself does not remember it (#649).

When something goes wrong

managoat acp writes the protocol to stdout, and everything else to stderr. Your editor's agent-server log shows that. Start there.

# what the editor runs, with more detail
managoat acp --agent researcher --log-level debug

Managoat words an error for a reader inside an editor, and not for one at a terminal.

Message Meaning
no Managoat agent configured The entry has no --agent.
agent "x" runs the … runtime, which does not speak ACP A managoat CLI older than this server. Servers after v0.27.0 no longer send the acp field that older CLIs check, so those CLIs refuse every agent. Upgrade the CLI.
credentials for … were rejected Run managoat auth login. The message names the instance it tried, and that is usually the surprise.
could not resolve agent "x" on … The wrong name, or the right name on a different instance.

To run the binary by hand is a fair diagnostic. It sits and waits for JSON-RPC on stdin, which tells you that the process starts and finds its credentials.

How it works

Two ADRs cover the design. 0014 made Managoat an ACP client of the coding agents it runs in sandboxes. 0015 makes it an ACP agent for editors.

Together they make Managoat a proxy. The same block vocabulary arrives from a sandbox on one side and leaves for an editor on the other. So the adapter forwards an update and translates nothing, and nobody parses a runtime's output format twice.