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.


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
Gives the spec: contract, base, check
Reads the contract, then builds. Focused tests and lint
Same branch, whole class. Then the check runs again
One PR into the base. Check runs until green (PostMine: cloud)
Reads the sha, the check, the agent and the model itself
Reads the PR by its head sha
Through the gate, one PR at a time
Gives the spec: contract, base, check
Reads the contract, then builds. Focused tests and lint
One PR into the base. Check runs until green (PostMine: cloud)
Reads the sha, the check, the agent and the model itself
Reads the PR by its head sha
Through the gate, one PR at a time
Same branch, whole class. Then the check runs again
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.
| Mistake | What goes wrong | What the worker does instead |
|---|---|---|
| It guesses a missing behaviour | The code builds the wrong thing, and the review finds it late | It asks the coordinator before it builds |
| It fixes everything it notices | The pull request grows past the contract, and the review has to check all of it | It builds only the contract. Other work becomes one follow-up line |
| It runs the heavy checks on its own machine | Parallel tasks collide, and the result is not on the exact commit | It runs the focused tests and lint. The check command runs the rest |
| It makes a red check green by weakening it | The test passes and the bug stays in the code | It fixes the code. It touches a test or a rule only when the contract names it |
| It repeats a failed command without a change | The same failure comes back, and the time goes with it | It changes something first, or it asks the coordinator with the evidence |
| It claims a check it did not run | The coordinator trusts a claim that is false | It 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.


