Switch-SWE: Coding Agents Drop 11.5pp on Task Resumption

Coding agents lose an average of 11.5 percentage points on task-resolution rates when forced to resume work after handling other unfinished tasks, according to a new arXiv paper introducing the Switch-SWE benchmark. The performance drop across seven tested agents ranged from 6.0 to 15.0 percentage points, exposing a blind spot in existing repository-level evaluations that measure only uninterrupted single-issue episodes.
What Switch-SWE measures
Switch-SWE comprises 200 focus tasks drawn from 19 Python repositories, each reconstructed from issue, pull-request, and review histories. The benchmark renders these as 400 matched session specifications: one uninterrupted run and one with other unfinished work interleaved before the agent returns to the original ticket. Only the final focus patch is graded, ensuring the metric isolates task-resumption capability rather than raw issue-solving skill.
Lead author Shuochen Chang and colleagues argue that traditional benchmarks miss this dynamic entirely. "Existing repository-level benchmarks typically score one issue-to-patch episode and do not directly measure whether an agent can resume a task after advancing other unfinished work in the same repository," the paper states. The Switch-SWE methodology forces agents to navigate cross-task interference, mirroring real-world software workflows where developers juggle multiple branches and tickets.
Where agents fail under interruption
Trajectory inspection revealed two recurring failure modes when agents resumed focus tasks:
- Cross-task requirement confusion: Agents conflated specifications from interleaved tasks with the original ticket's constraints.
- Loss of task state: Agents failed to reconstruct where they left off, leading to redundant or misaligned edits.
The 11.5pp average decline suggests that current coding agent architectures treat each session independently, without mechanisms to persist or prioritize task-specific context across interruptions. The paper does not break out per-agent scores or name the seven systems evaluated, leaving open questions about which architectures degrade most under switching.
Context-management module recovers performance
The authors propose a plug-in context-management module that selects task-relevant history and maintains concise task-state summaries. When bolted onto OpenCode, the module improved focus-task completion under same-repository task switching by 5.5 to 15.5 percentage points across evaluated models. The recovery range indicates the module is more effective for some base architectures than others, though the paper does not specify which models saw maximal gains.
The module's design prioritizes two functions: filtering out noise from unrelated tasks and compressing the agent's working memory into a resumable state. This approach contrasts with simply expanding context windows, which the authors suggest may amplify cross-task confusion rather than resolve it.
Release date and availability
The Switch-SWE paper was officially released on November 5, 2026, and is available on arXiv. Code is posted at github.com/Miraclecsc/Switch-SWE, allowing researchers to reproduce the benchmark and integrate the context-management module into their own coding agent pipelines.
What this means
Switch-SWE exposes a critical gap in coding agent capabilities: real-world software development is rarely linear, yet agents trained and evaluated on single-task episodes degrade sharply when interrupted. The 11.5pp average drop is large enough to matter in production settings where developers rely on AI to manage parallel feature branches or bug fixes. The proposed context-management module offers a path forward, but the variation in recovery gains suggests architectural differences among agents may determine who benefits most. As repository-level benchmarks mature, evaluations that account for task-switching and session continuity will become essential for assessing whether an agent can handle realistic, non-sequential workflows.
on Emergent today





