RuleEvolve automates coding rules for AI . Instead of relying on fixed hand-written rules, it keeps a pool of candidate rule sets and repeatedly creates mutated variants with an LLM, has a judge score them on code correctness, length, and generation cost, and keeps the best performers. A strategic mutation-allocation step decides which candidates get more mutations rather than allocating them naively.
Across two coding-agent frameworks, four backbone LLMs, and three coding benchmarks, RuleEvolve matched or improved functional correctness while reducing code length and/or generation cost relative to manual rules and prompt optimization baselines. In one BigCodeBench setting it cut average code length by over 60% without hurting pass rate. The result matters because coding rules are currently hand-crafted and labor-intensive, and this makes their improvement automatic and measurable.