# bmad-loop First Look: AI Agents Build Entire Epics Overnight (Live Demo) <!-- ref: @content/youtube/bmad-code/2026-07-06-bmad-loop-first-look-agents-build-epics-overnight version: 3 updated_at: 2026-10-31T19:21:18.599Z --> From BMad Code, 2026-07-06: The BMad Method's original human-in-the-loop cycle — scrum master creates a story, one agent implements it, another reviews it, a third applies the fixes, you judge, repeat — was a necessity of the Sonnet 3.5 and early Cursor era, and models have outgrown it. *Synthesized from Brian (BMad Code) with Paul "Pinky D" on BMad Code, 2026-07-06.* Brian, creator of the BMad Method, hosts his first live stream with Paul — a senior IT consultant at Rice Systems in the Pacific Northwest, a contributor since BMad v3 who built the BMad game dev studio module and now the new bmad-loop. ## Core Thesis The BMad Method's original human-in-the-loop cycle — scrum master creates a story, one agent implements it, another reviews it, a third applies the fixes, you judge, repeat — was a necessity of the Sonnet 3.5 and early Cursor era, and models have outgrown it. Paul and Brian argue the answer isn't to hand an LLM a goal and let it loop freely (that's vibe coding with more token burn), but to keep BMad's front-loaded planning so the specs are trustworthy, then automate the execution deterministically. bmad-loop is that execution layer: a Python TUI and headless CLI that runs an epic's stories end to end, splits work that won't fit, defers what can wait, and only interrupts you when something genuinely blocks. ## Key Insights - **The manual dev phase is being retired.** Brian said quickdev — introduced around version 6.3, originally two skills called quick plan and quick dev, now merged into one — will replace the create-story / implement / validate / fix cycle entirely. You give quickdev an intent; if the details are thin it drafts an implementation plan, asks clarifying questions, then builds. It's the tool for brownfield work where a full PRD, brainstorm and architecture pass is overkill for one feature. - **Specs, not loops, are the differentiator.** Brian said side-by-side tests of raw agent work against quickdev-specified work — including with recent frontier models — consistently gave BMad fewer iterations, better test quality, and closer adherence to intent. His framing: loop engineering alone works for prototypes, but without planning you burn cycles producing something that isn't what you wanted. - **Intelligent iteration, not a naive Ralph loop.** Paul's stated goal was deterministic completion of confident specs — including re-running a story until it's actually done and the tests are built — rather than just wrapping a while-loop around an agent. - **Heuristic splitting replaces the "this is too big" warning.** Where quickdev would tell you a spec looks like roughly 2,800 tokens and suggest you split it, bmad-loop splits it itself and writes the remainder into a deferred work log, reasoning about which slice would block the rest of the sprint if left undone. - **Deferred work is a single-file ledger with a sweep.** Items land in it in two main places — spec generation and the two-or-three-agent review cycle, which triages each finding into address-now, defer, or discard. A sweep, configured to fire at the end of an epic or invoked on demand, reads the ledger against sprint status, bundles everything now-actionable, executes it, and repeats. Default cap is 2 repeat passes, adjustable — necessary because resolving deferred work discovers more deferred work. - **Escalation is a fresh agent, not a menu.** When a run hits a critical halt — a missing library, a decision that would require altering a frozen spec, a rule flag — the TUI pauses the run and marks the session escalated. Shift+R spawns a throwaway session preloaded with the pause context, which proposes options and answers your questions; exiting prompts you to resume the run. Paul deliberately rejected static prompts and 1/2/3 option menus because users often won't know why the halt matters. - **The demo's escalation was mundane and instructive.** A wedged Unity editor. The escalations array was empty because nothing was code-related; the pause reason read as an editor-wedge test-on-run condition. Fixing the editor and resuming was the whole resolution. - **tmux is a deliberate hedge against headless restrictions.** Paul explained the design avoids headless coding-assistant mode entirely — after the openclaw episode, headless Claude use was restricted and, as he described it, moved outside subscription billing. bmad-loop instead drives real terminal TUI sessions. The second reason is scraping: tmux's pane and window ecosystem lets plain Python read and control session state without burdening the orchestrator or the coding harness. - **tmux knowledge required: essentially one keystroke.** Minimum version 3.2. Users only need detach (Ctrl-B then D), and only if they attach into a running session — Paul put that at roughly 2% of usage. Escalations, deferred work, and sweeps need none of it. - **Model-agnostic, harness-specific.** bmad-loop doesn't care about the model; the coding harness is what's integrated. Currently Claude, Codex, Gemini, and GitHub Copilot CLI. Antigravity has a community PR pending; Cursor CLI is under consideration. Settings take a primary adapter plus an optional model name — leave it blank and it uses the harness default. - **Hooks are the gate on platform support.** BMad supports 42 platforms; bmad-loop supports four because it needs hook support for deterministic control at specific points. Paul wrote an adapter API driven by a flat TOML file so a harness with, say, a finish-session hook instead of a stop hook can be mapped by name rather than by writing a new adapter and opening a PR. - **Run scoping is granular.** The most common mode is per-epic — start it and let it work overnight, with the epic boundary as the stop so it doesn't burn through your whole backlog. Mode "none" runs until you stop it or it exhausts epics. You can also approve each story spec individually and retrospect. The run form takes an epic, an explicit story list by epic-dash-story slug, and a max-story cap. X stops the run; it resumes cleanly. - **It layers onto existing projects.** bmad-loop reads sprint-status.yaml and finds the implementation artifacts directory from your BMad config TOML — so a project already halfway through its stories can load the TUI and see its sprint state immediately. It also supports worktrees, per story or per run, with a target branch and a project-root setting for monorepos. - **Two-stage install with a global and a per-project half.** The executable installs once via UV into your local bin and works on any project; `bmad-loop init` must be run per project to install the skills and hooks, and settings live per project in a policy TOML. - **Codex users must trust hooks manually.** Because the install writes new hooks, you have to launch Codex afterward and accept the trust prompt. - **The missing v5 was an npm accident.** A stray local script published 5.x versions of BMad Method to npm while the real v5 alpha lived on a separate private branch. npm's unpublish window is roughly 24 hours; after that the numbers were gone for good, so the release became v6. - **On AI game assets:** Paul flagged consistency as the commercial blocker and pointed at Pixel Lab and Retro Diffusion, both of which ship MCP servers and claim ethically sourced training data. For generic image models, output isn't true pixel art — gradients leak in — so he pointed at the open-source pixel snapper project to convert generated images into real, scalable pixel art. Both hosts pushed prototyping with primitives: capsules and blocks in 3D, circles, squares and triangles in 2D, with assets layered in only once the loop is fun. ## Actionable Takeaways 1. Install with `npx bmad-method@next install` and explicitly select core, method, and loop — loop is on the edge release channel, and selecting it triggers an acknowledgement screen telling you to run the setup skill afterward. 2. Run `bmad-loop init` in every project. The executable itself installs globally into your local bin via UV, but skills, hooks, and the policy TOML are per project. 3. Install tmux 3.2 or newer first. Learn exactly one thing: Ctrl-B then D to detach. 4. Point it at an existing project by making sure sprint-status.yaml is present — that plus your BMad config TOML is all it needs to display sprint state and start a run. 5. Default to per-epic runs for unattended work. It stops at the epic boundary rather than consuming your entire backlog while you sleep. 6. To run a hand-picked subset, enter story slugs as epic-dash-story (for example 31, 41, 51) rather than prose — the field is deterministic to save tokens, not LLM-parsed. 7. Use the max-story field when you want only the first N stories of an epic. 8. If you're not on bmad-loop yet, handle deferred work by pointing quickdev at the deferred-work markdown file and working the items one at a time. 9. Enable worktrees per story or per run when working in a monorepo, and set the project-root option so snapshots scope correctly. 10. If you're on Codex, launch it once after init and accept the hook trust prompt or the run won't work. 11. Adding a new harness: map its hook names in the adapter TOML instead of writing code — a finish-session hook can stand in for a stop hook without a PR. 12. Everything in the TUI is available headless from the command line, so the same runs can be driven from an outer agent or CI. ## Notable Quotes > "It was to intelligently loop these things. It was to intelligently reiterate." — Paul "Pinky D" > "the beginning of the dark factory is here with the BMad loop" — Brian > "It is going to replace the full development phase of the BMad Method." — Brian, on quickdev > "It breaks down to a miswrite in the version info when we created the npm build" — Paul "Pinky D", on why there is no v5 > "by the time I went through the deferred work file, I had another 10 items of deferred work" — Paul "Pinky D" > "I am a very big veteran of circles and squares." — Paul "Pinky D" > "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).*