atlas

Research map / Multi-agent systems and games / LLM agents

MaintainCoder: Maintainable Code Generation Under Dynamic Requirements

NeurIPS 2025 · Multi-agent systems and games › LLM agents · approach: Software engineering agent benchmarks · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces MaintainBench, a requirement-change benchmark built from HumanEval, MBPP, APPS, CodeContests, and xCodeEval, and MaintainCoder, a multi-agent waterfall-style pipeline with design-pattern selection that targets maintainable code under evolving requirements.

Problem

Code generators are evaluated on static correctness and ignore maintainability, i.e., how cheaply initial code can adapt to evolving requirements; static metrics like MI and cyclomatic complexity do not capture this dynamic aspect.

Approach

Combine Waterfall-stage agents (requirements analysis, design pattern selection, framework design and evaluation, code generation and optimization) to produce modular code, and measure maintainability dynamically by probing initial code with four requirement-change types and measuring post-change Pass@k, AST similarity, and code diff.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply MaintainCoder rather than the GPT-4o-mini baselineGPT-4o-mini · APPS-DynPass@5 (%): 35.5 -> 50.5Helped
Apply MaintainCoder rather than the GPT-4o-mini baselineGPT-4o-mini · CodeContests-DynPass@5 (%): 24.2 -> 32.6Helped
Apply MaintainCoder rather than the GPT-4o-mini baselineGPT-4o-mini · xCodeEval-DynPass@5 (%): 23.4 -> 27.3Helped
Add framework evaluation (ablation)MaintainCoder with GPT-4o-mini · APPS-DynPass@5 (%): 49.00 -> 50.50Helped
Add framework evaluation (ablation)MaintainCoder with GPT-4o-mini · CodeContests-DynPass@5 (%): 31.82 -> 32.58Helped
Add framework evaluation (ablation)MaintainCoder with GPT-4o-mini · xCodeEval-DynPass@5 (%): 20.31 -> 27.34Helped
Add code optimization (ablation)MaintainCoder with GPT-4o-mini · APPS-DynPass@5 (%): 40.00 -> 50.50Helped
Add code optimization (ablation)MaintainCoder with GPT-4o-mini · CodeContests-DynPass@5 (%): 28.03 -> 32.58Helped
Add code optimization (ablation)MaintainCoder with GPT-4o-mini · xCodeEval-DynPass@5 (%): 17.19 -> 27.34Helped
Add framework evaluation (ablation)MaintainCoder with DeepSeek-V3 · APPS-DynPass@5 (%): 61.00 -> 62.50Helped
Add code optimization (ablation)MaintainCoder with DeepSeek-V3 · APPS-DynPass@5 (%): 48.50 -> 62.50Helped

Surprising findings

Limitations

Experimental setup

Datasets: HumanEval MBPP APPS CodeContests xCodeEval

Benchmarks: MaintainBench (HumanEval-Dyn, MBPP-Dyn, APPS-Dyn, CodeContests-Dyn, xCodeEval-Dyn) HumanEval MBPP APPS CodeContests xCodeEval

Metrics: Pass@k Maintainability Index Cyclomatic Complexity AST similarity Code diff (relative and absolute)

Baselines: GPT-4o-mini DeepSeek-V3 Claude-3.5-Sonnet Claude-3.7-Sonnet Gemini-2.5-Flash-Preview GPT-4o Qwen-Plus AgentCoder MapCoder EvoMAC MetaGPT o3-mini

Builds on: AutoGen MapCoder AgentCoder EvoMAC

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy