Many agents, one score.
You are the Kapellmeister.
A terminal workspace for a team of coding agents.
They play. You direct.
npm$ npm install -g kapelle
pnpm$ pnpm add -g kapelle
bun$ bun add -g kapelle
from source · no build step$ git clone https://github.com/EdwardLiuyc/kapelle.git $ cd kapelle && npm install && node cli.ts --help
try it · no agent, no account# a room with an offline demo agent $ kapelle demo
rooms«
○docs-pass
○writerpi
fix-issue-312
3 agents
3 agents
you
go
po → dev
Build #312 on your branch: add --json to kapelle ps, with a test for each status. Commit when the tests pass.
dev
▸ 9 tool calls · Edit cli.ts +48 −6 · npm run test ✓
Done. kapelle ps --json prints one object per run. 4 tests added, all pass. Committed a1f9c2e.
po → rev1
Run review-local for #312 on your branch. Commit each fix.
▎◐rev1Read core/run.ts · 0:38
▎◐pothinking · 0:04
›
~/src/kapelle
→ po auto · ctx ~14%ctrl+o menu · ctrl+t rooms · ctrl+x view
01 why kapelle
An ensemble, not another agent.
you
You direct
Nothing lands in your checkout until you take it.
agents
Agents play
Different vendors, one room. kapelle never touches a key.
worktrees
Each its own part
One worktree and one branch per agent.
02 loop
Hand the loop to a lead. Keep every decision.
- 1pick updevyour choices
- 2builddevgate ✓ · commit
- 3reviewrev1fixes committed
- 4review againrev2a second, full pass
- 5PR + botdev3 rounds at most
- 6hand overyouyou merge
rooms«
●fix-issue-312
●po★1claude · orchestrator
○docs-pass
○writerpi
fix-issue-312
1 agent
1 agent
you
/loop fix-issue 312
po
▸ 4 tool calls · gh issue view 312 --json · kapelle room info
Plan for #312, from the fix-issue recipe
1. dev (claude) picks up the issue. Its open choices go to you.
2. After "go": dev builds it and commits when the gate passes.
3. rev1 (pi) reviews dev's branch. I land its fixes.
4. rev2 (pi) does a second, full review.
5. dev opens the PR and answers the bot. 3 rounds at most.
6. Hand-over: you read the PR and merge.
Say "go" to start.
› go
~/src/kapelle
fix-issue-312 · timeline · po auto · ctx 9%ctrl+o menu · ctrl+t rooms · ctrl+x view
plan firstno work before "go"in plain sightpo → dev, in your timelineevery choicestops and asks youturn cap40 orders · /cap <n>
youhold the baton
/loop fix-issue 312poleadplans · hands out · asks you
kapelle room senddev
⎇ p-myzvrev1
⎇ p-t798rev2
⎇ p-4kq2kapelle mergeyou decideyour checkoutuntouched until you take it
03 recipes
Write the loop in your own words.
A recipe is a Markdown file. Only the lead reads it.
fix-issue.mdstarter.md.kapelle/loops/
# fix-issue ## The team | Name | Harness | Role | | dev | claude | developer | | rev1 | pi | reviewer | | rev2 | pi | reviewer | ## The steps 1. Pick up. dev runs pickup-issue. 2. Build. After "go": dev builds it. 3. Review 1. rev1 runs review-local. …
$ kapelle loop list fix-issue .kapelle/loops/fix-issue.md starter …/kapelle/assets/loops/starter.md $ kapelle loop fix-issue 312 # a note for this run, and a pi lead $ kapelle loop fix-issue 312 "skip rev2" --agent pi
04 worktrees
Every agent plays its own part.
One worktree and one branch per agent. Your uncommitted changes never reach them.
you
masterpo
…/p-1ti0u5ixdev
…/p-myzvyp6prev1
…/p-t798yhxc commit your merge
05 ask mode
You answer what they ask.
See the diff before it is written. Deny comes first, so a stray Enter says no.
rooms«
?fix-issue-312
○po★claude · orchestrator
?dev0:52claude · developer
○rev1pi · reviewer
○docs-pass
○writerpi
dev changed
cli.ts +54 −7
tests/cli.test.ts +61
cli.ts +54 −7
tests/cli.test.ts +61
rev1 → po
▸ 14 tool calls · Read cli.ts · Read core/run.ts
1 finding: --json prints startedAt as local time. Fixed in b27e4d0. Commits reviewed: a1f9c2e.
po → dev
rev1's b27e4d0 is now on your branch (kapelle room ff). Judge the fix.
dev
The fix misses the --json path for an empty list. Writing it to cli.ts.
? dev asks to write cli.ts +6 −1
@@ -212,6 +212,11 @@ function ps(args)
- printTable(runs);
+ if (args.json) {
+ print(JSON.stringify(runs.map(toJson)));
+ return;
+ }
› 1 deny 2 allow 3 view diff · Enter answers
›
~/.local/state/kapelle/…/dev · kapelle/room-…-q8ac/p-myzvyp6p
fix-issue-312 · dev ask · ctx 21%ctrl+o menu · ctrl+t rooms · ctrl+x view
06 daemon
Rooms always stay.
$ kapelle # starts the daemon # close the terminal; tomorrow: $ kapelle chat attach <roomId> # or on another machine, by SSH $ kapelle daemon key add ana --label laptop
07 setup
It finds your agents.
$ kapelle setup pi ready claude ready codex needs codex-acp kimi not installed
08 runs
Many tasks at once.
$ kapelle run --file tasks.json --detach $ kapelle ps $ kapelle merge <runId> --squash
09 agents
Agents speak ACP.
pithe defaultclaudeClaude CodecopilotGitHub Copilot CLIopencodeopencodecodexCodex CLIkimiKimi Code CLI--cmd "…"any ACP agent
10 limits
What kapelle does not do.
No model of its own
The agents do the work.
No sandbox
A mode is a filter, not a wall. pi never asks.
No keys
Each agent logs in by itself.
No back channel
Every message goes through your timeline.
No merge behind your back
Work stays on branches until you take it.
No cloud
Your machines, your daemon.
11 get involved