Skip to content
All articles

Coding agents · Architecture

The smallest agent architecture that fits

Six patterns for coding agents, from one interactive agent to planner and workers. More agents do not automatically create more engineering capacity, so start with the smallest that matches the work.

· 4 min read

Six agent architectures and when each fits. An interactive single agent fits an ambiguous or high-judgment change. An asynchronous single agent fits a well-scoped issue with deterministic tests, and is the team's first choice. An agent plus a deterministic workflow fits repeatable maintenance at scale. A specialist reviewer agent fits a security, API, migration or test perspective. Parallel agents fit independent research or exploration. A planner and workers fit a large decomposable program. Parallelize independent reads, not competing writes. The agent opens pull requests and owns no merge or deployment step.

More agents do not automatically create more engineering capacity. The course gives a menu of six patterns, each with a situation it suits and a control concern to watch.

PatternUse whenControl concern
Interactive single agentAmbiguous or high-judgment changeHuman supervision and checkpoints
Asynchronous single agentWell-scoped issue with deterministic testsEphemeral branch, budget, independent CI
Agent plus deterministic workflowRepeatable maintenance at scaleKeep orchestration and gates outside the model
Specialist reviewer agentSecurity, API, migration or test perspectiveIndependent context and an explicit rubric
Parallel agentsIndependent research or candidate explorationCost, conflicting edits, synthesis authority
Planner and worker hierarchyLarge decomposable programState, contracts, ownership, integration risk

Parallelize reads, not writes

Parallelize independent reads and analyses, not competing writes to the same files. For multi-agent work, define artifact contracts: what each worker receives, what it must return, how conflicts are resolved and who owns the final decision. A shared transcript is not a coordination protocol.

A first choice, written down

The table is a menu. A team adopting agents picks one row to start with and records the choice, so the pilot has something to confirm or overturn. The course's decision for the first quarter: well-scoped issues with deterministic tests go to an asynchronous single agent, with one task contract, one ephemeral branch and sandbox, independent CI on the exact commit, and no release authority. Ambiguous or high-consequence changes stay in interactive sessions.

The agent opens pull requests and owns no merge or deployment step. When something goes wrong it fails closed and leaves evidence: a policy denial stops the action until the policy changes outside the session, and the final report says partial, blocked or failed.

Think Like an Engineer

Decide in advance what would change the choice. The course's answer: if defect escape rises along with reviewer effort, that calls for stronger evidence gates, not more agents. Parallel agents, or a planner with workers, wait for work that splits without competing writes to the same files.

Get one diagram a week

A short article built around one engineering diagram, from the same library as these courses.

One diagram-led article a week on AI and systems engineering. We email you once to confirm, and every newsletter has an unsubscribe link. Privacy policy