# bmad-loop First Look: AI Agents Build Entire Epics Overnight (Live Demo) <!-- ref: @content/youtube/bmad-code/2026-07-06-bmad-loop-first-look-autonomous-epic-builds version: 3 updated_at: 2026-10-31T18:20:53.700Z --> Brian (BMad Code, 2026-07-06): Brian and Paul argue that the original BMAD method's story-by-story human-in-the-loop cadence was a workaround for weak models, not a design goal — it was built when Sonnet 3.5 and early Cursor were state of the art. *Synthesized from Brian on BMad Code, 2026-07-06.* The first BMad Code live stream, with Brian hosting Paul — a senior IT consultant at a Pacific Northwest firm, longtime BMAD contributor since v3, author of the BMAD game dev studio module, and creator of the new BMAD Loop. ## Core Thesis Brian and Paul argue that the original BMAD method's story-by-story human-in-the-loop cadence was a workaround for weak models, not a design goal — it was built when Sonnet 3.5 and early Cursor were state of the art. Now that specs produced by BMAD's planning phase are good enough that operators mostly just approve whatever comes back, the remaining human step is pure overhead. BMAD Loop is their answer: a deterministic Python orchestrator that runs an entire epic unattended while keeping the planning discipline that separates it from open-ended looping. Their framing is that the "dark factory" for software, which they estimated was years off a few months earlier, has arrived in prototype form. ## Key Insights - The historical BMAD flow was PRD → architecture → epics and stories, then per story: scrum master builds a context file, one agent develops, another reviews, another applies the review. Five epics at 20-30 stories each meant that cycle repeated a hundred-plus times, burning tokens on context regeneration at every step. - Quickdev (introduced around 6.3, originally split as quick plan and quick dev, now one skill) is the piece that broke that pattern. You give it intent; if the detail is thin it asks questions and writes an implementation plan, then implements — ideal for adding one feature to a brownfield project without a full PRD-and-architecture pass. Brian says quickdev is on track to replace the manual development phase entirely, orchestrating create/implement/validate through subagents. - Their measured claim on spec value: yolo prototyping with current models (Fable, Claude, Codex) works far better than a year ago, but side-by-side against quickdev or full BMAD specs they see better results, fewer iterations, better tests, and closer adherence to intent. - Paul's motivation for BMAD Loop was operational fatigue plus a specific failure mode: the earlier BMAD Automator prototype kept its orchestrator inside a Claude session, which ran out of context mid-run and started signing off on work he wasn't happy with. Moving orchestration into deterministic Python outside the coding harness fixes that. - BMAD Loop is not naive looping. Where quickdev would flag that a story looks too large for one session, Loop splits it, writes the leftovers into a **deferred work ledger**, and reasons about ordering — if a story covers A, B and C, can the sprint proceed with C landing later? If yes, C gets deferred. - **Sweep** runs at the end of an epic (or on demand): it walks the deferred ledger, triages against current sprint status to find what is now unblocked, bundles those, executes them, and repeats — because resolving deferred work generates more deferred work. Default cap is two repeat runs, adjustable. - Escalation is the human-in-the-loop escape hatch, not the default. A critical halt — a missing library, a decision that would require altering a frozen spec, any rule flagged as do-not-modify — pauses the run and escalates in the TUI. `Shift+R` spawns a fresh resolve session seeded with the pause reason and escalations array; it proposes options and answers questions rather than handing you a flat prompt. Exiting the resolve session prompts you to resume the run. - Paul's live demo hit a real escalation with an empty escalations array — evidence it was not a code problem. The pause reason showed an editor-wedge flag: Unity's editor had hung and the failure surfaced as an MCP tool call failure. - **Why tmux is a hard dependency** (3.2 minimum, works on Linux, macOS, and Windows WSL): after the OpenClaw wave, headless Claude usage was restricted and then charged outside the subscription. Running real terminal sessions inside tmux panes sidesteps any repeat of that, and tmux's pane/window API makes it easy to scrape session output from plain Python without pushing that burden onto the coding harness. Users need to know exactly one tmux command — `Ctrl+B` then `D` to detach — and only if they attach into a session, which Paul puts at under 2% of the time. - Model-agnostic by design; what matters is the **coding harness**. Currently integrated: Claude, Codex, Gemini, and GitHub Copilot CLI. An Antigravity (AGY CLI) PR is in and expected to be a minor change; Cursor CLI is under consideration. The primary adapter and model are set in the settings menu — leave the model blank to use the harness default, or name it explicitly. - Harness support is gated on **hooks**, which is why it isn't 42 platforms. Hooks give deterministic control at specific points. Paul wrote an adapter API driven by a flat TOML file so a new harness with differently-named hooks (a "finish session" hook instead of a "stop" hook) can be mapped in configuration rather than by writing a new adapter and opening a PR. - Two installs, easily confused: `npx bmad-method next install` (edge release) with the core, method, and **loop** modules pulls in the loop skill and shows an acknowledgment screen only if you select loop; separately, UV installs the BMAD Loop executable into your local bin **once, globally**. Per project you then run `bmad-loop init`, which installs the skills and hooks. Codex users must launch Codex afterward and explicitly trust the new hooks. - It layers on standard BMAD output with no restructuring. The TUI reads `sprint-status.yaml` for the sprint and story view, and locates specs, epics and deferred work through the implementation-artifacts directory resolved from the BMAD config TOML. A half-finished existing project loads and displays correctly; only the run panel starts empty. - Everything the TUI does is available headless from the command line, so the whole thing can be driven by an outer agent. - Run modes: **per epic** (the expected default — start it, sleep, wake to a finished epic without burning unbounded credits), **none** (runs until you stop it or it exhausts epics), and a supervised mode approving each story spec with a retro at the end. Runs can also be scoped selectively by `epic-story` slug (e.g. 3-1, 4-1, 5-1), by epic number alone, or by epic plus a max-stories cap. `X` stops a run; resume picks it back up. - Worktree support was a top community request: worktrees per story or per run, with a target branch and a configurable project-root setting for monorepos. - Session logs persist, which Brian frames as the observability story for teams running this inside a company. - Their taxonomy note on the wider trend: loop engineering (as discussed by Karpathy, Boris, and Anthropic) means handing an LLM a goal and letting it work out the implementation. Without infinite tokens that degenerates into expensive vibe coding — great for prototypes, poor at building the thing you actually specified. BMAD Loop's bet is loops *on top of* good specs. - On AI-generated game assets, Paul's practical stack: Pixel Lab and Retro Diffusion both ship MCP servers and claim volunteer-sourced training data; image models like GPT-image or Nano Banana produce gradients rather than true pixel art, so an open-source tool called pixel snapper converts output into legitimate scalable pixel art. Models still fail at grid alignment — 64x64 tiles need hand adjustment. Local models on an M4 Mac handle image generation and LoRA training well even though local coding remains weak. - Both make the same point about prototypes: block out with primitives — pills and boxes in 3D, circles, squares and triangles in 2D — and prove the loop is fun before paying for art. Brian adds that he has insider knowledge of game companies quietly building AI pipelines they don't publicly acknowledge, on the reasoning that a multi-year dev cycle means you build now for where sentiment lands later. - The reason there is no BMAD v5: a local script accidentally published versions up to 5.1.x to npm, and npm's unpublish window is roughly 24 hours. Rather than announce a v5 that was already at 5.2 in the registry, they skipped to v6. Current release is 6.10. ## Actionable Takeaways 1. Install once globally via UV (the BMAD Loop executable lands in your local bin), then run `bmad-loop init` per project — the two steps are different and only the second repeats. 2. Install BMAD itself with `npx bmad-method next install` and explicitly select the **loop** module alongside core and method; the acknowledgment screen only appears if you do. 3. Ensure tmux 3.2 or newer is present. Learn `Ctrl+B` then `D`; that is the entire tmux requirement. 4. Adopt BMAD Loop on an existing half-done project without restructuring — as long as `sprint-status.yaml` tracks your position, the TUI reads it as-is. 5. Default to per-epic run mode for unattended overnight builds; it stops at the epic boundary rather than consuming credits indefinitely. 6. Scope a partial run by `epic-story` slug (3-1, 4-1, 5-1), by bare epic number, or by epic plus a max-story count when you only want the first N stories. 7. When a run escalates, press `Shift+R` to open a resolve session pre-loaded with the pause reason — check whether the escalations array is empty, which distinguishes an environment failure from a code problem. 8. Turn on worktrees per story or per run, and set the project-root option if you're in a monorepo. 9. Run a sweep at the end of each epic to triage the deferred ledger; raise the repeat cap above the default two if your deferred work tends to spawn more deferred work. 10. If you aren't using Loop yet, point quickdev at the deferred-work markdown file — it's a single text file — and work the items down one at a time. 11. To add an unsupported coding harness, map its hook names in the adapter TOML rather than writing a new adapter; the harness only needs hook support of some form. 12. For game prototypes, block out with primitives first and buy or generate art later; run image-model output through pixel snapper if you need genuine pixel art. ## Notable Quotes > "The idea wasn't just to throw a loop at something. It was to intelligently loop these things." — Paul > "Some deferred work defers even more work after it's been investigated and determined." — Paul > "The beginning of the dark factory is here with the BMAD loop." — Brian > "It doesn't matter if it existed, you'll make it exist." — a former manager of Paul's, as he recounts it > "Don't let a lack of artistic talent stop you from doing your things." — Brian --- *You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).* *Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*