System

How my AI agent dev workflow works

The roles, tiers, reviewer and merge gate I use to build PostMine with AI agents, and what broke along the way.

20 Nov 2026 · 9 min read
Poster: a film-set conveyor carries pull requests past a director, a coordinator, a worker and a reviewer. The word WORKFLOW in huge type; the subtitle How my AI agent dev workflow works.Poster: a film-set conveyor carries pull requests past a director, a coordinator, a worker and a reviewer. The word WORKFLOW in huge type; the subtitle How my AI agent dev workflow works.
Tasks at once
up to 4
Reviewer
another AI provider
Merge gate
APPROVE and a green check

One product, one bot, three roles

4tasks in flight at most
2critical fix rounds, then redesign or ask me
2AI providers: Claude and OpenAI
3roles: coordinator, worker, reviewer

I build PostMine alone, so the code comes from a small team of AI agents running in Orca, an open source tool for running coding agents in parallel. The team has one bot per product, the coordinator. It plans the work, writes a contract for each task and never writes product code itself. Workers write the code, and a reviewer checks each pull request. The risky decisions stay with me. The same idea runs my video studio.

Orca describes its core idea in one line: hand a big task to one agent, and it splits the work, starts worker agents in their own workspaces and brings their results back to you. My setup adds the rules Orca does not decide for me: who may write, who may review, and who says yes.


Where work starts

Work comes in two ways: as a Linear issue, or as my request in chat. A request that changes the repo gets a Linear issue first, so every change has one record. Each product has its own Linear team. The issue status moves three times: when the task is dispatched, when its pull request opens, and when it merges to main.

Orca bots can start from other places too. On Orca's site the example is a bot in Slack, Linear or GitHub that you ask to fix a bug, and then you come back to a tested pull request. I use Linear, because that is where the status lives.

How a task moves

YouYou (Yerke)

Start: a task or a question

Linear, GitHub or chat
CoordinatorCoordinator

Discusses with you, writes the contract, picks the tier

Which tier?
T0CoordinatorAnswer

No repo change, coordinator alone

T1WorkerLight worker

Text and config, no reviewer

T2 · T3WorkerWorker

Opens a PR, green check

Answered, done
Green check?
CoordinatorChanges

Coordinator sends the findings back

Review by other provider
Coordinator merges into main
YouI decide

Blocked review, production, money or access

YouYou (Yerke)

Start: a task or a question

Linear, GitHub or chat
CoordinatorCoordinator

Discusses with you, writes the contract, picks the tier

Which tier?
T0 · Answer
CoordinatorAnswer

No repo change, coordinator alone

Answered, done
T1 · Light worker
WorkerLight worker

Text and config, no reviewer

Green check?
green check
Coordinator merges into main
T2 · T3 · Worker
WorkerWorker

Opens a PR, green check

Review by other provider
approve
Coordinator merges into main
blocked
YouI decide

Blocked review, production, money or access

changes
CoordinatorChanges

Coordinator sends the findings back

↺ fix round, max 2: back to Worker
Start / endStepHuman stepDecisionLoop backCoordinatorWorkerYou
Every task goes through the coordinator first. Changes go back to the worker through the coordinator, at most two rounds. Blocked goes to me.

Roles and models

Each role has one job and one model. The coordinator is the strongest. The worker is the cheapest model that can write the code for a narrow task. The reviewer comes from another provider. Which model runs each role, and why, is in its own guide. What the coordinator does, and never does, is in its own guide. What the worker does in its worktree is in its own guide.

Roles and models

  • Coordinator
    Claude Opus 5.5

    Plans, writes the contract, gates and merges

    • Worker
      Claude Haiku 5.5

      Does one task in its own worktree and opens one pull request

    • Reviewer
      GPT-6.1 Terra (OpenAI)

      Reads the pull request and gives a verdict. Edits nothing

