Switch-SWE: Can coding agents stay focused when switching between unfinished tasks?Switch-SWE: Do Coding Agents Hold Focus When Switching Between Unfinished Tasks?
Researchers propose the Switch-SWE benchmark to measure whether coding agents can recover the requirements and partial progress of earlier tasks after alternating between multiple unfinished tasks in the same code repository. The benchmark contains 200 focus tasks from 19 Python repositories, reconstructed from issue, pull request and review histories and rendered into 400 paired session specifications, with each focus task subjected to the same executable verification in both uninterrupted and switched sessions. Across 7 coding agents, interleaved unfinished tasks produced an average 11.5 percentage point gap in focus-task resolution rate, ranging from 6.0 to 15.0 percentage points; trajectory analysis found cross-task requirement confusion and task-state loss to be recurring recovery behaviors. The authors also propose a pluggable context management module that selects task-relevant history and maintains concise task-state summaries, raising focus-task completion rate under same-repository task switching by 5.5 to 15.5 percentage points on OpenCode.