# Stop Babysitting Your AI: Context Gathering & Code Review, Looped!
<!--
ref: @content/youtube/bmad-code/2026-07-13-stop-babysitting-your-ai-context-gathering-code-review-looped
tags: [spec-driven-development, context-window-management, ai-code-review, agent-orchestration, bmad-method, brownfield-engineering, technical-debt]
triggers: [context window exceeds 150k tokens, need for efficient code review, high defect rate in production, ineffective collaboration]
trigger_prompt: When the coding process feels overwhelming due to context limits or when code reviews yield too many defects, consider implementing QuickDev to streamline the workflow.
version: 2
updated_at: 2026-10-18T05:25:42.311Z
-->

Streamline AI-assisted development with QuickDev: a method for efficient context gathering and code review.

**[Watch on YouTube](https://www.youtube.com/watch?v=ufOyrZhRj6U)**

# Stop Babysitting Your AI: Context Gathering & Code Review, Looped!

*Synthesized from Brian (BMad) and Alexi Verhoski on BMad Code, 2026-07-13.*

Brian, creator of the BMAD method, hosts Alexi Verhoski — a 30-year software veteran (Microsoft, Oracle, ThoughtWorks, the world's largest hedge fund) who found BMAD around v5, sent patches, and became one of its largest open-source contributors and the primary driver behind QuickDev.

## Core Thesis
Alexi argues the two hard ceilings in AI-assisted development haven't moved much: the *usable* context window (roughly 100k tokens a year ago, maybe 150k now, regardless of advertised million-token windows) and human attention. QuickDev collapses what used to be three skills and ~30 interactive turns into a single skill that front-loads all human input, distills intent down to ~300 tokens, hands the coding agent a ~1,600-token prompt, then runs adversarial review sub-agents that triage their own findings — so the human's attention lands only at the start and the end. Neither of them believes spec-in/working-code-out with no human is close; Alexi sees no evidence it's coming.

## Key Insights
- Usable context degrades long before the advertised limit. Alexi ran a transformation over ~100 files at ~20k tokens each on Opus 4.7 with a million-token window; by 200–300k tokens quality visibly dropped, and by 400k the model had forgotten the instruction and was doing a generic "just make it better."
- Brainstorming tolerates a bloated context (you mostly need the last few turns); coding does not, because the model needs to remember precisely what it was told at the start. Middle-of-context is where recall is worst — the first five turns survive better than turns five through fifteen.
- QuickDev sizes work by two proxies: one user-visible feature, and a statement of intent under ~300 tokens (the full coding-agent prompt caps around 1,600). Alexi says these are research-backed, not invented, and the ballpark holds across his projects.
- Reviewers are deliberately starved of context. Three of the four review sub-agents don't know *why* the diff happened — feeding them the original reasoning makes them re-derive the same conclusions with the same weights and repeat the same mistakes. Alexi calls this information asymmetry used "deviously."
- One reviewer is adversarial by construction: given only the diff, find at least 10 things to fix. On a small change that yields roughly one real low-severity finding and nine items of noise — the triage step, not the finder, does the filtering.
- The newest layer is a **verification gap finder**: it doesn't ask "is this code correct," it asks "if this code were broken, would any gate have caught it?" It's now one of the four defaults.
- Never review in the session that wrote the code — it reports everything is fine. Different session is mandatory; different model with different weights is better still, and Alexi cites ~20–30% better findings when pairing e.g. Claude for code with an OpenAI model for review.
- The loop-back is the counterintuitive part: when triage determines the defect originated in the intent or the spec (not the coding step), QuickDev discards the diff and regenerates from that stage rather than patching. Regenerating 300 lines costs ~2 minutes of machine time; patching by hand was only ever the right move because humans are slow. Loop-backs are capped at three iterations to guarantee convergence.
- `deferred-work.md` is the anti-tangent mechanism. Unrelated pre-existing problems found during review get appended (never deduplicated, so no merge conflicts across a team) instead of fixed, keeping the diff atomic. Alexi drains it every week or two — ~40 raw findings dedupe to ~20, of which maybe 5 are actually worth doing.
- Alexi is skeptical of TDD as an LLM technique: with a proper spec and review pipeline in place, instructing the agent to write tests first produces roughly the same results at higher inference cost. Big vendor TDD improvement claims compare against pure vibe coding, i.e. against *no process at all*.
- Autonomy horizon has grown from "if it runs more than 15 seconds it's doing something bad" (a year ago) to ~40 minutes comfortable. Longer runs still produce code, but the cleanup cost exceeds the savings.
- PRDs are optional in brownfield work. In an existing codebase, Alexi says the source code already encodes the decisions a PRD would document; he needs one only for the first couple of epics, then an epic breakdown plus the code suffices.

## Actionable Takeaways
1. Treat ~100–150k tokens as the real coding-session budget, not the advertised window. Watch it "like an eagle" and terminate the session past that — 300k is tolerable for brainstorming, not for code.
2. Size a unit of work by two tests: is it one user-visible feature, and does the statement of intent fit under ~300 tokens? If yes, it fits one coding session. Keep the full coding-agent prompt under ~1,600 tokens.
3. Freeze the intent paragraph in the spec with an explicit "do not change this ever" — Alexi says that single instruction stops a large amount of downstream fantasizing.
4. Express acceptance criteria as an IO matrix (input → expected output per input class) wherever requirements fit that shape; fall back to a conventional AC list for the rest. Add a "what not to do" scope section.
5. Run reviews in a separate session — always. Give three of the four reviewers only the diff and the source, and withhold the intent. Keep the acceptance-criteria auditor as the one reviewer that reads the spec.
6. Keep all four default review layers on any real codebase with tests. Alexi's cost math: ~50k tokens and ~2 extra minutes of machine time versus a defect that a human tester has to find and report ("infinitely more expensive") or one that escapes to production.
7. Let the main session — the one that clarified intent and planned — do the finding triage. It's the best-positioned judge of severity and noise, and it's cheap.
8. Have triage classify *where* the defect was introduced. Coding-agent slip → patch. Bad spec → discard the diff and regenerate the spec. Missing information that only existed in your head → go back to the intent. Cap loop-backs at three.
9. Add a `deferred-work.md` append-only file for unrelated findings, and drain it at epic checkpoints. Promote the survivors into your story tracker and delete them from the file.
10. Structure epics so the risky design decisions land in story one. Review story one closely, then let stories 2–10 run unattended via BMAD Dev Auto and judge the end result. Alexi discards the whole run about one time in five — but that was all machine time.
11. Scope unattended runs to at most one epic. The binding constraint is human, not model: you cannot meaningfully review a 30,000-line diff in one sitting, even though you can now generate one in a day.
12. Skip the spec review step by saying so in the invocation (e.g. `/quickdev <story> skip this review`) — it lands early enough in the session that the model still honors it.

## Notable Quotes

> "The constraint increasingly becomes human attention." — Alexi Verhoski

> "So who's the bottleneck, the LLM or yours truly in this case?" — Alexi Verhoski

> "It's almost useless to run reviews on the same session that did the solution." — Alexi Verhoski

> "Any kind of compression is lossy — hence the human in the loop review at the end." — Alexi Verhoski

> "A year ago was basically medieval times. Now we are into early steam power tractors sort of territory." — Alexi Verhoski

> "It doesn't know what's important, what's not, in any given time." — Alexi Verhoski

> "You can generate it in a day, but you can't review it." — Alexi Verhoski

---

*Related: `@content/youtube/ai-jason/2026-07-20-tmux-fable-cut-35-less-token` · `@content/youtube/patrick-ellis/2025-09-14-anthropics-new-claude-code-review-agent-full-open-source-wor` · `@content/youtube/no-priors/2026-03-20-skill-issue-andrej-karpathy-on-code-agents-autoresearch-and` · `@content/youtube/bmad-code/2026-05-04-we-are-doing-ux-backwards-the-designer-behind-the` · `@content/youtube/david-ondrej/2026-06-12-if-you-don-t-run-pi-locally-you-re-falling-behind`*

---

*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).*