AI Coding Agents Self-Improve with Accumulated Behavioral Rules.

Aditya Aggarwal, Nahid Farhady Ghalaty· July 16, 2026 View original

Summary

This paper introduces a closed-loop framework enabling AI coding agents to self-improve by codifying human review feedback into persistent behavioral rules. This approach reduces error recurrence, shifts review effort to design, and transfers across agent interfaces without model weight updates.

This research presents a novel closed-loop framework designed to enable AI coding agents to continuously improve their performance by learning from human feedback. The core idea is to transform every accepted human review comment into a persistent behavioral rule, which is then added to an accumulating rule set. This rule set, stored in a version-controlled instruction file, allows the agent to self-detect and correct error classes it previously made. The framework integrates a self-review checklist, executed by the agent before code submission, and automated validation to ensure the integrity of the growing rule set. In a deployment across a microservices platform, the rule set expanded significantly, incorporating numerous behavioral rules, language-specific standards, and a self-review checklist derived from real-world feedback. Empirical results from 11 working sessions demonstrated that these accumulated rules effectively shift human review effort from low-level correctness checks to higher-level design validation. Crucially, the framework achieved a measured 0% recurrence rate for error classes covered by the rules, and these learned behaviors successfully transferred across different agent interfaces. This approach offers persistent, cross-session learning without requiring model weight updates, addressing a critical gap in existing LLM learning methods.

Why it matters

Engineering teams can significantly enhance the efficiency and reliability of AI coding agents by implementing this framework, reducing repetitive errors and allowing human developers to focus on higher-value design and architectural decisions. It offers a practical path to continuous agent improvement.

How to implement this in your domain

  1. 1Establish a version-controlled repository for accumulating behavioral rules derived from human code review feedback.
  2. 2Integrate a self-review checklist into AI coding agent workflows, prompting agents to apply learned rules before submission.
  3. 3Develop automated validation mechanisms to ensure the consistency and integrity of the growing rule set.
  4. 4Train human reviewers to articulate feedback in a structured way that can be easily codified into behavioral rules for agents.

Who benefits

Software DevelopmentIT ServicesAI DevelopmentTech Consulting

Key takeaways

  • AI coding agents can self-improve by codifying human review feedback into persistent behavioral rules.
  • This closed-loop framework reduces the recurrence of specific error classes to zero.
  • It shifts human review effort from low-level correctness to higher-level design validation.
  • The learned rules transfer across different agent interfaces without requiring model weight updates.

Original post by Aditya Aggarwal, Nahid Farhady Ghalaty

"arXiv:2607.13091v1 Announce Type: cross 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…"

View on X

Originally posted by Aditya Aggarwal, Nahid Farhady Ghalaty on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses