How to work with Agentcapo
Twelve short guides, in the order you will need them. The command-line tool is called agentcapo. Everything shown here can also be done in the web app.
Install and open the web app
You need a Linux server of your own with Node.js 22 or newer, tmux and git. Your repository is checked out on that server.
- Run the install script that comes with your subscription. It installs the service and the command-line tool.
- Start the service:
agentcapo server start - Open the web app in a browser on your private network:
http://your-server:3777. On a phone, add it to the home screen; it works as an app. - Check that the service answers:
agentcapo status
The web app is meant for your private network, for example over a VPN. Do not put it on the open internet.
Add your people
Each person signs in with a personal token and has a role: admin (everything), developer (works with agents and changes) or observer (reads only).
agentcapo user add maria --role developer
agentcapo user add tom --role observer
agentcapo user set-role maria admin
The token is shown once, when the user is created. Give it to that person privately.
If several people bring their own agent accounts, give each person a profile and log it in once. Agentcapo then runs each person's agents on that person's account only:
agentcapo profile login maria claude-code
Bring in your agents
Adopt agents that are already running
Agentcapo looks at the tmux sessions on the server and takes over the ones you name. The agents are not stopped or restarted.
agentcapo scan
agentcapo adopt frontend-1 --runtime claude-code
agentcapo adopt api-1 --runtime codex --name api-builder
Start new agents
A new agent gets its own session and its own working folder.
agentcapo spawn --name reviewer-1 --runtime codex
agentcapo spawn --name tests-1 --runtime aider
See them
agentcapo agents
agentcapo logs frontend-1
In the web app, each agent has a card with its state and a live, read-only view of its terminal.
Describe your project
A project is one repository with its own pipeline. You describe it in the configuration file. Every step of the pipeline is a switch, and every switch is off until you turn it on. Turn them on one at a time, in this order:
- Tests. Tell Agentcapo how to hand a commit to your test system and how to read the verdict.
- Review. Set the round limit and whether one reviewer stays with a change.
- Merge queue. Set how many changes may share one test run.
- Releases. Turn on packaging and say where the release briefs are written.
- Production. Give the address where your product reports its version.
projects:
shop:
repo: /srv/shop
main_remote: origin
main_branch: main
pipeline:
review_round_limit: 3
sticky_reviewer: true
merge_queue:
train_max: 3
release_package: { enabled: true, auto: false, brief_dir: /srv/inbox }
production_version_url: https://shop.example/api/version
Restart the service after a change to the configuration. It is read once, at the start.
Hand out work
By hand, to one agent
agentcapo send api-builder "Add paging to the orders list. Tests first."
Into the queue, for the next free agent
agentcapo queue "Fix the rounding in the VAT report" --priority 2
agentcapo tasks
From a ranked backlog
Add what you want built to the backlog and put it in order. When a slot and an agent are free, the highest-ranked item starts by itself.
agentcapo work add "Export invoices as PDF"
agentcapo work list
agentcapo rank 377 top
From your request board
With a request board connected, Agentcapo reads new requests and proposes what to do with each: ready, split, decide, not here, or duplicate.
agentcapo triage
agentcapo triage approve 377
agentcapo split
agentcapo split approve 381
triage approve lets a request that was proposed as ready start through the queue. split shows the plans for requests that are too big for one piece of work, and where each part stands.
Keep work in progress small
Set a limit on how many units may be in work at once. A unit is one request with all its changes. Start low: a crew that finishes five things beats one that has thirty open.
agentcapo wip
This shows the units in work against the limit, the orders waiting for a slot, and what is parked. To set a change aside on purpose, park it; it then stops its tests and no longer counts:
agentcapo lane park wc-api-builder-orders-paging --note "Waiting for the new API"
agentcapo lane continue wc-api-builder-orders-paging
Follow one change
A change lives in a lane: one branch, one agent. This is the road it takes, and what you can ask at each stop.
- The agent builds in its own folder and says when the change is ready.
- Agentcapo freezes the change at that exact commit and hands the commit to your tests.
- A second agent reviews it. On PASS it goes on; on findings it goes back to the author for a new commit.
- The merge queue tests the merged result and merges it, or bounces it with the reason.
Ask what a change is waiting for, who owns that step and what is running:
agentcapo why wc-api-builder-orders-paging
Ask whether an exact commit is green:
agentcapo gate-status 4f2a9c1e
See the reviews that wait for a person:
agentcapo review
When a change is stuck
A test is red
The verdict stands for that commit. The author fixes it and commits again; the new commit is tested. Agentcapo reruns a test only where reruns have helped before. If you think the test is wrong, fix the test in a commit of its own.
Review keeps sending it back
After the round limit the change goes on hold: no more reviews, no more test runs. Look at what is held, decide what must be fixed, and lift the hold with a note. The note goes to the author.
agentcapo lane held
agentcapo lane continue wc-api-builder-orders-paging --rounds 2 --note "Only the paging bug blocks. Leave the naming."
Nobody is working on it
This lists changes that wait on a person: sent back or red with no fix, on hold for a ruling, or gone stale, with the state of the agent that owns each.
agentcapo lane waiting --hours 4
An agent does not answer
Send it a message. Agentcapo records whether it arrived, types it in when the agent is free, and tells you if it could not be delivered.
agentcapo msg api-builder "The orders API changed. Rebase before you go on."
Cut a release and give the GO
- See what is ready. Releases are cut from the newest green commit of main. Each is a record with its number and what it holds.
agentcapo releases - Or name the commit yourself. Agentcapo starts its test run at once and asks for the full release suite when that is green.
agentcapo candidate 4f2a9c1e --note "December release" - Read the brief. The package, its test run, what it adds, the database changes and the serious findings still open inside it.
agentcapo release 2.14.0 brief - Check what a GO would meet, without giving one.
agentcapo release 2.14.0 check - Give the GO. A named approver gives it in the web app, with a passphrase or a release token. Your own deploy step then deploys the package.
- Production is recorded. With the version address configured, Agentcapo sees the new version within two minutes. Without it, record it by hand:
agentcapo prod-sha 4f2a9c1e0b7d4c2a9e8f1a6b3c5d7e9f0a1b2c3d
To ask whether any commit may go to production at all:
agentcapo deployable 4f2a9c1e0b7d4c2a9e8f1a6b3c5d7e9f0a1b2c3d
The answer is yes only if the commit is on main, contains what production runs, and the tests are green on that exact commit.
Ship a hotfix
Sometimes one fix must go out today and main is not ready to ship. A hotfix package is built on the version production runs, with only the named fixes on top.
- The fix is built, tested and reviewed in its own lane, like any change.
- An agent builds a release branch on the production commit, picks the fix onto it and sets the version.
- Agentcapo lists the package with what it stands on, which requests it holds, and its last full test run.
- A named person gives the GO; your deploy step deploys it; Agentcapo records the new production version.
- The requests in the package show as live, with a note if a change under the same number is still open.
Hotfix packages are on the pipeline screen under the releases, and in the release status file.
See where every request stands
agentcapo requests
agentcapo requests --stage on_main
agentcapo requests --stage in_production
The ledger places every request by Agentcapo's own records: no work, in work, partly on main, on main, in a release, in production. It also names the requests that have all their work in production, which you can close on your request board, and counts how many went live per day.
In the web app, the pipeline screen shows the same: what is live, what is merged and not in production yet, and what has a fix live while other work under its number is still open.
Notifications and other tools
Notifications
Turn on web push in the web app on your phone, or set an ntfy topic or a Telegram bot in the configuration. You are told when a task finishes or fails, when a review waits, and when an agent stops.
Persona tests
A tester agent can play a kind of user in a real browser on your staging system and report what it met:
agentcapo persona list
agentcapo persona run new-customer-first-invoice
agentcapo persona status
Other tools and agents (MCP)
Other tools can read the pipeline through MCP: wait for an event, read a release and its brief, or check what a GO would meet. Local tools start it with:
agentcapo mcp
Remote tools use the service's /mcp address with a personal token. Give such a tool its own user with the role it needs, and nothing more.