StaminaBench: Stress-Testing Coding Agents over 100 Interaction Turns
Uladzislau Sobal, Shuo Yang, Yuting Zhang, Wei Xia, Stefano Soatto
NeurIPS page · OpenReview · Open on the map
Category: LLM Agents, Evals & Benchmarks › Long-Horizon Coding and Proof Benchmarks · Type: benchmark or dataset · Keywords: coding agents, benchmark, multi-turn evaluation, stamina measurement, feedback loops, harness design
Areas: Code & Coding Agents › Code Verification › Coding agent benchmarks; AI Agents › Agent Benchmarking › Coding agent benchmarks; Evaluation & Benchmarks › Language Model and Agent Benchmarks › Coding Agent Benchmarks; Benchmarks for LLMs & Agents › Cross-Domain Agent Evaluation › Coding Agent Benchmarks
Summary
StaminaBench is a benchmark that measures how many consecutive interaction turns coding agents can handle before failing, evaluating them over up to 100 change requests.
Explained to a 5-year-old
We made a game that tests how long a robot can keep fixing a computer program. The robot gets many small tasks, like adding a button or fixing a bug, and we see how many tasks it can finish before it makes a mistake. Most robots only get a few tasks right, but if we tell them what they did wrong and let them try again, they can do much better.
Explained to a 5-year-old, longer
Imagine you have a toy computer that you ask to build a simple website. You give it a task, like adding a red button. It does it, but then you ask for another change, like making the button blue. You keep asking for changes over and over. The game we made watches how many of these changes the robot can do before it messes something up. It also shows that if we tell the robot what went wrong and let it try again, it can keep going much longer. The game also checks how different robot helpers work, and some helpers are much better than others when they are set up well.
For a technical reader
The work introduces a benchmark that runs coding agents in a sandbox, issuing up to 100 incremental change requests to a REST API server. Agents interact via HTTP, and the benchmark generates changes programmatically, ensuring reproducibility. Evaluation shows that most models fail within a handful of turns, but feedback loops and harness quality dramatically improve stamina, highlighting the need for robust testing infrastructure in long-session coding scenarios.
Problem
Existing coding agents are typically evaluated on the fraction of tasks they solve, which does not capture their ability to sustain long interactive sessions with many incremental changes. There is a need for a metric that assesses how many consecutive change requests an agent can handle before failing.
Method
The benchmark creates a REST API server that agents must implement and modify through a series of procedurally generated change requests. Change sequences are sampled from a constrained action space, either via a deterministic sampler or an LLM-driven sampler, and the agent interacts with the server via HTTP in an isolated environment. Evaluation runs agents through up to 100 turns, measuring the number of successful consecutive changes.
Results
All tested models failed within 5-6 turns, showing that long-session coding without feedback quickly breaks. Providing test feedback and retries improved the number of successful turns by up to 12×, and strong harnesses were essential, with up to a 6× performance gap between harnesses for stronger models.
Contributions
The paper introduces a benchmark for measuring coding agent stamina over many interaction turns, a reproducible generation pipeline for change sequences, and an analysis of how feedback and harness design affect long-session performance.
Limitations and assumptions
The benchmark focuses on a specific REST API server implementation and may not capture all coding domains; change sequences are limited to a structured action space, which could restrict realism.
Practical relevance
It provides a reliable, black-box evaluation framework for assessing and improving the durability of coding agents in realistic, multi-turn scenarios.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction