AI Factory

FA-01

Set up director and workers

What you'll produce: Operating model one-pager

Definition

A director-and-worker operating model is a written split of agent work into one role that plans, routes, verifies, and merges, and several roles that build inside a bounded task. The one-pager records who holds each decision, which work may be delegated, who checks it, and where a person must approve.

TL;DR

Why the second agent needs an org chart

One agent is easy to run. You give it a task, read the answer, and adjust. The second agent changes the problem. Now something has to decide which agent gets which task, what context moves between them, and whose word counts when they disagree.

We learned this the direct way. In our own setup, each new agent removed a task and created a handoff, and when the handoff had no owner the person in the chair became the shared memory, the approval queue, and the audit trail. More agents meant more output and more coordination at once.

The director-and-worker model is the smallest structure that fixes this. Anthropic describes the underlying pattern as orchestrator-workers: a central model breaks a task down, hands the pieces to workers, and combines what comes back. It fits work where the subtasks cannot be listed in advance, which is most software work. The operating model adds what the pattern leaves out: who verifies, who merges, and where a person signs.

What goes on the one-pager

Section The question it answers
Director What does the planning role decide, and what does it never hand off?
Worker lanes What is each lane's job, what may it touch, and what must it return?
Verification Who checks each lane, and how is a failed check disputed?
Human gates Which actions need a named person, and who is the deputy?
Stop rules When must a worker stop and ask instead of guessing?

One page is a real limit. If the model needs three pages, it is describing an organization nobody will remember at two in the morning when a task goes wrong.

How to set it up well

Start from decisions. List the decisions made in a normal week: scope, design, routing, acceptance, merge, release. Give each an owner. Agents inherit this list. They do not create it.

Draw the delegation line by checkability. Work goes to a worker when it is bounded and when a command or a reviewer can tell whether it is done. Architecture, security, credential changes, impact analysis, final verification, and merges stay with the director. The test is simple: if the worker gets it wrong, will a check catch it before it matters?

Protect the director's context. A subagent starts with a fresh context window and returns a summary, so the parent does not spend its own budget on exploration. That is the practical reason the director should not build. Its context holds the plan and the evidence. Fill it with implementation detail and its judgment gets worse.

Separate building from checking. In an experiment Nate B Jones ran and we wrote up, a strong model directed four cheaper worker families across 34 tasks. Twelve came back marked wrong by a checker on the first pass. The checker ignored the worker's own report and re-ran the work. One catch was against the director's own design. No role ranked high enough to skip the check.

Let disputes go up. In the same build, a checker failed a worker for posts that were short. The posts were meant to be short. The worker escalated, and the director ruled for the worker. A model with no path for this trains workers to pad.

Make review cheap. Simon Willison's observation about running agents in parallel is that review is the bottleneck, and that work built from your own specification is far less effort to review than work that arrives unannounced. The director's main product is therefore a clear task, which is the subject of the next topic in this pillar.

A worked example

This example is fictional. A five-person team at a freight-software company wants to move 40 API handlers to a new response format.

Their first attempt is one agent session and one very large change. Review takes four days and finds a broken pagination case on day three.

Their one-pager for the second attempt reads as follows. The director is one agent session owned by the tech lead. It writes the migration plan, splits it into eight tasks of five handlers, and never edits handler code. There are two worker lanes: a migration lane on a cheaper model, allowed to touch only the handlers named in its task and their tests, and a review lane on a different model that re-runs the tests and reads the change against the plan. Human gates: the tech lead approves every merge to main, and the platform engineer is deputy. Stop rule: a worker that finds a handler with no tests stops and reports instead of writing its own.

Three tasks come back failed by the review lane. Two are real. The third is a dispute about a deprecated field, which the director settles from the plan. The tech lead reviews eight small changes, each with its evidence attached.

Common failure modes

  • The director that does everything. It plans, builds, and reviews in one context, and then loses the plan halfway through.
  • Workers that grade themselves. A worker's report that the work is done is a claim. Treat it as a claim until someone else has run the check.
  • A person at every step. Martin Fowler's site describes the alternative as working on the loop: when output is wrong, change the instructions and checks that produced it instead of fixing each artifact by hand.
  • Lanes with open permissions. A lane that may touch anything cannot be reviewed quickly.
  • No stop rule. A worker with no instruction to stop will guess, and the guess will read as confident.

How it connects to the other pillars

The operating model depends on product decisions made earlier. The human gates on the one-pager should match the review-gate map from the AI Product Management pillar, so the factory does not invent its own approval rules. Worker lanes are only as good as the tools they hold, which is the subject of tool contracts in the AI Development pillar.

Inside this pillar, the one-pager is the frame for everything else. Work orders are how the director hands off a task. Isolation is how lanes stay out of each other's way. The verification ladder is how the director decides what merges.

Run it yourself

Time: ~2 hours

  1. List the decisions, not the agents — You need: The last two weeks of work on one product or repo, and the person who approved it. You get: A list of decisions such as scope, design, routing, acceptance, merge, and release, each with a current owner. If a decision has no owner today, an agent will not fix that. Name the owner first.
  2. Draw the delegation line — You need: The decision list and a view of which work is mechanical and checkable. You get: Two columns, one for work that stays with the director and one for work that may go to workers. Architecture, security, credential changes, impact analysis, final verification, and merges stay on the director side.
  3. Define the worker lanes — You need: The delegable column and the models and tools you have. You get: Two to four named lanes, each with a job, the files or systems it may touch, and a budget.
  4. Assign the checker and the escalation path — You need: The lanes and the checks that already exist, such as tests, builds, and review. You get: A rule for who verifies each lane, and a path for a worker to dispute a failed check. The checker should not be the agent that produced the work, and ideally not the same model.
  5. Mark the human gates — You need: A list of actions that cannot be undone, such as merges to main, deploys, spend, and customer-visible changes. You get: A short list of gates with a named approver and a deputy.
  6. Run one task and revise the page — You need: One real, low-risk task and the draft one-pager. You get: A signed operating model plus a note of every place the page was unclear.

Do it with AI

You are helping me write a one-page operating model for running coding agents as a director and workers. Interview me one question at a time. Do not suggest tools or models until the roles are settled.

Collect: the product or repo [NAME]; the person who owns what merges [OWNER]; the decisions made in a normal week (scope, design, routing, acceptance, merge, release) and who makes each today; which work is mechanical and checkable; the agents, models, and budgets available [AGENTS AND BUDGETS]; the checks that already run (tests, build, lint, review); the actions that cannot be undone.

Then produce a one-page operating model in plain text with these sections:
1. Purpose and scope (two sentences).
2. Director: what it decides, what it never delegates.
3. Worker lanes: for each lane, the job, what it may touch, its budget, and what it must hand back.
4. Verification: who checks each lane, which checks are automatic, and how a worker disputes a failed check.
5. Human gates: each irreversible action, its approver, and a deputy.
6. Stop rules: when a worker must stop and ask instead of guessing.
7. Open questions.

Flag any decision with no owner and any lane whose output cannot be checked by a command or a named reviewer.

Chain it

  1. Interviewer — Asks for each decision, its current owner, and the checks that exist, one question at a time; The owner's answers and two weeks of recent work history → A decision list with owners and a first split between director and workers
  2. Operating-model drafter — Turns the decision list into lanes, verification rules, gates, and stop rules on one page; The decision list, available agents, and budgets → A draft operating model one-pager; gate: The owner approves the delegation line and the human gates
  3. Critic — Looks for lanes that check their own work, decisions with no owner, and gates with no approver; The draft one-pager → A ranked list of gaps
  4. Pilot runner — Runs one low-risk task through the model and records where the page was unclear; The approved one-pager and one real task → A run record and proposed edits to the one-pager; gate: The owner signs the revised page before more work is routed

How AI changes this

Automate

Keep human

Stage

FAQ

When is one agent enough?

When the work fits in one context, uses one set of permissions, and one person can review the result. Anthropic's guidance is to start with the simplest design and add structure only when it measurably helps. Add a director and workers when tasks need different tools or budgets, or when review has become the bottleneck.

Should the director write code?

As a default, no. The director's context is the scarce resource. It holds the plan, the constraints, and the evidence from each task. Spending it on implementation leaves less room for judging the result. Let the director write specs, review work, and rule on disputes.

Do workers need a different model from the director?

Not always, but the checker should differ from the builder. A model grading its own output tends to agree with itself. Use a cheaper model for mechanical lanes when the task is tightly specified, and keep the stronger model for planning and review.

How many workers should we start with?

Two or three. Each added lane adds a handoff that needs context, permissions, and proof. Add a lane when it lowers the total review and coordination time, and remove one when it does not.

Sources

Related