← Back to all posts
engineeringworktrees

Run agents in parallel without losing the thread

How Coldtea keeps several agents working at once, each in its own worktree, without turning review into chaos.

Favour Ohanekwu
1 min read

Running one agent is easy. Running four at once, on the same repository, is where most setups fall apart: branches collide, working trees get clobbered, and you lose track of which change came from where.

Coldtea gives each agent its own git worktree. The agents share history but never each other's uncommitted files, so two of them can work on the same module at the same time without stepping on one another.

One pane per worktree

Each worktree opens in its own terminal pane. You see every agent's live output side by side, and the pane label tracks what that agent is actually doing rather than a generic running spinner.

Review stays per-change

Because every agent commits to its own branch, review happens one change at a time. You read a focused diff, leave feedback in the editor, and the notes route back to the agent that owns the branch. Parallelism speeds up the work without blurring who did what.