Agent stepHuman stepDecisionCoordinatorWorkerReviewer
Three roles, one model each. The coordinator is the strongest model.
RoleModelJob
CoordinatorClaude Opus 5.5Plans, writes the contract, gates and merges
WorkerClaude Haiku 5.5Does one task in its own worktree and opens one pull request
ReviewerGPT-6.1 Terra (OpenAI)Reads the pull request and gives a verdict. Edits nothing
LightGPT-6 Luna (OpenAI)Text and config changes only, with no reviewer

The worker is cheap because it gets a narrow task with a written contract. The expensive thinking happens in planning and review. The Claude Code subagents docs make the same point about routing: "Control costs by routing tasks to faster, lower-cost models like Haiku." RouteLLM reports that routing between a strong and a cheap model can cut cost a lot without hurting quality on public benchmarks (arXiv 2406.18665).


Tiers: the cheapest safe path

Before any agent starts, the coordinator puts the task in a tier. The tier decides who touches the task. I take the cheapest path that is still safe. What a change touches sets its tier, not how big the diff is. The tier goes on the first line of the task contract. How the coordinator picks the tier and how I write that contract are their own guides.

TierWhat it coversWho works on it
T0A question or a note, with no repo changeThe coordinator, alone
T1Files on a short list of light paths, such as text and configA light worker, with no reviewer
T2Any ordinary code changeA worker, then a reviewer
T3Migrations, stored data or money pathsA worker and a reviewer, plus one review of the contract before the worker starts

T0 skips the workers and T1 skips the reviewer. Anthropic's guide on building agents puts the same principle this way: "find the simplest solution possible, and only increasing complexity when needed" (Building effective agents).


Why the reviewer is from another provider

The rule is strict. The reviewer's provider must differ from the worker's provider. If the two match, the coordinator stops and asks me. There is no fallback to another model from the same provider, because a same-provider fallback fails the same way when that provider hits a limit. The review flow and a checklist are in their own guide. How the reviewer reads and what it may block is in another guide.

The evidence is indirect. A model tends to favor its own output: Panickssery, Bowman and Feng found that LLM evaluators favor their own generations. LLM judges have named biases, such as position, verbosity and self-enhancement, as the Zheng et al. paper lists them in its abstract. Critics can catch bugs that people miss, but they can also invent bugs, as OpenAI's work on LLM critics shows. And Huang et al. report that a model re-reading its own answer, with no outside feedback, often does not improve it.

To be direct: no public study compares cross-provider and same-provider review on real pull requests. My own evidence is one anecdote from an older setup. A final review from a model of another provider found two blockers that every Claude reviewer had missed, and it took three rounds to surface them. That is one case, not a result. I keep the rule for the reasons above, not because one case proves it.


Epics and dependency waves: parallel without chaos

A large feature is an epic in Linear, split into tasks. Tasks run in waves. A wave holds the tasks that do not depend on each other. The next wave starts only when the tasks it depends on are merged, and only when it does not conflict with what is already in flight. At most four tasks run at once. The rest wait in a queue. How parallel workers stay apart is its own guide.

Epic in waves

Epic in Linear, split into tasks
Wave 1: tasks run in parallel
WorkerTask A

Own branch, worktree and pull request

WorkerTask B

Own branch, worktree and pull request

Dependencies merged, no file overlap?
Wave 2: starts after its dependencies merge
WorkerTask C

Starts when its dependencies are merged

WorkerTask D

Starts when its dependencies are merged

Merged into main
Epic in Linear, split into tasks
Wave 1: tasks run in parallel
WorkerTask A

Own branch, worktree and pull request

WorkerTask B

Own branch, worktree and pull request

Dependencies merged, no file overlap?
yes: wave 2 starts
Wave 2: starts after its dependencies merge
WorkerTask C

Starts when its dependencies are merged

WorkerTask D

Starts when its dependencies are merged

no: wait in the queue
↺ back to Dependencies merged, no file overlap?
Merged into main
Start / endStepDecisionGroupLoop backWorker
At most four tasks run at once. The rest wait in a queue.

Each task gets its own branch, worktree and pull request. Orca lists "Parallel Worktrees" as a way to "quickly split tasks into isolated environments" (Orca on GitHub).

