Guide

What a cheap worker does inside its worktree

The worker gets one contract, one branch and one worktree. It builds the contract, runs the focused tests, opens one pull request and reports back. It never merges, never reviews its own work and never touches files outside its worktree.

30 Nov 2026 · 4 min read
Collage on blue: a craftsman tagged Worker builds one wooden box inside his own glass workshop cube from a blueprint tagged Contract, with a gauge tagged Check; more workshop cubes stand in a row. Big word WORKER and the title.Collage on blue: a craftsman tagged Worker builds one wooden box inside his own glass workshop cube from a blueprint tagged Contract, with a gauge tagged Check; more workshop cubes stand in a row. Big word WORKER and the title.

What the worker is

This is one mini-guide from my dev workflow System. A worker is a cheap model with one narrow job: build one contract on one branch and open one pull request. Mine runs Claude Haiku 5.5. Why a cheap model is enough for this job is in its own guide.

The rule is the same as for the whole workflow: you set the goal, the coordinator decides the path, and the worker carries out its contract. The worker does not pick the scope, the tier, the reviewer or the merge. What the coordinator does is in its own guide.

What the worker receives

The coordinator starts each worker with one spec. Everything the worker needs about the task is in that spec and in the repo. The spec holds:

  • The contract: the goal, the numbered requirements, what must not change, and one check. How a contract is written is its own guide.
  • The base branch, which the pull request must target.
  • The check command that the contract names.
  • A new worktree on a new branch, made for this one task.
  • A browser profile, only when the task needs a browser. Without one, the worker has no browser.

What it does, in order

Each step has one owner. The worker owns steps 2 to 7. The coordinator owns the first and the last:

1. Coordinator: starts the worker with the spec. The issue moves to In Progress.

2. Worker: reads the repo's rules file (AGENTS.md) and follows the contract. If a behaviour is missing, or two parts of the spec disagree, it asks the coordinator before it builds.

3. Worker: builds the contract on its own branch, inside its own worktree, and only what the contract asks. Anything else it notices becomes one follow-up line in its report.

4. Worker: runs the focused unit tests and the lint of the files it changed. Nothing heavy runs here: no whole-project typecheck, no full test suite, no build.

5. Worker: pushes and opens one pull request into the base branch. If the base has moved, it rebases and runs the check again.

6. Worker: runs the contract's check command on the final head until it is green. The check posts its status on that head.

7. Worker: reports to the coordinator. The report holds the pull request URL, the full head sha, the check result on that sha, the worker's own agent and model, and the follow-ups.

8. Coordinator: checks the report itself. It reads the sha, the check result, the agent and the model. For T2 and T3 it then starts a reviewer from another provider. The worker never does that.

One contract, from the start to the report

CoordinatorStarts the worker

Gives the spec: contract, base, check

WorkerBuilds and tests locally

Reads the contract, then builds. Focused tests and lint

CHANGES_REQUESTEDWorkerFixes the findings

Same branch, whole class. Then the check runs again

WorkerOpens the PR, checks, reports

One PR into the base. Check runs until green (PostMine: cloud)

CoordinatorVerifies the report

Reads the sha, the check, the agent and the model itself

ReviewerGives one verdict

Reads the PR by its head sha

Verdict?
APPROVECoordinatorGates and merges

Through the gate, one PR at a time

CoordinatorStarts the worker

Gives the spec: contract, base, check

WorkerBuilds and tests locally

Reads the contract, then builds. Focused tests and lint

WorkerOpens the PR, checks, reports

One PR into the base. Check runs until green (PostMine: cloud)

CoordinatorVerifies the report

Reads the sha, the check, the agent and the model itself

ReviewerGives one verdict

Reads the PR by its head sha

Verdict?
APPROVE
CoordinatorGates and merges

Through the gate, one PR at a time

CHANGES_REQUESTED
WorkerFixes the findings

Same branch, whole class. Then the check runs again

↺ The check runs again
StepDecisionLoop backCoordinatorWorkerReviewer
The worker's path, top to bottom. Each step has one owner. CHANGES_REQUESTED sends the findings back to the same worker, on the same branch.

What the worker never does

These are the worker's hard limits. They are not steps for you.

  • It never merges its own pull request, and never starts a reviewer. The coordinator does both.
  • It never reviews its own work. The review comes from a reviewer of another provider, for the reasons in its own guide, and how that reviewer reads and blocks.
  • It never starts a helper or another agent. It does the work itself.
  • It never asks you directly. Its questions go to the coordinator.
  • It never touches production or its credentials. It never pushes to main or to the base branch.
  • It never weakens a lint rule, a type check, a test or a guard to get green, unless the contract names the change.
  • It never hides an infrastructure failure behind a fallback or a retry. It reports the failure with the evidence.
  • It never touches files outside its own worktree, and never stops a process it did not start.

Fix rounds: the findings come back to the same worker

When the reviewer asks for changes, the coordinator sends the findings back to the same worker, on the same branch. The worker fixes the whole class of each finding inside the contract's scope, not only the line the reviewer cited. Then it runs the check again, pushes and reports again. The fix can come in a fresh session: the worker works from its branch and the text of the findings. Why the rounds stop at two is in its own guide.

The check, and why it runs in the cloud

The check is the heavy part: the full typecheck, lint, the whole unit suite, the database tests, the browser tests and the build. The repo names it in its AGENTS.md. For PostMine, the check runs in Claude Code cloud sessions. Several sessions run in parallel: the unit tests in two halves, and the browser tests in one or more sessions. It ends with one GitHub status on the exact commit that was tested.

Heavy checks stay off the laptop for two reasons. Several tasks run at once, and a laptop can run only one heavy test run at a time without the runs colliding. And the merge gate needs one status on one exact commit, so the result belongs to that commit and nothing else.

PostMine's check took a median of about 9 minutes (9m13s) over 32 runs from 28 to 30 November 2026. Nine runs in ten finished within about 11 minutes (p90 11m03s). These are PostMine numbers. This site has no cloud check: its check is a local command, so the times do not apply here.

Common mistakes

Each row is a way the worker goes wrong. The right column is what the worker does instead.

MistakeWhat goes wrongWhat the worker does instead
It guesses a missing behaviourThe code builds the wrong thing, and the review finds it lateIt asks the coordinator before it builds
It fixes everything it noticesThe pull request grows past the contract, and the review has to check all of itIt builds only the contract. Other work becomes one follow-up line
It runs the heavy checks on its own machineParallel tasks collide, and the result is not on the exact commitIt runs the focused tests and lint. The check command runs the rest
It makes a red check green by weakening itThe test passes and the bug stays in the codeIt fixes the code. It touches a test or a rule only when the contract names it
It repeats a failed command without a changeThe same failure comes back, and the time goes with itIt changes something first, or it asks the coordinator with the evidence
It claims a check it did not runThe coordinator trusts a claim that is falseIt reports only the check result it has on the final head

The worker's checklist

These are checks my worker runs itself, before it reports. They are not steps for you to run.

Where these rules come from

Our roles live in a private repository, so I describe them in words instead of linking them. In short:

  • One contract, one branch, one worktree and one pull request for each task.
  • Focused tests and lint locally. The full check runs once, as the check command the repo names.
  • Questions go to the coordinator. The worker never asks me directly.
  • The worker never merges, never reviews its own work and never starts another agent.

The reasons for each rule are in the guides linked above: contracts, models, parallel work and fix rounds.