Skip to content

Single-agent vs multi-agent coding

Choose single-agent vs multi-agent coding with two worked examples and a worksheet for dependencies, ownership and integration checks.

An engineer studies a blueprint between one robot working on a linked assembly and two robots working at separate benches.
Keep linked work with one agent and split work with independent inputs. AI-generated conceptual illustration.

The first decision in single-agent vs multi-agent coding is whether the tasks can start independently. If an export's access rules are still changing, the agent writing its tests will keep chasing decisions made elsewhere. If two screens have independent bugs, two agents can work from the same approved plan and return separate patches.

The dependency test for single-agent vs multi-agent coding

List the decisions and resources each task needs. Include API contracts, database schemas and fixtures as well as files. Two tasks can touch different files and still depend on the same unresolved rule.

  • Keep one implementation owner when tasks change the same permission rule, migration or API contract. Run them in the order the decisions need to be made.
  • Delegate a read-only pass when you need a second opinion or a focused inventory of affected callers. Give the reviewer a specific question and a revision to inspect.
  • Run independent edits in parallel when each agent can start from the agreed base, own its files and verify its patch without waiting for another agent's output.

Anthropic describes parallel execution for independent tasks and separate perspectives. Its Claude Code guidance also calls out the cost of setting up context and passing work between agents. Use those patterns when the benefit is clear enough to justify briefing and reviewing each assignment. Building effective AI agents · Claude Code subagent guidance

Keep a tightly coupled fix with one agent

Consider a fictional order portal. A staff user can download another customer's export by changing an identifier in the download URL. The route, query and HTTP tests are separate files. All three depend on the same access decision: which account owns the export, and what response should an unauthorised user receive?

Have the owner settle that rule, then give one implementation agent the route, query and tests. Ask it to reproduce the failure with an existing export from another account, make the fix and verify both the allowed download and the cross-account denial. That keeps the query and the test expectations tied to the same decision.

A separate read-only reviewer can inspect the resulting diff for another path to the export. Give it the settled rule and the candidate revision so its findings refer to the branch you are reviewing.

Split work when both patches can start today

In another fictional portal, the orders screen drops its date filter when the user moves to page two. Separately, the invoice printer clips long billing addresses. Assume both behaviours are defined and neither fix needs a shared helper, stylesheet or fixture change.

  • Orders agent. Own the orders list and its pagination test. Show that the date filter survives the move to page two.
  • Invoice agent. Own the invoice print template and its dedicated stylesheet. Print the supplied long-address example and show that the full address remains visible.
  • Integration owner. Apply both patches to one branch. Run the pagination check and repeat the print check there.

Give each agent that will edit code a separate worktree when your tooling supports them. A Git worktree gives each agent a separate checkout linked to the same repository. Configure databases, server ports and generated output separately where parallel runs could interfere. If both agents discover they need the shared print stylesheet, pause and give that change one owner before continuing.

Write the task split down before dispatch

Fill in one copy of this worksheet for each proposed assignment. If a prerequisite is still open or ownership overlaps, settle it first and reconsider which tasks can run together.

Task and intended behaviour:
Approved spec and base commit:
Decisions and prerequisites:
Inputs and fixtures:
Files owned:
Shared files to leave alone:
Worktree, database and port:
Acceptance check and evidence:
Integration owner:
Combined-branch check:

Send the relevant repository conventions, fixture or example with the brief. Ask each agent to return its commit or diff, the checks it ran, their results and any open finding. Keep the contract in the task record so the integration owner can tell which assumptions each patch used.

Verify the combined branch

Two hands fit amber and teal modules into one test fixture with indicator lights.
Repeat acceptance checks after combining patches. AI-generated conceptual illustration.

Review the assembled diff against the approved plan. A clean merge can still carry conflicting assumptions about a shared API or data rule. Rerun the affected acceptance checks on the combined revision and record that revision with the results.

Record time spent briefing agents, reconciling patches and repeating checks alongside the time spent implementing. Use it to decide how to split the next change. A maintainer still makes the merge decision from the combined evidence.

Our AI-assisted development process uses the same review gates for both execution modes. The brief-to-release workflow shows where the task split fits, and the code review checklist covers the evidence to inspect before merging.

Working on something like this?

Start with a paid Blueprint, not a guess

One to two weeks to agree the scope, the risks and the measure of success — then a fixed price for the Build.

A note clipped to a notebook sits beside an open laptop and an empty desk chair.
AI workflow Engineering

Resume an AI coding task after a session ends

Resume an AI coding task with a handoff template, read-only Git checks and an example of testing an old completion claim against a new requirement.

4 min read
A maintainer and small robot use an open map whose paths lead to a reference binder, feature cards and a tool station.
AI workflow Engineering

AGENTS.md: repository context for coding agents

Prepare AGENTS.md with a repository map, verified commands and clear boundaries. Includes a template and checks for stale or conflicting instructions.

7 min read
A human engineer inspects software blocks at a desk while a small AI assistant offers a block beside an inspection gate.
AI workflow Engineering Delivery

AI-generated code review checklist before merge

Use an AI-generated code review checklist to inspect scope, access, failure paths and test evidence, with a worked diff before merging.

7 min read