Write a task list. Go to bed. Wake up to tested, merged commits.
Your phone asks what the agents need from you. Your desktop shows three of them at work.
agent-runner runs several coding agents at once on one git repo and a markdown task list. Each agent takes a task in its own worktree; the runner tests its branch, merges it and starts the next. You follow it all from a web page on your phone or computer.
- Parallel without chaos. Tasks that touch different files run side by side; tasks that share files, or wait on each other, never do.
- Nothing untested reaches
main. Every finish and every merge goes through your test gate. A conflict gets a fix session, a broken merge a repair session; anything else waits for you. - Run it from anywhere. One link reaches every project on the machine, from any phone or laptop on your network or tailnet. Several machines can work through the same plan at once.
- Lean sessions. Each agent starts from a short brief of its own task, not the whole plan: about 40% less context and half the tokens.
- Hands-off. Usage limits, network drops, reboots and runaway tests are handled: work is paused, resumed or picked up again, never lost.
- Zero setup. Python 3.11 standard library only, one optional
runner.toml. Sessions run on Claude Code by default, or on other providers such as GitHub Copilot (Other providers).
uv tool install git+https://github.com/FIZL0/agent-runner # or: pipx install git+https://…
agent-runner home install # Runner Home: one always-on page for this machine; prints a link and a QR code
agent-runner demo # an example project to try it on (~/agent-runner-demo); starts no agent; Home lists itOpen the link (scan the QR code on your phone), open the example project, and follow its walkthrough: it shows Home, the queue, a question waiting for you, and how to start the run. Then, in your own repo:
cd your-repo
agent-runner setup # backs up uncommitted work, writes runner.toml, and a session writes the test gate and a first plan
agent-runner # opens Runner Home: tap your repo, then Start the runand press Start the run on its page. agent-runner demo --remove takes the example away again.
Installing into an existing repo, Windows, and wrapping it from your own CLI are in docs/SETUP.md.
Each project has a run app: one page, laid out for a phone and for a desktop.
What the agents wait on, with answer buttons. One tap answers.
Ask about the run, queue a task or have one done now.
What each agent works on and what merges. Up next below it is the queue: drag to reorder.
Talk, Concepts, Tools and Settings are in the same sidebar.
Runner Home (agent-runner home install): one page per machine for every project's run, from any device
on your network or Tailscale. Never expose it to the internet. More in
the reference.
The runner keeps a number of slots busy (3 by default). A slot is one agent on one task, in its own git worktree and a hidden terminal.
plan/TODO.md
│ pick the first task that may start
▼
slot N: worktree on task/<ID>, the agent works
│ the agent runs `agent-runner done <ID> "msg"`: tests → tick → commit → push task/<ID>
▼
merge worktree: main + task/<ID> (+ other finished branches)
│ a conflict → fix session · tests fail → repair session · tests pass ↓
▼
main moves and is pushed; the slot picks its next task
- Pick. A free slot takes the first task in
plan/TODO.mdthat may start: not blocked, not waiting on anafter:task, and not sharingfiles:with work still running or not merged. - Work. The agent starts from a short brief: the task's line, its long form, the files it names, and its newest journal entry.
- Finish.
doneruns your test gate, ticks the task, commits and pushes the branch, and refuses while the tests fail. An agent that needs you asks (ask,done --blocked), and the question shows under Needs you. - Merge. Merges are built in a separate worktree, so your checkout never holds an untested merge.
Finished branches waiting their turn ride along in one test run. A conflict goes to a short fix session,
a failing merge to a repair session; a batch that still fails is split. A task that cannot land in three
tries is parked as
wip/<ID>for you. - Repeat. When nothing can start the run waits; what you add later starts without a restart.
With [run] approve, landed work waits under Needs you as a pitch you approve before it is pushed.
plan/TODO.md is ordinary markdown that you never edit by hand: a chat adds tasks with their files, and the
Work view orders them. Underneath it looks like this:
### Next (in this order)
- [ ] **P12** the parser reads nested lists | files: src/parse.py, tests/test_parse.py
- [ ] **P13** maps too | files: src/parse.py | after: P12
- [ ] **P13a** the empty map
- [~] **P14** a fuzz harness | files: tools/fuzz.py BLOCKED: needs both grammars[ ] open, [x] done (moved to DONE.md), [~] blocked. files: decides what may run side by side,
after: what waits for what; a long description goes in plan/tasks/<ID>.md. The rules for order are in
agent-runner help order.
Every key is optional, and most are on the Settings page. A typical runner.toml:
[run]
test = "make test" # the gate: run by every `done` and every merge
slots = 3
rules = "AGENTS.md" # the file every session reads first
shared_files = ["CHANGELOG.md"] # every task touches it: not counted as overlap
joinable = ["CHANGELOG.md"] # and its conflicts are joined line by lineagent-runner settings lists every key; all of them are in the reference.
For models Claude Code does not serve (GitHub Copilot, Codex and other logins), name the model as
<provider>:<model> in [models], e.g. code = "copilot:<model>", and log in once with
agent-runner login copilot (or from Settings). A project whose models all name another provider needs no
Claude Code at all. See docs/SETUP.md.
Measured over every slot session in opentennis and partyboard. Before: each session loaded the full
Claude Code setup and read the plan itself to find its task. After: a lean session ([run] lean, the
default) starts from its own brief.
| median per session | before | after |
|---|---|---|
| context at the first turn | 38k | 24k |
| peak context | 165k | 107k |
| tokens re-read over the session | 16.3M | 7.4M |
Before: opentennis, 212 sessions, 7–11 Oct 2026. After: opentennis and partyboard, 497 sessions, 19 Oct–16 Nov 2026.
agent-runner cost shows where the remaining tokens go, by kind of tool call.
Two brief features, on by default in every project ([plan] outline = "off" and [plan] lessons = false turn
them off):
- Maps. For each file over 300 lines that a task line names, the brief shows an outline (classes, functions,
headings, with line numbers), so an agent reads the ranges it needs instead of the whole file. Unset,
[plan] outlineuses the runner's owntools/outline.py; set it to your own command to replace that. - Lessons. What agents learned about a file (
plan lesson add "TEXT" --files A,B) is kept inLESSONS.mdand shown in the brief of any task that names that file.
Measured against the 2026-11-24 baseline (start context 40k, 69k at first edit, 11 calls before the first edit, peak 94.6k median, 1.75M billed input per worker session): context fell about 4x within a week. Sed, grep and cat reads are still about 80% of tool output, so maps keep paying. See docs/research/R20-context-savings.md.
- Small tasks that name their files. One session, one task, one commit; split anything bigger.
- A real test gate.
[run] testis the only thing between an unattended agent andmain. - Keep the rules file small. It is re-read on every turn of every session;
agent-runner contextshows what each session loads. - Say it, don't fix it. Tell a chat what you saw in your own words; it finds the files and queues the task for the next free agent. Say "do it here" when you want it done in that chat now.
- Start small. One or two agents first. Usage limits are per account: five agents spend them five times as fast, and the weekly and 5-hour caps in Settings hold new tasks before you run out.
- opentennis: a PS2 game remaster, one PCSX2 per slot.
- partyboard: a Mario Party 4 port with online play.
- ps2-decomp-kit: a PS2 decompilation kit, wrapping it
as
./kit run. - openmx: a PS2 game port built on the kit.
| docs/SETUP.md | installing, Windows, other providers and logins, adding it to a repo, wrapping it from your own CLI |
| docs/REFERENCE.md | the run app, Runner Home, picking, merging, claims, every command and setting |
| docs/STYLE.md | how the run app looks, moves and speaks: read it before changing the page |
| CHANGELOG.md | what changed in each version |
Upgrade any time with agent-runner upgrade: a run that is up restarts on the new version and keeps its work.




