SWE-Shift: Evaluating Coding Agents in Evolving Workspaces

Victor Shea-Jay Huang, Renrui Zhang, Hongsheng Li and colleagues (CUHK MMLab, Fudan University, HKUST, Peking University) introduce SWE-Shift, a benchmark that changes code, dependencies, runtime state or requirements while a coding agent is still working.
Ask this paper
Paired design. From one saved history and workspace, a Clean continuation runs untouched and a matched Shifted continuation receives a task-relevant update, so the effect of the change is isolated.
Scale. 120 scenarios across 12 change families, each tested at nine intervention positions, on 17 coding-agent systems.
Results. Every system scores lower when shifted. GPT-6 Astra drops from 67.35% to 24.79%, with 20.34% paired success.
Hardest changes. Tool or session changes and stale evidence yield zero paired success across all systems.
Abstract
Repository-level coding benchmarks largely assume that tasks and environments remain unchanged throughout execution. In software development, code, dependencies, runtime state, and requirements can change while an agent is still working. We introduce SWE-Shift, a benchmark for evaluating coding agents under such mid-execution changes. From the same saved history and workspace, a Clean continuation proceeds without intervention, while a matched Shifted continuation receives a task-relevant update. Success requires completing the current task, preserving still-valid work, and satisfying the applicable state and evidence checks. The benchmark contains 120 scenarios across 12 change families, each evaluated at nine scheduled intervention positions. We evaluate 17 coding-agent systems, all of which have lower Shifted than Clean success. GPT-6 Astra drops from 67.35% to 24.79%, with 20.34% paired success. Tool/session changes and stale evidence yield zero paired success across all systems. Late-position paired success is lower for some systems and higher for others. These results show that success on the unchanged task can coexist with failures to preserve work, recover state, or refresh evidence after an update.