Getting started
A 5-minute walkthrough from npm install to a running swarm.
Getting started
A 5-minute walkthrough from npm install to a running swarm.
1. Install the CLI
npm i -g @agentproto/cli
agentproto --version
# → agentproto 0.1.0-alphaThe binary is named agentproto. --help (no args, or -h) prints
the verb list.
2. Install your first adapter
Pick an adapter — the canonical set is claude-code, hermes,
opencode, gemini-cli, goose. Each is published as
@agentproto/adapter-<slug>.
agentproto install claude-codeWhat this does:
- Resolves
@agentproto/adapter-claude-codefrom npm (you can install the adapter package separately first; otherwise the install verb expects it on the resolution path). - Runs the adapter's declared install pipeline —
npm i -g @anthropic-ai/claude-code, or abrew,curl,download, etc. step depending on the manifest. - Runs the adapter's post-install
setup[]pipeline if it has one (skip with--skip-setup).
If the underlying CLI is already installed and the manifest's
version_check answers, install short-circuits and reports
already installed. Pass --force to re-run anyway.
Full flag reference: verbs/install.md.
3. Run a single turn
agentproto run claude-code --prompt "Summarise the README in this repo."run spawns the adapter, sends one user turn, streams the response to
stdout, then exits. Useful for scripting and smoke-testing.
Pipe a prompt over stdin instead of --prompt:
git diff | agentproto run claude-code -p "Review this diff."Use --json for one JSON event per line (text-delta, tool-call,
tool-result, turn-end, error). See verbs/run.md.
4. Run your first swarm
Swarms need a manifest. The reference standard profile drops one
ready-to-edit example next to a Claude Code scaffolding:
agentproto install runtime-profile/standardThis copies .claude/agents/reviewer.md, .claude/hooks/…,
.claude/commands/ap-swarm.md, and an example manifest at
.claude/examples/swarm-local.md into the cwd. Re-runs are idempotent
via a ledger at ~/.agentproto/profiles/standard.json.
Adapt the example into a real manifest at .runtime/multi-agent.yaml,
then:
agentproto run-swarm --manifest .runtime/multi-agent.yaml --verboseThe kernel runs cycles — read substrate → dispatch → execute → append —
until you Ctrl-C. See verbs/run-swarm.md and
concepts/swarms.md.
5. Add a plugin
Built-ins (file, mention, fs, agent-cli) cover local file-mode
swarms. To use a transport-backed substrate (e.g. Guilde), install
its plugin:
agentproto plugins install @guilde/agentproto-bridge
agentproto plugins listA plugin extends the kernel's kind registry — new substrates,
dispatchers, executors, or state stores. See
verbs/plugins.md and
concepts/plugins.md.
What's next
- Persistent sessions you can detach + reattach:
verbs/sessions.md - Hosting your CLI for a remote agent over a tunnel:
verbs/serve.md+verbs/auth.md - Running the daemon as a managed service:
verbs/daemon.md
`agentproto` CLI
The agentproto binary is the reference host for AgentProto agent-CLI adapters. It installs adapter packages (claude-code, hermes, opencode, gemini-cli, goose, …), runs them locally for a single turn o
Adapters
An **agent-CLI adapter** is the npm-installable definition of how to drive a specific CLI agent — claude-code, hermes, opencode, gemini-cli, goose, and whatever your team ships. Adapters declare: