# A coding-agent delivery fleet Source: https://customlabs.io/architectures/agent-delivery-fleet/ Updated: 2026-11-30 Architectures / 06 A control plane for running many coding agents at once. Each agent works one task in its own worktree. You see what each task costs. Updated November 30, 2026 · First published August 9, 2026 7 min read What the buyer says “We already run several coding agents. It has turned into a wall of terminal tabs. We have no idea what it costs.” Shape ## What does the system look like? A task enters the registry. One session claims it and works it in an isolated worktree. A bounded agent runs the task, and its cost rolls up to one ledger. CI gates the result before a human reviews it. The registry closes the task after merge and verify. Flow ## How does a request move through it? - A task enters the registry Work is defined once, in a shared registry. It is not assigned informally across terminal sessions that nobody else can see. - One session claims the task Starting a session is the claim. Each session gets its own worktree and branch. When two sessions touch the same files, both get a warning. The warning does not block work. - The agent works inside its own bounded loop Each agent runs in its own branch or worktree. It follows the same step, token, and time budget discipline as any other bounded agent loop. - Cost rolls up per task Every run reports its spend back to the task it served. Cost becomes a query by task, repo, or agent. Nobody rebuilds it from a provider invoice. - CI gates before a human ever looks Lint, tests, and eval checks run before the diff reaches a reviewer. A failure routes back to the agent. It does not enter a person's queue. - A human reviews, then merge triggers verify A person still reviews the diff. Merging starts a verify stage. That stage checks that the change shipped what it claimed. The result closes the loop in the registry and the delivery record. Components ## What are the pieces, and what breaks without each one? ### Task registry Hold the single, shared definition of what work exists and its current state. It does not depend on the machine an agent runs on. Breaks without it: Visibility into the fleet degrades into a wall of terminal tabs. Nobody has a shared view of what each agent does. ### One claim per task Allow one live session per task. Give each session its own worktree and branch. Warn both sessions when they touch the same files. Breaks without it: Two sessions work one task, or two agents share a checkout. The first sign is a lost edit or a merge conflict. ### Bounded coding agent Work one task inside its own branch or worktree, under an explicit step and time budget. Breaks without it: One stuck agent can burn far more compute and time than the task warrants. Nothing forces it to stop. ### Per-task cost ledger Attribute every run's spend to its task. Roll the spend up by task, repo, or agent. Breaks without it: Spend is as scattered as visibility. No single place shows what a task cost until the invoice lands. ### CI gate Run lint, tests, and eval checks on every agent-produced diff. A human sees the diff only after the gate passes. Breaks without it: Reviewer time goes to mechanical problems that a gate should catch. The reviewer has less time to judge the design decision. ### Human review & verify Review the diff. After merge, confirm that the change shipped what it claimed. Breaks without it: A pile of unreviewed agent-produced PRs is not delivery. It is a bigger, less-trusted backlog than the one it replaces. Build vs. buy ## Which choices need a decision? Decision Default choice Why Fleet control plane Adopt an existing task registry and coordination layer. Do not build your own from scratch Isolating many agents across machines with no shared filesystem is hard to get right. CodeHerder is our own answer to it. It is one option among several. CI and test infrastructure Extend the existing pipeline with agent-specific gates. Do not stand up a parallel one A second, separate pipeline for agent-produced code means two things to keep in sync. One gate that everyone trusts is better. Review process Human review on every PR before merge. Use a sampled review only after the fleet has a real track record Sampled review needs evidence of what an agent gets wrong and how often. Without that evidence, you find the gap in a production incident. A code review comment would have found it sooner. Cost accounting A per-task ledger. Avoid per-machine or per-seat billing rolled up after the fact Per-machine billing tells you what the fleet cost in total. It does not tell you which task or agent drives the number up. Cost ## What drives the bill? - Agent compute and token spend per task - CI runs per task, including retries on a flaky or failing gate - Human review time per PR. It does not shrink when an agent writes the diff Dominant cost Agent compute and token spend, once a fleet runs many tasks at the same time. Without per-task attribution, one undifferentiated provider invoice hides it. The lever A per-task cost ledger shows where spend concentrates. The same bounded-loop discipline caps any single agent's worst case. [Model your own numbers with the AI Cost Calculator →](https://customlabs.io/tools/cost-calculator/) Evals ## How do you know it works? [Golden-set gate in CI on every agent-produced change](https://customlabs.io/evals/#golden-set-ci-gate) The same regression gate that a human-written change gets. Apply it to all agent output. [Cost per completed task](https://customlabs.io/evals/#cost-per-completed-task) Attributes spend to the task that drove it. An average across the fleet hides that. [Terminal-state rate across the fleet](https://customlabs.io/evals/#termination-rate) Tracks what share of agent runs finish in a defined state. The rest stall or loop. Security ## What will your reviewers ask about this? [Enforced budget per agent run](https://customlabs.io/security-review/#risk-bounded-loop) A step, token, and wall-clock ceiling per task. Any bounded agent loop needs this discipline. Apply it to each agent in the fleet. [Scoped credentials per agent](https://customlabs.io/security-review/#infosec-blast-radius) Each agent holds only the repository and tool access that its current task needs. No standing credential covers the whole fleet. [Named accountable owner per task](https://customlabs.io/security-review/#risk-accountability) Every task has a specific person accountable for what merges. "The fleet" is not a person. References ## Which patterns and failure modes tie in? Patterns this leans on [Bounded agent loop](https://customlabs.io/patterns/bounded-agent-loop/) [Golden-set gate in CI](https://customlabs.io/patterns/golden-set-gate-in-ci/) [Trace-first observability](https://customlabs.io/patterns/trace-first-observability/) Failure modes it guards against [Unbounded agent loop](https://customlabs.io/failure-modes/unbounded-agent-loop/) [Retry-amplified spend](https://customlabs.io/failure-modes/retry-amplified-spend/) Time to first production ## How long does a first version take? 3-6 weeks to run one small fleet on one repository end to end, from task claim to merged PR. Plan for longer once the fleet spans multiple repos and machines. Not for you if ## When is this the wrong shape? - One or two engineers already run one agent each. They have no coordination problems. A fleet control plane solves a coordination problem you do not have yet. - Nobody is willing to review the diffs a fleet produces. A pile of unreviewed agent-produced PRs is a bigger backlog. It is not delivery. - Your CI is not fast or reliable enough to gate a task before a human sees it. Fix that first. Otherwise every agent-produced PR adds noise to a gate that already leaks. ### Sources - [Google DORA - DORA Research](https://dora.dev/research/) The research programme behind the delivery metrics our release and delivery pages measure. Retrieved 2026-08-24. - [Google DORA - DORA Capabilities Catalog](https://dora.dev/capabilities/) The capability list this research associates with high-performing delivery teams. Retrieved 2026-08-24. Related reading [CodeHerder](https://customlabs.io/products/codeherder/) [The Agentic Delivery Playbook](https://customlabs.io/agentic-delivery/) [The Delivery Record](https://customlabs.io/delivery-record/) [Architecture Picker](https://customlabs.io/tools/architecture-picker/) Not sure this is the right shape yet? A Ship Audit checks which of these an existing or planned system needs. It ranks them by what is most likely to break first. [Book a Ship Audit →](https://customlabs.io/diagnostic/ship-audit/)