TL;DR
While current AI coding agents excel at generating code from a single prompt, they struggle significantly when acting as long-term development partners. This paper introduces EvoCode-Bench, a multi-turn benchmark that evaluates agents across 5–15 rounds of evolving and conflicting requirements within a persistent workspace. The findings reveal a massive gap between single-round capabilities and multi-turn persistence, showing that state-of-the-art models frequently break their own codebases over time.
What Problem Does This Paper Address?
Most existing coding benchmarks (like SWE-bench or HumanEval) evaluate an AI agent based on a single specification followed by a single final assessment. This "one-and-done" approach misses the core reality of software engineering: development is iterative. In practice, users add features, change constraints, and correct behaviors over multiple interactions.
When an agent operates in a persistent workspace, its early design choices constrain its future work. If an agent cannot successfully track changing specifications or prevent regressions, the codebase quickly degrades. This paper addresses the lack of evaluation frameworks designed to measure whether an agent can maintain its own codebase as requirements change over time.
Methods
The authors introduce EvoCode-Bench and extend the open-source Harbor framework to support persistent multi-turn evaluation.
- Persistent Workspace: Instead of resetting the environment after every turn, the agent operates within a single, continuous Docker container and session across all rounds of a task.
- Cumulative Verification: At each round $i$, the evaluation framework runs a test suite that checks both the newly introduced requirements and all previously established, still-active requirements.
- Fail-Stop Scoring: To keep the failure points interpretable, the evaluation terminates immediately the first time an agent fails a round's cumulative tests. This prevents cascading errors from muddying the diagnostic data.
- Evaluation Metrics: The benchmark evaluates agents using two primary metrics:
- MT@4: A multi-turn score across four independent attempts under the fail-stop protocol.
- SR (Single-Round): An isolated score where the agent's workspace is fast-forwarded using a human-authored reference solution to a clean state right before the target round.
Datasets
EvoCode-Bench contains 26 multi-round tasks comprising 227 evaluated rounds (ranging from 5 to 15 rounds per task). The benchmark covers six broad technical domains, including ML & MLOps, data engineering, systems programming, and infrastructure/security.
To simulate realistic software evolution, individual rounds are annotated with requirement-change pressures:
- Extension (198 rounds): Adding new capabilities without altering existing behavior.
- Correction (69 rounds): Adjusting previously established behavior.
- Conflict (42 rounds): Overturning a core assumption, requiring structural adaptation.
Key Insights and Ideas
- The "Workspace State Penalty": For most agents, single-round performance (SR) exceeds multi-turn performance (MT@4) by 22 to 40 points. Agents are reasonably skilled at following isolated instructions from a perfect baseline, but struggle to build upon their own imperfect implementations.
- Multi-Turn Evaluation Re-Ranks Models: Relying solely on single-turn metrics can lead to deceptive rankings. For example,
Claude-Opus-4.6achieved the highest single-round score (78.9 SR) but dropped to third place in persistent multi-turn execution (44.0 MT@4). - Failure Modes are Tier-Dependent: Weaker models fail early due to a basic inability to satisfy requirements. Top-tier models survive longer but eventually break due to regressions (breaking previously working code during edits) or conflict mishandling (failing to purge obsolete code when requirements change).
Key Results
- Low Overall Success: Only two agents managed to clear half of the multi-turn credit: Claude-Opus-4.7 (54.0 MT@4) and GPT-5.5 (52.4 MT@4).
- Rapid Performance Degradation: The aggregate pass rate drops below half of round-1 performance by round 5, plummeting to just 7.7% by round 10.
- Token Bloat in Failure: When agents struggle or fail a round, they produce 1.1–3.1× more output tokens than they do during successful rounds, indicating that harder workspace states cause agents to enter verbose, unproductive loops.
Limitations and Future Work
- Benchmark Scale: Due to the high cost of manually authoring coherent requirement chains, reference solutions, and cumulative test suites, the dataset is relatively small (26 tasks).
- No Recovery Assessment: The strict fail-stop design does not evaluate whether an agent can repair a workspace once it has introduced a breaking change.
- Subjective and Collaborative Coding: The benchmark is limited to tasks with objective, executable verifiers, leaving out subjective code quality judgments or multi-agent collaboration.
- Future Direction: The authors propose moving toward adaptive multi-turn evaluation, where an examiner agent dynamically generates instructions based on the evaluated agent's current workspace state to efficiently map out its exact failure boundaries.
Summary updated