Workers and worktrees
How o8 runs agents: each worker gets its own git worktree, and every agent CLI sits behind one adapter contract.
o8 runs agents as workers. A worker can write code, review a diff, or fix what a review found.
From a task to a merge
- Plan. The lead agent reads the task and breaks it into packets. Packets that do not depend on each other run at the same time.
- Isolate. Each worker gets its own git worktree on a new branch. Main is never touched.
- Run. The chosen runtime starts the worker and streams its output and events into the lane. You can watch, steer, stop, retry or rerun it.
- Pass context on. When a worker finishes, its summary and changed files go into the briefs of the packets that depend on it.
- Review. The diff goes through the review loop.
- Merge. The approved commit merges, and the outcome is recorded.
One worker, one worktree
A worktree is a separate working copy of the same repository. It gives each worker its own directory and branch, so two workers on different tasks never overwrite each other, and a worker that goes wrong can be removed without touching anything else. Workers stay inside their own lane's branch, notes, questions and inbox.
On macOS, dispatched workers also run in an operating-system sandbox by default. The security policy lists what the sandbox does and does not cover.
Runtimes
o8 does not talk to any one coding agent directly. It talks to one adapter contract, and each agent CLI is an adapter behind it. o8 finds the CLIs you have installed, and setup shows which ones are ready on your machine.
| Lead or worker | Worker |
|---|---|
| Claude Code, Codex, OpenCode | Gemini, Cursor, Grok Build, Pi, GitHub Copilot CLI, Crush, Aider, Goose, Kimi Code, OpenHands, Qwen Code, Qoder and others |
The lead and the worker are separate choices. One runtime can hold the goal while a different runtime and model does each packet. Readiness differs by CLI version, so check the picker in the app for what works on your machine. Adding a runtime is a small documented patch: see the adapter contract.
Heavy work is queued
o8 budgets machine load. Heavy worker steps wait in a queue when the machine is busy.