Code Capsule's Backlog Loop: lessons from an AI factory

A Code Capsule post distills nine weeks of building Backlog Loop, a seven-stage AI coding workflow, into lessons on tests, sandboxing and verification.

A Code Capsule post (Oct 4, 2026) reports on nine weeks and 421 commits spent building Backlog Loop, a seven-stage AI coding workflow, and what it showed about where agents fail. The author says he does not recommend using the tool. He wants readers to take away the limitations it exposed. That makes it a field report, not a product launch.

The workflow runs each stage in a fresh session: an interview of the human, docs, plan, test-first, implement, test-integrity review and a correctness review that never reads the tests. State passes between stages through handover files in git. Two controls stand out. The implement stage is blocked from editing test files with operating-system permissions rather than a prompt instruction. A "gate" outside any model session reruns tests, mutation testing and static checks, because the author treats a model's own success report as untrustworthy.

The cautionary part is his own. Running it under Claude Code with --dangerously-skip-permissions, he stopped reading code. He then pointed the tool at itself, and says he had "zero empirical evidence" the setup beat a hand-run session. He also argues that single-agent correctness should come before multi-agent setups.

Others are landing on similar rules. foojay.io's process write-up protects approved tests from the implementing agent and caps review at three rounds. Ilya Razenshteyn's interviews with engineers found almost no one using software factories and mostly stock Claude Code or Codex workflows.

Our read: the portable ideas are test-first by a session that hasn't seen the code, enforced file permissions and checks run outside the model. You can apply them without the seven stages.

Sources