Shaf Lab

Coding agent orchestration

Running and steering many coding agents at once, each isolated, tracked, and reviewed from one place.

Coding agent orchestration is the layer that lets one person run many coding agents at the same time without losing track of them. The agents themselves, such as Claude Code, Codex, Cursor's agent, or OpenCode, do the reading and editing. The orchestration layer starts them, gives each one an isolated place to work, shows which ones are busy or waiting for an answer, and brings their changes back for review. Builders reach for it as soon as one agent at a time stops being enough.

Tools in this space take a few recognizable shapes. Terminal tools keep each agent in its own long-lived terminal and add status on top, in the tradition of tmux. Desktop and web control planes, such as T3 Code, wrap the agents you already have in a graphical interface with threads, diffs, and pull request buttons. Kanban-style tools turn each task card into an agent workspace. Cloud services run the agent on someone else's machine entirely. Most mix two or more of these, and most drive existing agents rather than replacing them.

The hard problems are the same in every shape. Work must be isolated so two agents do not edit the same files, usually with one Git worktree or container per task. Sessions must survive a closed laptop or a dropped connection. The person in charge needs a quick way to see which agent is blocked on them, and a review step that makes reading many diffs bearable. Credentials and permissions need care too, because each additional agent is another process acting with your access.

Orchestration raises throughput only when the work splits cleanly and review keeps up. Start with two or three agents on independent tasks with clear tests, and add more only when you are consistently waiting on agents rather than the other way around. If review becomes the bottleneck, the next step is better checks and a more structured pipeline, which is where orchestration grows into a code factory.

Parallel coding agents

Running several coding agents on separate tasks at once, each in its own worktree, branch, or container.

Parallel coding agents work on separate tasks at the same time, each with its own copy of the code. The common mechanism is one Git worktree and branch per agent, which is cheap and shares the repository's history, though every worktree still needs its own dependencies, ports, and environment files. Container-per-agent setups go further and isolate the file system, network, and installed tools, at the cost of slower startup unless images are cached.

Parallelism pays off for independent work: separate bugs, separate features, or several attempts at the same problem so you can keep the best one. It backfires on overlapping changes, which turn into merge conflicts, and on tasks that need a shared, evolving plan. Partition the work up front, give each agent a narrow brief and a test command, and merge through normal pull requests.

Agent session management

Keeping coding agent sessions alive, named, resumable, and organized across restarts and devices.

Agent session management covers the life of each agent run: starting it in the right project, keeping it running when you close the client, finding it again later, and resuming or forking it after a restart. Some tools persist the live process in a background server so nothing stops when you disconnect. Others persist the conversation and resume it in a fresh process, which survives reboots but not in-flight commands.

Good session management makes sessions easy to name, group by project, search, and archive, and keeps each session's diff, terminal output, and history together. It also needs clear cleanup, so finished sessions release their worktrees, ports, and background servers instead of piling up.

Agent status signals

Indicators that show whether each running agent is working, blocked waiting for a person, done, or idle.

Agent status signals tell you, at a glance, which of many agents needs attention. The useful states are working, blocked waiting for approval or an answer, done, idle, and failed. Without them, running several agents means cycling through terminals to find the one that has been waiting on a permission prompt for twenty minutes.

Tools get status in two ways. Some infer it by recognizing a known agent and reading its screen or logs, which works out of the box but can guess wrong. Others rely on the agent reporting its own state through a hook, an API, or a terminal escape sequence, which is precise but needs agent support. Pair status with notifications to your desktop or phone so a blocked agent reaches you instead of waiting to be found.

Remote agent control

Steering coding agents that run on one machine from another device, such as a phone or browser.

Remote agent control lets agents run on a desktop, home server, or rented machine while you watch and steer them from somewhere else: a laptop, a browser, or a phone. The machine doing the work stays on; the remote device sends prompts, approves actions, and reviews diffs. This turns waiting on an agent into something you can do away from your desk.

Connections usually run over a local network, a mesh VPN, an SSH tunnel, or a vendor relay that sets up an encrypted tunnel without port forwarding. Treat any remote surface as a door into a machine with your code and credentials: require strong sign-in, approve new devices explicitly, keep the agent's permissions narrow, and prefer approving risky actions over letting them run unattended.

Background coding agents

Coding agents that run unattended in a cloud or remote environment and return a branch or pull request.

A background coding agent takes a task, runs on a machine you are not watching, usually a cloud container or virtual machine with a copy of the repository, and comes back with a diff, branch, or pull request. You can start one from a web app, a chat message, an issue label, or an API call, and close your laptop while it works. Services from model providers and editor vendors offer this, and some tools let you hand a cloud task back to your local machine to finish.

Background agents suit well-specified tasks with good automated tests: small bugs, dependency updates, test coverage, and refactors that follow a pattern. They are weaker when a task needs local services, secrets, or frequent judgment calls. Give the environment a setup script so dependencies install reliably, keep its network and credentials minimal, and review the resulting pull request as you would any outside contribution.