跪拜 Guibai
← All articles
Android · AI Programming

Parallel AI Coding Workflow: Router Coordinates Three Workers to Skip Serial Waiting

By TimeFine ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

The bottleneck in AI-assisted coding is often human waiting, not model speed. This workflow moves coordination overhead into the system so developers stop approving unchanged plans and can watch implementation start earlier, at the price of higher token spend and consistency management.

Summary

An AI coding workflow that spent most of its time waiting on human confirmations now runs in parallel. A router receives every message, judges what changed, and dispatches to three dedicated workers: an Analyst/Planner who restores background and writes the plan, a Coder who produces a five-line skeleton of assumptions and implements within bounded scope, and a Reviewer who prepares context early and checks the result against a contract. Three human gates remain unchanged: background, plan, and implementation verification.

The design borrows the Router/Worker split from a DeepSeek Super-agent article and applies it to a single development task. Small feedback, like changing a timeout from 3 minutes to 5, goes straight to the Coder. Files have explicit owners, pre-change baselines protect against confusing speculative code with original facts, and the Reviewer reuses verified facts without inheriting the implementer's exploration history.

Token consumption rises with parallel contexts, and a single large rework can erase the gains from many small tasks. The author estimates 10-20% of confirmations actually change direction, which is why speculative implementation is worth trying. For well-understood changes the parallel start pays off; for exploratory or structurally ambiguous work, the original serial workflow stays the better fit.

Takeaways
— Roughly 10-20% of human confirmations require actual changes; the rest just approve and continue.
— Router, Coder, Reviewer, and Analyst/Planner split the task; Router owns all human interaction and dispatch.
— Coder's five-line skeleton captures state ownership, exception level, candidate files, error semantics, and acceptance phenomena before implementation.
— Three gates stay: background confirmation, plan confirmation, implementation verification.
— Small explicit changes like a timeout value go directly to Coder without a full re-analysis.
— Files are owned by specific workers; Coder writes source, Analyst captures baselines to avoid misreading speculative code as original behavior.
— Reviewer prepares context early and reuses verified facts but does not carry the implementer's exploration history or self-assessment.
— Parallel execution increases token consumption and coordination cost; large structural reworks can offset gains from many small tasks.
Conclusions

Treating human attention as a scarce resource is what justifies the extra token spend and workflow complexity; the design optimizes for the developer's time, not the AI's compute.

Speculative implementation only pays when planner and coder converge on key decisions early; naming differences are cheap, but a state-ownership disagreement can force a full rework.

Splitting a task into parallel workers introduces consistency costs a serial flow never had: file ownership, baselines, and late results all need explicit handling.

The 10-20% confirmation-adjustment rate hides the real risk: if the adjustment is structural, the Coder's early code is likely discarded, so the average rate alone doesn't justify always running ahead.

Concepts & terms
Five-line skeleton
A minimal structured output from the Coder before full implementation, listing state ownership, error handling level, candidate files, error semantics, and observable acceptance criteria. It exposes the implementer's assumptions for comparison against the planner's approved plan.
Router
The coordinating agent that receives all user messages, determines which worker should act, tracks task state and approvals, and aggregates delivery. It keeps human interaction in one place while workers execute independently.
Gate
A human confirmation point in the workflow. This design keeps three: background confirmation, plan confirmation, and implementation verification, each syncing specific information to the workers.
Speculative execution
Starting implementation before the plan is fully approved, within bounded assumptions. In this workflow, the Coder does limited work while the Analyst continues planning, with the condition that early work can be adjusted or discarded.
Source: juejin.cn ↗ Google Translate ↗ Backup ↗