Skip to content

Agent manifest

hangar   Engine phase (P2)  ·  provisional until it ships

Each profile declares its agents in agents.toml. The manifest is data, not code. Adding an agent should never require a rebuild.

~/.config/acpilot/profiles/work/agents.toml
"$schema" = "https://rudeboy.dev/acpilot/schema/agents-v1.json"
schema_version = 1
[[agents]]
id = "claude-code"
name = "Claude Code"
transport = "acp-stdio"
command = "npx"
args = ["-y", "@zed-industries/claude-code-acp"]
env = { ANTHROPIC_API_KEY = "keyring:claude-code" }
restart = "on-crash"
[[agents]]
id = "freebuff"
name = "Freebuff"
transport = "pty"
command = "freebuff"
parser = "ansi-transcript"
prompt_row = "▍Enter a coding task"
sentinel = "▍Enter a coding task"
exit_command = "/exit"
idle_timeout_ms = 5000
[[agents]]
id = "local-gemini"
transport = "acp-stdio"
command = "gemini"
args = ["--experimental-acp"]
# Written by `acpilot recipes promote`. A model-backed agent is an ordinary
# ACP agent; the recipe is its configuration, not a second transport.
[[agents]]
id = "corpus-scraper"
name = "Corpus scraper (Qwen 7B)"
transport = "acp-stdio"
command = "acpilot-agent-lm"
args = ["--recipe", "corpus-scraper"]
restart = "on-crash"
# recipe: profiles/work/recipes/corpus-scraper.toml (mtime 2026-10-20T14:02:11Z)
Transport What it means Requirements
acp-stdio Native ACP over stdio command. The agent implements ACP
pty Program driven through a PTY command, parser, and a sentinel. idle_timeout_ms is the backstop
http-jsonrpc ACP over HTTP url. Used for remote agents

These are the spellings to write. The snake_case form the API returns (acp_stdio) is also accepted, so you can paste a value from GET /v1/agents unchanged. A typo is still an error that lists the valid values.

The bridge in remote control is the mirror image. There the daemon is the ACP server, and a remote driver is the client. You configure the bridge in config.toml rather than in this file, because it is a property of the daemon, not of an agent.

Field Type Notes
id string Stable identifier. Lowercase, used by --agent and in the API
name string Display name. Defaults to the id
description string One sentence on what the agent is for
transport enum One of the three above
command string acp-stdio and pty: executable, resolved on the host the workspace lives on
args string[] acp-stdio and pty: passed verbatim
env table acp-stdio and pty: literal values (NO_COLOR = "1"), or keyring:<name> references
url string http-jsonrpc only: where the agent answers (http or https)
auth string http-jsonrpc only: a keyring: reference. The loader refuses a plaintext token
restart enum never (the default) or on-crash (max 3 attempts)
allow_cross_profile bool Required before the loader accepts a keyring:<profile>/<name> reference
parser string PTY only: plain-transcript, ansi-transcript, or script:<path>
prompt_row string PTY only: text that identifies the input row, so chrome can be cut away
sentinel string PTY only: the input row back at rest. The primary turn-complete signal
exit_command string PTY only: what to type to leave cleanly (e.g. /exit). Ctrl-D is not universal
submit_delay_ms integer PTY only: gap between the text and the Enter key. One write of text\r is a paste, not a submit, in at least one TUI
idle_timeout_ms integer PTY only: backstop when the sentinel does not fire. 5,000 avoided every truncated turn measured. Smaller values did not

The file identifies its schema, so an editor completes keys and underlines typos before the loader ever sees them:

"$schema" = "https://rudeboy.dev/acpilot/schema/agents-v1.json"

The project publishes that document at https://rudeboy.dev/acpilot/schema/agents-v1.json. It is JSON Schema 2020-12, Apache-2.0, and generated from the same Rust types the loader parses. It therefore cannot describe a key the loader would refuse. A test checks the presets we ship against it, and checks that a file the schema rejects is a file the loader rejects. If you would rather keep the document free of editor plumbing, Taplo and Even Better TOML also read a first line of #:schema <url>.

The schema checks the root keys, schema_version, and for each transport the fields it may carry and the ones it cannot load without. It cannot check a duplicate id, or a keyring: reference that does not resolve, because JSON Schema has no way to say it. The loader stays the authority. The schema is there so its refusals arrive as a squiggle rather than as a surprise on the next start.

The -v1 in the name is the major version, and this URL is frozen. Within v1 the document may only gain optional keys or enum members. Any change a schema_version = 1 loader would read differently ships as agents-v2.json alongside schema_version = 2, and the v1 file is never edited again. There is deliberately no latest.json. A moving URL is how an editor’s cached schema falls out of step with the loader without anyone noticing.

The loader checks a manifest before use, not at spawn time:

  • Unknown keys are errors, with the same rule as configuration. The one exception is "$schema", which belongs to the editor and the loader ignores it.
  • transport must be one of the three, and its required fields must be present.
  • A field that belongs to another transport is an error too. sentinel on an acp-stdio agent is a misunderstanding worth reporting, not a typo worth ignoring. A key that silently does nothing is how a file stops matching the behaviour somebody believes it has.
  • id must be unique within the profile.
  • The loader resolves keyring: references eagerly, so a missing credential is reported when the profile loads rather than mid-turn. keyring:<name> means this profile. keyring:<profile>/<name> means another one and additionally needs allow_cross_profile = true. Every resolution of that reference logs a warning. The entry lives in the OS keyring under the acpilot service, with the account <profile>/<name> in both forms. The same line therefore means two different secrets in profiles/work and profiles/personal.

A file that fails any check does not load at all. A profile whose file fails to reload keeps the agents it already had. The old snapshot is only replaced by a complete, valid file.

Vibecoded, on purpose. While I am a software developer, I lack the time to hand-code all my ideas, and as a result this project is vibecoded withFreebuff.