Self-Evolving Coding Rules for AI Coding Agents
Zhengyuan Jiang, Reachal Wang, Yuepeng Hu, Yupu Wang, Yuqi Jia, Neil Zhenqiang Gong
Abstract
The performance of AI coding agents is highly dependent on their underlying coding rules. However, existing coding rules are typically hand-crafted and fixed, making the process labor-intensive and often suboptimal. In this work, we propose RuleEvolve, a self-evolving framework for coding rules. RuleEvolve maintains a pool of candidate coding rules and iteratively improves them. In each iteration, it employs an LLM-powered mutator module to generate variants from existing candidates, and then uses a judge module to evaluate these variants and update the pool with the best-performing ones. Extensive evaluations across two coding-agent frameworks, four backbone LLMs, and three benchmarks demonstrate that RuleEvolve outperforms both manual engineering and existing prompt optimization baselines in terms of functional correctness of the generated code, code length, and/or generation cost (e.g., tokens used).
Create a lesson
Metadata
- Categories
- cs.CL, cs.AI
- Comments
- Accepted by NeurIPS 2026
Related papers
IRTIQA: Evolving in English, Evaluated in Urdu -- Does Agent Self-Evolution Transfer from English to Urdu and Code-Switched Input?
Shared title terminologycs.CLAbdullah Hashmat, Danish Javed, Usman Naseem et al.
Sports Agent: A Self-Evolving System for Conversational Data Analytics
Shared title terminologycs.CLChao Chen, Fuqi Lin, Ze Chen et al.
My FAULT: Self-Diagnosis as Credit Assignment in Self-Evolving Agentic Reinforcement Learning
Shared title terminologycs.CLYihua Zhu, Qianying Liu, Weixu Qiao et al.
False Frontiers: Diagnosing and Mitigating Co-Cheating in Self-Evolving Search Agents
Shared title terminologycs.CLMeijia Chen, Hao Li, Zheng Lu et al.
A Guideline-Augmented Multi-Agent Framework for Schema-as-Code Biomedical Named Entity Recognition
Shared title terminologycs.CLSongtao Li, Shidi Zhang, Jianyuan Yuan et al.
AutoCompact: Learning When to Compact Context in Long-Horizon Coding Agents
Shared title terminologycs.CLXuan Zhang, Longtao Zheng, Cunxiao Du et al.