Parallel is not free. Anthropic found that most coding tasks have fewer truly parallel parts than research does, and that LLM agents are not yet good at coordinating (Anthropic's multi-agent research system). Kim et al. compared multi-agent setups with a single agent: performance fell 70% on sequential planning and rose 80.8% on financial reasoning that splits well into parts. They also found that setups without central verification spread errors more than setups with central coordination (arXiv 2512.08296). Claude Code's agent teams docs say it in plain words: for sequential tasks, same-file edits or work with many dependencies, a single session or subagents work better.

So my parallel rule is the boring one: few tasks at once, one branch each, and no task starts before the tasks it depends on are merged.


The gate and the merge

A pull request merges only when the reviewer's verdict is APPROVE with zero critical findings, the check is green on that same commit, and the target branch has not moved since the review. If the target has moved, the check runs again on the merge result first. After three failed attempts, the coordinator asks me.

Migrations have a second gate. After a merge, the change goes to staging first. Any refusal from the migration tool stops the process. Production gets the change only after my yes on the exact list of changes.

The human gate is wider than migrations. I decide on production data and migrations, secrets, payments, auth, DNS and every action that leaves the system. The coordinator asks me and does not act on those alone.

The gate has one weak spot. It is a rule in the instructions, not a check the tool runs for me. The Claude Code best practices say that rules which must never break belong in hooks, which the tool runs itself, not in prompts. I have not moved the merge gate into a hook yet, so it depends on the agent following the rule.


Fix rounds and when to stop

When the reviewer asks for changes, the findings go back to the worker's latest dispatch. The reviewer then checks both the old and the new commit. Non-critical findings never open a round. They become one follow-up task. A BLOCKED verdict does not count as a round.

After two rounds with critical findings, I stop point-fixing. The coordinator then splits the task, redesigns it, or asks me. Two rounds is my own cap, not a number from a study. The self-correction research above points the same way: fixes that come only from the model itself are not a reliable way out. Why the rounds stop at two, and what counts as critical, is in its own guide.


Cloud vs local checks

The worker runs only the focused unit tests and lint for the files it changed. Everything heavy runs once, in the check command the repo names: the full typecheck, the whole unit suite, database tests, browser tests and the build.

For PostMine, that check runs as three Haiku sessions in Claude Code's cloud. Each result is posted as a GitHub commit status on the last commit of the pull request. The merge gate reads that same status, and it uses no GitHub Actions minutes. The check step by step is in its own guide.

Two local rules apply. I do not run a local database stack or a capture run unless the coordinator asks. UI screenshots come from the coordinator's own stand, not from each worker.


What broke and what it costs

Three things broke, or nearly did. The first is a review that every Claude reviewer missed, which is why the reviewer now comes from another provider. The second is messaging: agent terminals in Orca cannot be read from outside, so messages between agents have to be sent explicitly. The third is the gate, which is written as a rule and not enforced by a hook, as section 7 says.

I have no reliable number for what this team costs, so I do not give one. What I know is the general ratio. Anthropic reports that agents use about four times the tokens of a chat, and multi-agent systems about fifteen times (Anthropic). The value has to justify that. The other cost is attention. At most four tasks run at once, the rest wait in a queue, and every merge waits for a review and a green check on the same commit.


How to start without Orca

You do not need Orca to try this. The same roles work in tools you may already use.

Claude Code has subagents. A subagent works in its own context and returns a summary, so side work does not fill your main chat (subagents). Each subagent can set its own model, so routine work can run on a cheaper one. Agent teams run separate sessions. The docs call them experimental and disabled by default (agent teams).

Codex has subagents too. OpenAI's docs say they suit read-heavy work, such as exploring code, running tests and triage. Parallel edits conflict, so write-heavy work needs more care (Codex subagents). Codex starts subagents only when you ask for them (Codex subagents).

Whatever tool you pick, keep the rules that matter: one branch and one pull request per task, a reviewer from another provider, one check command, and a human decision for production data, secrets and money.