首页 > AI前沿 > Self-Evolving Coding Rules for AI Coding Agents

Self-Evolving Coding Rules for AI Coding Agents

arXiv自然语言 2026-10-01 03:51 6 阅读 查看原文

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