- /
- Quests/
- What makes a feedback loop with an AI coding agent actually effective — surfacing real problems fast and turning fixes into durable, reusable knowledge — rather than just patching symptoms one at a time?/
What makes a feedback loop with an AI coding agent actually effective — surfacing real problems fast and turning fixes into durable, reusable knowledge — rather than just patching symptoms one at a time?
Status: active
Config: journals/quests/config/effective-ai-feedback-loops.yaml
The Answer So Far #
Cycle 7 reveals a critical tension: while the shift to human-supervised autonomous loops is nearly complete, a landmark study shows that a “behavioral harness” can increase cost without improving results, challenging the simple assumption that all feedback loops are inherently effective. The focus now sharpens from whether to build loops to how to design effective ones and manage their risks, particularly the newly identified problem of stale, persistent agent memory. The term “Agentic Verification” has emerged to describe the practice of making verification, not generation, the bottleneck. An empirical study of 2,303 context files (arXiv 2511.12884) still finds that the mere presence of a CLAUDE.md file has a massive impact on rule adherence (improving it from 0% to ~68%), but new community wisdom suggests keeping the root file under 200 lines and using it as an index to path-scoped rule files (Claude Code for Teams Playbook).
Working hypothesis, anchored on this project’s own bug escalation ritual (dev/docs/rituals/BUG_RITUAL.md): effective AI feedback loops require (a) root-cause diagnosis before fixing, (b) promoting recurring point-fixes to durable directives/rules, and (c) an explicit escalation path with external verification.
Hypothesis (a) (diagnose-first) is reinforced with more sophisticated, scalable patterns. The core idea is strongly corroborated by multiple sources arguing for separating diagnosis from repair to avoid “debugging debt”—accepting a patch without understanding the failure (AI Can Fix The Bug…). This is implemented in practice through structured prompts that demand a root-cause analysis before any code is modified (Better Programming) and by separating incident response into a “quick fix to stop the bleeding” and a “proper fix” for the underlying cause (Santekno.com). At scale, this pattern is implemented via “intelligent binning,” where an AI system first clusters seemingly unrelated test failures to find a common root cause before launching a dedicated diagnostic agent (ChipAgents Blog). This approach is validated in other industries, where AI is used to connect fragmented deviation reports to find systemic process flaws rather than defaulting to “human error” (From Deviation to CAPA).
Hypothesis (b) (promote-to-durable-knowledge) is massively reinforced but now faces a critical challenge: memory integrity. The shift from flat-file rules to structured memory is well-established, with a richer vocabulary distinguishing between memory types like semantic, episodic, and procedural (Kore.ai, Level Up Coding). Practical patterns for creating this knowledge are also emerging, such as treating agent instructions as a “living incident log” where fixes are added as standing orders to prevent bug classes from recurring (How I Build Agents), and implementing an explicit “write-back ritual” at the end of a session to ensure lessons are durable (Astra GTM). However, this progress is tempered by the critical risk of stale memory: an agent can confidently retrieve and act on outdated information, creating dangerous, hard-to-detect failures (I Gave an AI Agent Memory…). This elevates the problem from knowledge capture to knowledge lifecycle management, where verification and invalidation of stored memory are now essential.
Hypothesis (c) (escalation and verification) has matured into the dominant paradigm of “Agentic Verification,” but with a significant contradictory finding that demands more careful loop design. The central idea, articulated by Addy Osmani and Boris Cherny, is that the developer’s role is shifting from writing prompts to designing verifiable loops that run autonomously, because verification is now the bottleneck, not code generation (Elevate, Business Insider). This is powerfully demonstrated by commercial tooling that automates the full cycle: a chaos engineering tool now deliberately induces a failure, generates a fix, and automatically reruns the test to verify its effectiveness (Gremlin). A new, cost-effective pattern for AI-to-AI review has also emerged: using a cheap model on every PR and escalating to a stronger model only when the cheap one finds a potential issue, which finds more bugs for the same cost (Entelligence AI). However, a surprising experiment from Martin Fowler found that for a capable model, adding a “behavioral harness” of guides and sensors actually increased cost and time without improving the success rate, suggesting that the design of the loop is critical and a poorly-designed or unnecessary loop can be counterproductive (Martin Fowler). This finding provides a crucial counterbalance to the prevailing wisdom, shifting the focus to designing loops that are appropriate to the task and agent capability.
The open question of what diagnosis and escalation look like at scale is now answered with concrete production examples. Boris Cherny reports running hundreds of agents during the day and thousands overnight, using cron-scheduled loops to automate PR management, fix flaky tests, and aggregate user feedback, having not responded to a code review manually in months (Instagram). This is augmented by automated AI-to-AI review protocols that directly address the degradation of human review by using techniques like cost-effective routing (Entelligence AI) and specialized review agents that can trace multi-step exploit paths beyond the scope of human reviewers (Aikido Security).
Net assessment across cycles 1–7: The working hypothesis remains strongly validated but is now understood with far greater nuance and a healthy dose of skepticism. Hypothesis (a) is reinforced with scalable, industrial-grade patterns. Hypothesis (b) has matured to include the critical challenge of managing the memory lifecycle to prevent confident errors from stale data. Hypothesis (c) has a new, dominant vocabulary (“Agentic Verification”) and powerful new implementation patterns, but is now qualified by a significant contradictory result showing that feedback loops are not a panacea and can be counterproductive if poorly designed. The core challenge has evolved from building feedback loops to designing efficient, reliable, and safe ones.
How We’re Looking #
Keywords: "feedback loop" AI coding agent, AI code review escalation OR ritual, "root cause" AI generated bug fix, AI pair programming retrospective OR postmortem, CLAUDE.md directive OR ritual pattern, "class of bug" AI agent prevention, AI agent self-correction OR learning workflow, AI coding agent memory OR institutional knowledge
Watch authors: Boris Cherny, Simon Willison
Preferred sources: docs.anthropic.com, simonwillison.net, martinfowler.com, news.ycombinator.com, github.com/anthropics
Negative filters: beginner content, “getting started” tutorials
How this journal works #
Updated every 14 days: a search for new evidence on this question (8 search terms) classifies each item as supporting, contradictory or contextual, then rewrites The Answer So Far. Each update is an entry below; the previous answer is kept in Synthesis History.
Earlier history (to 17 October 2026): the evidence and synthesis history from before updates were stored as entries.
Entries
Strategy Changelog #
| Date | Change |
|---|---|
| 2026-07-26 | Quest created; seed question anchored on this project’s own BUG_RITUAL.md as reference mechanism |
| 2026-07-26 | First gather cycle; strongly supporting — Boris Cherny (CLAUDE.md anti-pattern capture) and Simon Willison/Jesse Vincent (Root Cause Tracing) independently converge on both halves of the hypothesis; Kiro’s “sledgehammer problem” and preservation-property testing flag a concrete gap in BUG_RITUAL’s current test-first protocol; Ankit Jain’s proactive risk-routing identified as a complementary (not competing) escalation mechanism for hypothesis (c); “ritual approval” terminology caution noted from same-week industry coverage |
| 2026-07-27 | Second gather cycle; significant — two further independent convergences on hypothesis (b) (Willison’s “hoard things you know how to do,” Osmani’s AGENTS.md self-improving loop), but also the first real refinement: a dev.to deep-dive shows naive unbounded CLAUDE.md rule accumulation degrades instruction-following past ~200 lines, meaning durable capture must route through an enforcement hierarchy (hooks/skills/scoped-rules) rather than flat accumulation — a limit this project’s own DIRECTIVE_PLACEMENT_RITUAL.md had already anticipated. Boris Cherny’s June 2026 “loop engineering” shift and the /goal command noted as a contextual signal that automated self-verification is creeping into the fast agentic-coding loop |
| 2026-07-29 | Third gather cycle; significant — Boris Cherny’s “Steps of AI Adoption” maturity framework (five stages, Gated→AI-native) surfaces the first genuinely open structural question for hypothesis (c): BUG_RITUAL’s per-fix human-escalation design matches only the “Parallel” (~10 agents/dev) stage; beyond that, verification itself gets delegated to AI, and no source yet describes what escalation looks like at that point. Separately, Simon Willison’s fireside chat with Claude Code’s own Cat Wu and Thariq Shihipar gives primary-source confirmation (system prompt cut ~70-80% by removing “lists of things not to do”; Claude Tag’s per-channel scoped memory files) that cycle 2’s enforcement-hierarchy refinement to hypothesis (b) is the reference implementation’s own shipped practice, not just outside commentary. Cloudflare’s break-glass case study (0.6% override rate at scale) and a NotebookLM-as-external-brain piece add reinforcing, non-novel data points for hypothesis (c) and (b) respectively |
| 2026-08-02 | Fourth gather cycle; incremental — a Fortune interview with Boris Cherny (tens of thousands of agents managed at once; Claude Code “doing its own security review”; human wakes up to overnight-completed work) gives cycle 3’s open “escalation at scale” question its first concrete empirical texture (self-review plus periodic spot-check), but doesn’t resolve it or establish a proven pattern — no structural change to the working hypothesis. A BSWEN piece explains generic CLAUDE.md directives lose to system-prompt directives on position, not just volume, and recommends pairing rules with rationale — independently validates (doesn’t extend) BUG_RITUAL’s existing guard-comment-with-rationale design |