NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

CodeClash: Benchmarking Goal-Oriented Software Engineering

John Yang, Kilian Lieret, Joyce Yang, Carlos E. Jimenez, Muhtasham Oblokulov, Aryan Siddiqui, Ofir Press, Ludwig Schmidt, Diyi Yang

Introduction

Existing coding benchmarks evaluate Large Language Models (LMs) on concrete, well-specified tasks such as fixing bugs or writing tests. However, human programmers do not spend all day addressing isolated GitHub issues. Real-world software development is grounded in the pursuit of high-level goals. Evaluating whether LMs can iteratively develop code to accomplish open-ended objectives without explicit guidance remains an open challenge.

CodeClash is a novel benchmark designed to bridge this gap. By pitting LMs against each other in multi-round tournaments across various game arenas, CodeClash requires models to iteratively develop, analyze, and maintain codebases to achieve high-level objectives. The results reveal a significant gap between current AI capabilities and expert human programmers.

The Limitation of Micro-Task Benchmarks

Most existing coding benchmarks evaluate models on "micro-tasks"—isolated units of work like fixing a specific bug or implementing a single algorithm based on a detailed prompt. Real-world software engineering is rarely that well-defined. Human developers work toward high-level goals (e.g., "improve user retention" or "outperform a competitor") and must decide for themselves how to decompose these goals into actionable code changes.

CodeClash addresses the lack of benchmarks testing agency and iterative development. It asks a critical question: Can an LM agent look at a complex system, analyze performance logs from a previous deployment, and strategically decide what to change next without explicit instructions?

The CodeClash Framework

CodeClash employs a tournament-style framework that follows a recurring loop:

  1. Edit Phase: An LM agent, utilizing a lightweight interface called mini-SWE-agent, is given a codebase and a budget of 30 turns. It uses bash commands to explore the repository, write analysis scripts, and modify the source code.
  2. Competition Phase: The modified codebases from different models are placed in a "Code Arena" where they compete head-to-head in environments like tank combat or poker matches.
  3. Feedback Loop: The arena generates gigabytes of execution logs, which are copied back into the agent's codebase. Crucially, the agents operate on a "codebase-as-memory" principle—they have no memory of previous rounds other than what they choose to record in their own files.

Models are ranked using Elo ratings derived from over 25,000 tournament rounds. To measure the gap between AI and humans, the authors also introduce CC:Ladder, a progression of human-authored bots that models must defeat.

Competitive Arenas

CodeClash evaluates models across six diverse competitive arenas:

  • BattleSnake: Grid-based survival and territory control.
  • Core War: Assembly programs competing for shared memory.
  • Halite: Resource collection and expansion on a grid.
  • Poker: No-limit Texas Hold’em.
  • RoboCode: Tank combat involving movement and scanning.
  • RobotRumble: Turn-based grid battles with spawning units.

Additionally, the project open-sources nine "training arenas" (including Chess, Bridge, and Figgie) to facilitate future research into self-improving agents.

Key Findings and Insights

Strategic Reasoning vs. Coding Proficiency

While models are highly proficient at using bash commands (achieving an 85%+ success rate) and writing syntactically correct code, they struggle significantly with high-level strategy. Models frequently "hallucinate" the reasons for a loss, making ungrounded changes to the code that fail to address the actual issues present in the execution logs.

Codebase Decay

As tournament rounds progress, LM-managed repositories become increasingly disorganized. Instead of refactoring existing code, models tend to create a linear explosion of files (e.g., analyze_round_1.py, analyze_round_2.py). This leads to high filename redundancy and a clutter of "throwaway" scripts that are never reused.

The "Comeback" Problem

Models exhibit surprising fragility. If a model loses a single round, its probability of winning the subsequent round drops significantly—falling below 33% even for the top-performing model. They struggle to pivot and reconsider a failing strategy once they have committed to it.

Validation Neglect

Most models deploy code without testing it. Only Claude Sonnet 4.5 validated its changes in a majority of rounds (56%), whereas others, including Gemini 2.5 Pro and o3, validated their code only 20% of the time.

Leaderboard and The Human Gap

Performance across the benchmark is highly arena-dependent, meaning there is no universal winner. For instance, GPT-5 dominated in Poker, while Claude Sonnet 4.5 excelled in Core War and BattleSnake. Overall leaderboard standings placed Claude Sonnet 4.5 at the top (1389 Elo), followed by GPT-5 (1360) and o3 (1343).

Despite these achievements, the gap between AI and humans remains vast. In the CC:Ladder evaluation, no model was able to complete the ladder of human-authored solutions. The best models still lose every round against top-tier expert human programmers.

Limitations and Future Directions

The authors acknowledge that the current arenas are relatively small and self-contained compared to massive enterprise software systems. Future work will focus on:

  • Multimodal Feedback: Moving beyond text logs to allow Vision-Language Models (VLMs) to analyze visual game replays.
  • Complex Environments: Introducing arenas that simulate real-world scenarios, such as financial markets or cybersecurity.
  • Self-Play Training: Leveraging the CodeClash framework as a training ground for reinforcement learning to help models develop better refactoring habits and strategic adaptation skills.

Summary updated

BibTeX
@inproceedings{yang2026codeclash,
  author = {John Yang and Kilian Lieret and Joyce Yang and Carlos E. Jimenez and Muhtasham Oblokulov and Aryan Siddiqui and Ofir Press and Ludwig Schmidt and Diyi Yang},
  title = {{CodeClash: Benchmarking Goal-Oriented Software Engineering}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=SW2D390ePP},
}
Figure