Several agents on one repo

Run several coding agents on one repo at once with oalo coord: a shared task board, a worktree per task, milestones that start work early, a merge queue.

oalo coord lets several coding agent sessions work on one git repo at the same time without stepping on each other: Claude Code, OpenCode, Codex or any other tool that speaks MCP, in any mix. One session plans the work as tasks on a shared board. You approve the plan. The others each take a task in their own copy of the repo, and a merge queue brings the finished work into your main branch once your tests pass.

It runs on your machine. The board is a file in your repo, so it needs no Oalo workspace and no sign-in.

What it does differently

  • Work starts before the task it needs is finished. A task names the milestones it will reach, such as auth-api. The moment its agent commits that part and signals it, the tasks waiting on it start from that commit, while it carries on with the rest.
  • Tasks are scheduled by the files they change. Each task declares the paths it may edit. Two tasks whose paths overlap never run at once, and the agent's editor tools are blocked outside its own paths.
  • You approve, the agents can't. Plans, merges you hold and requests for more scope wait for you, at your own terminal. The commands refuse to run from an agent's shell.
  • Any tool, one board. A Claude Code manager can hand tasks to OpenCode and Codex workers.
  • Shared things on your machine get turns: a port, the dev database, running migrations.

Set it up

You need the Oalo CLI (npm install -g @oalo-ai/cli, Node 18 or later) on macOS or Linux. Then, once per machine:

oalo coord install

That downloads coord for your machine (about 25 MB on macOS, 37 MB on Linux) and checks it against the checksum in the CLI package. Then, once per repo, from its folder:

oalo coord init
oalo coord hooks install
git add .oalo/coord.json .gitignore .claude/settings.json .mcp.json opencode.json .opencode
git commit -m "Set up oalo coord"

init creates the board and .oalo/coord.json, and picks your test command from the files it finds (npm test when package.json has a test script, mix test, cargo test, go test ./..., pytest). If it finds none, merges run no tests until you set test_cmd. The repo needs at least one commit. hooks install registers the board with Claude Code and OpenCode and adds the guards. Commit these files so sessions inside each task's copy load them too. .claude/settings.local.json holds this machine's folder for those copies and stays out of git. For any other tool, such as Codex, add an MCP server named oalo-coord that runs oalo coord mcp in its own settings.

If a fresh copy of the repo needs work before it runs (installing packages, creating a database), put it in an executable .oalo/setup and commit it. Coord runs it in each task's copy, and in the merge queue's copy before the tests, with OALO_PORT_BASE, OALO_PORT_SPAN and OALO_DB_NAME set, so each gets its own ports and database. It has 20 minutes; if it fails, the task is marked blocked and the manager told.

Run it

  1. Start a manager. Open a session in the repo and give it its role and the goal: "You're the oalo coord manager for this repo. Call manager_guide, then plan: the billing rewrite." The guide is the board's playbook for managers. It writes a short design, then each task's spec, what counts as done, the paths it may change and the milestones others can wait on, and submits the plan. oalo coord init prints this message and the workers' one.

  2. Approve the plan, in your own terminal:

    oalo coord approve plan
    

    It shows the design, each task and its paths, and asks you to type yes. It approves only what the manager submitted, unchanged since; anything newer waits for the next submission.

  3. Start workers. Open more sessions in the repo and tell each: "You're an oalo coord worker. Call task_next and follow the brief." Each gets a task, its own copy of the repo (a git worktree) and a brief. A manager can also start workers as its own subagents. oalo coord claim <task> prints one task's brief to paste into a session, but in Claude Code the guards only recognise tasks taken with task_next, so prefer that.

  4. Watch. oalo coord board lists every task and what it waits on. oalo coord view opens a live page of who changes which files and how they will merge. oalo coord events --follow streams everything.

  5. Merge. The manager merges finished tasks as they come in, or you run oalo coord merge --all. Nothing merges on its own: merge: auto only means no approval is needed.

How the agents find the board and each other

Coord doesn't start agents, and they don't need to be told where to look. hooks install registers the board as an MCP server named oalo-coord, so every session opened in the repo, or in a task's copy, has its tools. The board also tells each session what it is and the two roles; a session you haven't given a role asks you which it has.

Messages come without asking. Every reply a worker gets from the board carries its news: an answer to its question, a decision on its request, a change to work it builds on, and who is waiting on it.

In Claude Code and OpenCode, a worker that tries to stop while it holds a task is sent back to finish it, up to three times. In Claude Code, the manager also waits for its inbox when it stops, at no cost until something arrives, for as long as tasks are running (up to about an hour with nothing new). In OpenCode and other tools, the manager calls the board's wait tool instead.

The merge queue

One task merges at a time, as a merge commit into your main branch:

  • Only after what it builds on. A task whose work started from another task's milestone merges after that task has.
  • Only when the tests pass. Your project's test command runs on the merged result, then the task's own extra command if it has one. A task can add tests but never skip yours.
  • Failures go back. A conflict or a failing test returns the task to a worker with the output, the same way the manager's rejections do, and both count together. The first time, the task is held for the same worker for 15 minutes; the second time, any worker can take it; the third time, it stops and the manager tells you. It runs again when you've decided and the manager sets it back to ready.
  • Changes to coord itself wait for you. A task that changes .oalo/coord.json, .oalo/setup, or the hook and MCP settings waits for oalo coord approve merge <task>.

What only you do

These run only in your own terminal:

CommandWhat it does
oalo coord approve planStarts the submitted tasks
oalo coord approve merge <task>Merges a task that's waiting for you
oalo coord approve signal <task> <milestone>Releases a milestone, when you review them
oalo coord approve proposal <id>Gives a task more scope
oalo coord reject proposal <id>Says no to it

When an agent needs one of these, it tells you what is waiting and the command.

Settings

.oalo/coord.json, edited by you (the guards keep the agents' editing tools off it):

SettingDefaultWhat it does
main_branchyour current branchWhere finished work merges
test_cmdfound by initThe tests every merge must pass
mergeautomanual holds every merge for you
signal_reviewfalsetrue: you release each milestone
claim_ttl_s900A worker silent this long loses its task
port_base, port_span4300, 10The ports each task's copy gets

When something goes wrong

  • An agent stops or crashes mid-task. After 15 minutes without a call to the board, its task goes back on the board, the manager gets a report of what it committed, and the next worker carries on in the same copy.
  • A worker needs a file outside its paths. It asks, and the manager decides. A request for more scope comes to you.
  • oalo coord says it isn't installed (exit code 4): run oalo coord install. After a CLI upgrade, run it again.
  • Shell writes slip past the guards. The guards cover the agents' editing tools, not commands like sed -i. The merge queue still catches the damage as a conflict or a failing test.

Limits

macOS and Linux only, on one machine. The guards work in Claude Code and OpenCode; other tools rely on the merge queue. Copies of cancelled tasks stay in ~/.oalo/worktrees until you delete them.

oalo help coord lists every command and flag.

Related
Try it on your own Base

Sign up, install the CLI, and deploy your repo in a few minutes.

bring your repo