🤖 AI Summary
This work addresses the persistent issue of large language model–based coding agents repeatedly committing similar errors across multi-turn interactions due to an inability to continuously learn from human feedback. The authors propose a closed-loop, weight-free continual learning framework that transforms accepted human review comments into accumulative and transferable behavioral rules. By integrating versioned instruction files, pre-commit self-checklists, and automated validation mechanisms, the system enables cross-session self-improvement without model retraining. This approach achieves the first structured codification of engineering expertise, yielding 18 behavioral rules, over 15 language conventions, and 15 self-check items deployed across more than 35 microservice production environments. As a result, recurrence of specification violations is reduced to 0%, significantly enhancing both code quality and code review efficiency.
📝 Abstract
LLM-based coding agents repeat the same classes of mistakes across sessions because they lack a mechanism to retain corrections from human review feedback. We present a closed-loop framework in which every accepted review comment is codified as a persistent behavioral rule, progressively expanding the set of error classes the agent can self-detect. The framework combines an accumulating rule set in a version-controlled instruction file, a self-review checklist executed before code submission, and automated validation that ensures rule set integrity as it grows. In deployment across a 35+ service microservices platform, the rule set grew from 5 to 18 behavioral rules, 15+ language-specific standards, and a 15-item self-review checklist, all derived from real review feedback. We present empirical results from 11 recorded working sessions spanning code generation, PR review, incident investigation, and cross service refactoring. We observe that accumulated rules shift review effort from low-level correctness toward design-level validation, achieve a measured 0% recurrence rate for ruled-against error classes, and transfer across heterogeneous agent interfaces. We compare our approach against related work in experiential LLM learning (Reflexion, ExpeL, Voyager) and automated code review (CodeReviewer, SWE-bench agents), showing that our framework achieves persistent cross-session learning without weight updates, operates on production codebases rather than synthetic benchmarks, and addresses an orthogonal dimension (behavioral consistency over time) that existing benchmarks do not measure. The result is a coding agent that improves with every review cycle, accumulating the engineering wisdom of its human collaborators without changing a single model weight.