{"slug": "one-tech-lead-many-workers-my-ai-coding-workflow", "title": "One Tech Lead, Many Workers: My AI Coding Workflow", "summary": "A tech lead running AI coding sessions in the open-source T3 Code desktop app reports that one distributed storage feature has merged 22 of the 30 items on its tracking issue, with four new pull requests opened on its busiest day and five in review at once. The workflow assigns each task its own git worktree and caps pull requests at 1,500 lines, routes every diff through a local review gate built with the open-source review-bridge tool that sends the diff and written requirements to a model from another provider, and bars the worker that wrote a diff from reviewing it. The author states that \"human attention, mine and my reviewers', is the real bottleneck\" and turns each correction of an agent into a written rule attached to every worker's task spec.", "body_md": "When I have a large feature to build, I break it into dozens of small tasks and give each one to its own AI coding session. A single long-running AI session, which I treat as a **Tech Lead**, handles the design doc, hands out work, reviews diffs before they leave my machine, and keeps the tracking issue up to date. I rarely read the implementation code line by line anymore; I focus on design calls and rely on strict specs and layered checks to keep what ships solid.\n\nEach feature gets its own Tech Lead, so I usually coordinate several of them in parallel. On just one of those tracks (a distributed storage feature), we have merged 22 of the 30 items on its tracking issue, with four new PRs opened on its busiest day and five in review at once. This post lays out how a single Tech Lead setup works, where the bottleneck moves, what goes wrong, and what it costs.\n\n## How the Pieces Fit Together\n\nI run all of these sessions in [T3 Code](https://github.com/pingdotgg/t3code), an open-source desktop app that spawns and messages coding agents across machines. The interface between me and the Tech Lead is deliberately narrow: it sends up options with a recommendation, and I send back a decision.\n\nBefore a normal push, every diff has to pass a local review gate built with my open-source tool [review-bridge](https://github.com/fengjiachun/review-bridge), which hands the diff and a written set of requirements to a model from another provider. Once a diff passes the local gate and the Tech Lead approves it, the worker pushes its branch and opens a draft PR with the description the Tech Lead checked. There are two exceptions: if a diff fails the local gate twice, I step in and can approve a push directly; and small non-behavioral fixes from teammate review comments can skip the local gate after Tech Lead review. The Tech Lead handles tracking-issue updates, workers never comment on PRs or issues, and review discussions with teammates stay with me. My team knows these PRs come out of an AI workflow, and reviewers combine their own understanding of the feature with AI-assisted review as well.\n\n## Rules Behind the Workflow\n\nThe setup rests on three habits: break work down up front, verify it from independent angles, and write down every lesson. In practice, that turns into these rules:\n\n| Rule | In practice | Why it matters | \n|---|---|---|\n| 1. Design before coding | Finish the design doc and tracking issue first. Only assign tasks that are on that list. | Settle design debates early so workers are not guessing. | \n| 2. One worker, one PR | Give every task its own git worktree and cap the PR at 1,500 lines total. | Small diffs are reviewable and easy to back out. | \n| 3. Never review your own code | The worker that wrote the diff stays out of review. Reviewers see the code, never the author’s summary. | Hand an LLM your conclusion and it will usually just agree. | \n| 4. Switch methods at each layer | Self-tests and mutation checks, multi-angle review with a skeptic, a cross-provider model, CI, then teammates. | Repeating the same check mostly turns up style nits. | \n| 5. Show evidence for every claim | Cite `file:line` , give a reachable trigger path for every bug, and mark whether a claim was run, read, or inferred. | Stops vague false alarms like “missing a check here.” | \n| 6. Check docs before asking me | Look in the design doc first, then the rule files. Only ask me if neither answers, and bring a recommendation. | **Human attention, mine and my reviewers’, is the real bottleneck.** | \n| 7. Turn corrections into rules | Every time I correct an agent, write the rule down with why it exists and attach it to every worker’s task spec. | You shouldn’t have to say the same thing twice. | \n| 8. Keep state in files | Save feature decisions in a dated log, and keep gate requirements, reports, and diffs on disk keyed by commit SHA. | Sessions lose context when compacted or interrupted; files don’t. | \n| 9. Define when to stop | Cap the local gate at two rounds. Pause and report if a diff grows two rounds in a row. | Keeps an agent from digging deeper down a dead end. | \n\n## Who Does What\n\nI make the calls, the Tech Lead coordinates and reviews, and workers write code. I put the Tech Lead on the strongest model I have and run workers on a cheaper tier. The local gate isn’t a role, but I’ve included it in the table.\n\n| Role | What it is | Owns | Stays out of | \n|---|---|---|---|\n| Maintainer | Me | Design trade-offs, teammate discussions, merges, choosing reviewers, deciding when a PR is ready for review, ruling when a diff fails the local gate twice, and owning what ships | Writing feature code or reading worker diffs line by line | \n| Tech Lead | One long-running AI session per feature | Writing the design doc and tracking issue (I make the trade-off calls), assigning tasks, multi-angle pre-push review, approving pushes, drafting and fact-checking PR descriptions, updating the tracking issue, reporting back | Making product or design trade-offs on its own, commenting in or resolving review threads, picking reviewers | \n| Worker | One AI session per task, in its own git worktree | Implementing the change, running tests and mutation checks, running the local gate, pushing its branch and opening the draft PR once approved | Commenting on PRs or issues, contacting anyone, editing code outside its spec, guessing when unsure | \n| Local gate | A model from another provider acting as reviewer | Checking the diff against written requirements, up to two rounds | Editing code | \n\n## Lifecycle of a Task\n\nImplementation, multi-angle review, and the local gate often loop a few times. Anything caught in multi-angle review, or a round-1 failure at the local gate, goes straight back to the worker for edits and re-testing. If a diff still doesn’t pass the local gate after two rounds, everything stops and I decide whether to push or revise; whatever I rule gets appended to the next review’s requirements so the gate doesn’t argue the same point again. Once a PR is open, teammate review comments also go back to the worker for edits and tests, with small non-behavioral fixes skipping the local gate after Tech Lead review.\n\n## Five Layers of Checks\n\nEach PR passes through five checks from top to bottom, and every layer uses a different approach. In Layer 1, workers pair unit tests with mutation checks: they disable or invert each newly added guard one by one and confirm that a test fails. If no test catches a mutation, they say so in the report. A full mutation pass runs once, and follow-up edits only re-check what changed.\n\nBugs that slip past one method tend to show up when you look at the same code a different way. In practice, layers 2 and 3 caught the nastiest logic bugs before a PR ever went out. For example, multi-angle review caught a design bug that could wedge the target replica and a bug where every retry after a first failure was rejected; the local gate caught a worker edit suggested by the Tech Lead that exposed half-closed state. Teammate comments now skew toward naming and logging, but reviewers still catch real bugs every earlier layer missed, like a silently swallowed read error. Layer 2 does the most work, so it is worth looking at closely.\n\n## Inside Layer 2: Multi-Angle Review\n\nBefore a diff hits the local gate, the Tech Lead runs a multi-angle review pass. Five separate agents inspect the diff through different lenses, and none of them see each other’s notes. A sixth agent, the **skeptic**, then tries to disprove every finding by re-reading the code itself. Anything the skeptic cannot confirm gets dropped; only surviving findings go back to the worker or up to me.\n\nFour lenses run on every PR, and the fifth changes per task:\n\n| Lens | Questions it asks | \n|---|---|\n| Callers | Who calls this? If it returns an error, does the caller retry, wedge, or lose data? | \n| State & ordering | When two events race, what runs first? Can another subsystem see partially updated state? | \n| Design & clarity | Is this the simplest way to write it? Are names and comments accurate and clear? | \n| Tests | If you delete or invert the behavior under test, do tests still pass? Do any rely on timing luck? | \n| Risk-specific (one/PR) | Whatever failure mode is most likely to hurt us in this particular diff | \n\nA few habits keep this pass from turning into noise:\n\n- **Blind inputs.** Reviewers only get the code and a one-line summary of intent, never the worker’s or Tech Lead’s conclusions.\n- **No path, no bug.** Filing a bug requires a concrete call chain and event ordering that triggers it. Speculative warnings get rejected.\n- **Tagged evidence.** Every claim needs a`file:line` pointer and an explicit tag: ran it, read it in code, or inferred it.\n- **Tailored fifth lens.** For concurrent flows, the agent traces the orderings that could expose partial state. For a numeric bound (such as a buffer or quota limit), it re-derives the invariants straight from the implementation.\n- **No half-checked reports.** If an agent is not sure about a claim, it runs another test or reads more code before reporting up. I do not want a list of “unverified” worries.\n- **Fact-check the PR text too.** Before opening or updating a PR, the Tech Lead checks the draft PR description and any tracking-issue note against the diff. That has already caught several overstated claims.\n- **Lock in settled calls.** Any trade-off I have already approved goes into the next review’s requirements so reviewers stop relitigating it.\n\n## Running Across Two Machines\n\nI added a second machine (a Mac mini) purely for more concurrent build slots. T3 Code links it as a remote environment, so the Tech Lead can spawn and coordinate workers there over messages; each remote worker creates its own git worktree before editing. Three practical quirks came up right away:\n\n- **No shared filesystem.** Every task spec sent to the remote host has to carry the full rule set, and workers return reports and patches inline in messages.\n- **Pushing from a remote worker is stricter.** Approvals given in the Tech Lead session don’t automatically carry into remote worker sessions. When session permissions blocked a push I had already approved, the remote worker exported a patch and checksum so the Tech Lead could verify it, recreate the commit on my laptop, and push from there.\n- **Tooling has to be set up twice.** The local gate had to be registered independently on the second host, and test dependencies installed there too.\n\nAn unexpected upside of keeping my role down to review and decisions is that the machine in front of me no longer needs to run builds. When I work from a coffee shop, I leave my main laptop and the Mac mini at home and carry a light MacBook Air running only the T3 Code client; for quick approvals or decisions, I can even steer the Tech Lead from my phone while both home machines keep running workers and builds.\n\n## When to Ask Me (and When Not To)\n\nWhen a worker or the Tech Lead hits an open question, it checks the design doc first and the rule files second. If the design doc already settles the question, the agent follows the doc without bringing it up; if an operational rule covers it, the agent applies the rule and notes it in the report later. Only questions neither source covers reach me, under four rules written after past corrections:\n\n- **Bring a recommendation.** Always list options along with your pick and the trade-offs. Handing me bare choices pushes all the homework back onto me.\n- **Lead with the decision.** Put what you need me to decide at the top, then brief context. Mention the PR number whenever referring to a task, and include full links.\n- **Own mistakes directly.** When walking back an earlier recommendation, say plainly what was wrong instead of brushing past it.\n- **Don’t re-ask on pre-approved actions.** Once a change passes review, pushing the branch, updating the PR description, and checking off the tracking issue are pre-approved; I handle all replies in review threads myself.\n\n## Where the Rules Come From\n\nEvery rule exists because something went wrong once. Rules live in files the Tech Lead loads at startup; it includes the rule set in every worker’s task spec and sends newly added rules to running workers as messages. Beyond the limits already mentioned above (the 1,500-line cap and PR numbers in status updates), a few rules currently in effect:\n\n- Anything the Tech Lead writes to GitHub (PR descriptions and tracking-issue updates) must stick to verified facts from the diff and tests.\n- Never comment in or resolve someone else’s review thread; leave teammate conversations to me.\n- Prove reachability before filing a bug; if it can be triggered in a released version, fix it no matter how rare.\n\nHere is what one of those rule files looks like:\n\n## Lessons So Far\n\n1. **Three of our biggest bugs were caught at three different layers.** Multi-angle review caught a design flaw; the local gate (a model from another provider) caught a worker edit suggested by the Tech Lead that broke something else; a teammate noticed an error path still logged`\"success\"` . By contrast, running another round in the same layer mostly brought back opinions on test style.\n2. **Nobody reviewed the Tech Lead’s instructions.** Worker code goes through three pre-push layers of checks, while instructions from the Tech Lead took effect immediately. Once the Tech Lead told a worker to swap two operations; nobody checked that instruction, and the local gate later caught that it exposed a half-closed state. Now any instruction that changes behavior goes through a skeptic agent first. Wording tweaks don’t.\n3. **Review loops quietly bloat PRs.** One PR’s tests grew from about 50 lines to 111 purely from two rounds of gate feedback. On an already-approved PR, push only what teammates asked for. Extra cleanups and test ideas from the gate belong in a separate PR.\n4. **Without clear exit rules, review never converges.** Across six local-gate runs over two days, not one passed within two rounds. Every edit to a test gave the next round something new to critique. We had no severity-based pass threshold during those runs, and I still settle two-round escalations by judgment today; without explicit severity rules, you end up closing every run by hand.\n5. **Throughput is limited by how often I have to decide.** On the busiest day for that storage feature alone, I made over twenty decisions across roughly sixty messages. Turning repeat decisions into written rules helps far more than faster models. Once “small review fixes skip the gate” became a rule, an entire class of interruptions disappeared.\n6. **Green checkmarks mean nothing until you check what ran.** A draft PR showed all green, yet CI had skipped tests and lint and finished in seconds. Once marked ready for review, the real suite ran for about 40 minutes. The local gate has the same blind spot: “passed” only means the diff matches the requirements you wrote. If the requirements are wrong, the gate cannot save you.\n7. **Agents fail quietly.** One worker hit an error and sat idle for hours without saying anything. Now a scheduled job runs every 30 minutes and notifies the Tech Lead if any worker has errored or gone quiet for over an hour. When everything is healthy, it stays silent.\n8. **Long sessions forget old decisions.** After context compaction, the Tech Lead forgot a decision from nine days earlier and recommended the opposite. The decision was saved in a handoff file, but buried where nothing read it back. Now each feature has a single decision log with dates and verbatim quotes, and the Tech Lead reads it right after compaction before recommending anything.\n9. **The bottleneck moves to your teammates.** Opening four PRs in a day hits the same handful of reviewers. Within a single feature, dependent PRs create natural backpressure when review slows down, since downstream work stalls until earlier PRs land. Across parallel tracks, though, reviewer bandwidth is still a hard ceiling. That is the real reason PRs have to stay small, descriptions have to be accurate, and multiple check layers have to run before you ask anyone for a review.\n\n## What It Costs\n\nI spend much less time writing feature code, and pay for it elsewhere:\n\n| Cost | What it looks like in practice | \n|---|---|\n| Human attention | Over twenty decisions on a single feature’s busiest day, each needing enough context to judge. Sloppy summaries slow this down fast. | \n| Teammates’ review time | PRs arrive much faster than before on the same small group of reviewers. Dependent PRs within a feature add natural backpressure, but parallel tracks still compete for the same bandwidth. | \n| Line-level familiarity | Because I rarely read worker diffs line by line, I have less feel for implementation details and rely heavily on the design doc, layered checks, and teammates’ eyes. | \n| Tech Lead mistakes | It has proposed bad fixes that I had to revert after the local gate flagged them, and overstated results (like reporting a draft PR’s skipped-test green check as full CI). | \n| Non-converging gate runs | Two failed rounds still end with me making the call, so that review time is partly wasted. | \n| Tooling lock-in | Session orchestration and remote hosts rely on [T3 Code](https://github.com/pingdotgg/t3code) , the local gate relies on[review-bridge](https://github.com/fengjiachun/review-bridge) , plus two model providers. | \n| Hardware | Each machine can only handle a few builds at once; more parallel tasks mean queuing or adding another box. | \n\nEverything runs on flat-rate subscriptions through existing agent CLIs rather than pay-per-token API billing: two top-tier plans at $200/month each ($400/month total). That is usually enough to cover this workflow without extra API spend.\n\n## Where to Start\n\nYou don’t need the whole setup on day one. Add pieces in order:\n\n1. Start with a design doc and a tracking issue. Only spin up workers for items on that list, never for undecided design work.\n2. Keep one long-running session as Tech Lead to write specs, assign tasks, review diffs, and report back, without letting it write feature code.\n3. Write down worker rules: diff size cap, test bar, report format, and what requires stopping to ask.\n4. Put at least two independent check layers in front of every push, including a skeptic agent trying to disprove findings. For the cross-provider local gate, you can drop in [review-bridge](https://github.com/fengjiachun/review-bridge) .\n5. Every time you correct an agent, write it down as a rule and include it in every worker’s task spec.\n6. Add a second machine once local build slots actually start backing up.", "url": "https://wpnews.pro/news/one-tech-lead-many-workers-my-ai-coding-workflow", "canonical_source": "https://fengjiachun.github.io/posts/tech-lead-ai-workflow/", "published_at": "2026-12-03 14:03:11+00:00", "updated_at": "2026-12-03 14:17:50.782332+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools"], "entities": ["T3 Code", "review-bridge", "pingdotgg", "fengjiachun"], "also_reported_by": [], "takeaway": "Cap each AI worker's pull request at 1,500 lines in its own git worktree and keep the authoring worker out of review, since handing an LLM your own conclusion makes it usually just agree.", "recommendation": {"advice": "Give each task its own worktree and a 1,500-line PR cap, and have a different-provider model review the diff against written requirements before the Tech Lead approves a push.", "playbook": "coding-agents", "playbook_url": "https://wpnews.pro/playbooks/coding-agents"}, "alternates": {"html": "https://wpnews.pro/news/one-tech-lead-many-workers-my-ai-coding-workflow", "markdown": "https://wpnews.pro/news/one-tech-lead-many-workers-my-ai-coding-workflow.md", "text": "https://wpnews.pro/news/one-tech-lead-many-workers-my-ai-coding-workflow.txt", "jsonld": "https://wpnews.pro/news/one-tech-lead-many-workers-my-ai-coding-workflow.jsonld"}}