Switch-SWE: Do Coding Agents Hold Focus When Switching Between Unfinished Tasks?
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Software development sessions often involve several unfinished tasks rather than one issue carried through to completion. As coding agents take on repository-level development, they need to recover an earlier task's requirements and partial progress after intervening work. 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. We introduce ourmethod, a benchmark for focus-task resumption in sessions that interleave unfinished tasks drawn from the same source repository, with a persistent checkout for each task. Each focus task is evaluated in matched uninterrupted and switched sessions with identical focus requirements and executable verifiers. The switched session interleaves ordered stages from other unfinished tasks in the same repository, while only the final focus patch is scored. ourmethod~contains 200 focus tasks from 19 Python repositories, reconstructed from issue, pull-request, and review histories and rendered as 400 matched session specifications. Across 7 coding agents, interleaved unfinished work produces an average focus-task resolution gap of 11.5 percentage points, ranging from 6.0 to 15.0 percentage points. Trajectory analysis identifies cross-task requirement confusion and loss of task state as recurrent resumption behaviors. We introduce a plug-in context-management module that selects task-relevant history and maintains concise task-state summaries. On OpenCode, the module improves focus-task completion under same-repository task switching by 5.5 to 15.5 percentage points across the evaluated models. Code is available at github.com/Miraclecsc/Switch-SWE.
Key facts. Cited by 1 paper in the map (data through 24 Nov 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 37 of its 42 references that are in the map. Submitted 1 Nov 2026.
Builds on
37 of 42 references.
Closest ancestors · 13
Same direction, newest first
- 2026SWE-Touch: Benchmarking Coding Agents When Users Touch the Code3 Aug
- 2026DeepSWE: Measuring Frontier Coding Agents on Original, Long-Horizon Engineering Tasks8 Jul
- 2026ChainSWE: Benchmarking Coding Agents on Multi-Bug Software Maintenance1 Jul
- 2026SWE-INTERACT: Reimagining SWE Benchmarks as User-Driven Long-Horizon Coding Sessions29 Jun
- 2026SWE-Together: Evaluating Coding Agents in Interactive User Sessions29 Jun
- 2026Handoff Debt: The Rediscovery Cost When Coding Agents Take Over Interrupted Tasks1 Jun
- 2026SWE Context Bench: A Benchmark for Context Learning in Coding9 Feb
- 2025Context as a Tool: Context Management for Long-Horizon SWE-Agents26 Dec
- 2025SWE-EVO: Benchmarking Coding Agents in Long-Horizon Software Evolution Scenarios20 Dec
- 2025SWE-PolyBench: A multi-language benchmark for repository level evaluation of coding agents11 Apr
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
- 2024Agentless: Demystifying LLM-based Software Engineering Agents1 Jul
Other references · 24
- 2021Evaluating Large Language Models Trained on Codecited by 8,938
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,871
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,765
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,655
- 2025A-MEM: Agentic Memory for LLM Agentscited by 1,253
- 2025Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memorycited by 915
- 2026Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfacescited by 742
- 2025Agentic Context Engineering: Evolving Contexts for Self-Improving Language Modelscited by 530
- 2025LLMs Get Lost In Multi-Turn Conversationcited by 501
- 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 384
- 2024AutoCodeRover: Autonomous Program Improvementcited by 303
- 2024SWE-bench Multimodal: Do AI Systems Generalize to Visual Software Domains?cited by 224
12 more
- 2025Multi-SWE-bench: A Multilingual Benchmark for Issue Resolvingcited by 198
- 2025SWE-Lancer: Can Frontier LLMs Earn 1 Million from Real-World Freelance Software Engineering?cited by 123
- 2025SWE-bench Goes Live!cited by 100
- 2025The Complexity Trap: Simple Observation Masking Is as Efficient as LLM Summarization for Agent Context Managementcited by 73
- 2024Commit0: Library Generation from Scratchcited by 62
- 2026SWE-Marathon: Can Agents Autonomously Complete Ultra-Long-Horizon Software Work?cited by 29
- 2026When Users Change Their Mind: Evaluating Interruptible Agents in Long-Horizon Web Navigationcited by 19
- 2026SWE-Milestone: Evaluating AI Agents on Continuous Software Evolutioncited by 17
- 2025D3ToM: Decider-Guided Dynamic Token Merging for Accelerating Diffusion MLLMscited by 10
- 2026Unlocking the Black Box of Latent Reasoning: An Interpretability-Guided Approach to Interventioncited by 6
- 2026Why Struggle with Continuous Latents? Interpretable Discrete Latent Reasoning via Rendered Compressioncited by 3
- 2026CORPGEN: Simulating Corporate Environments with Autonomous Digital Employees in Multi-Horizon Task Environmentscited by 2
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026Coding-Agent Benchmarks Should Match Their Users' Task Flows
- 2026SWE-Shift: Evaluating Coding Agents in Evolving Workspaces
- 2026Change2Task: From Repository Changes to Executable Coding Agent Tasks and Environments
- 2026Evaluating AGENTS.md: Are Repository-Level Context Files Helpful for Coding Agents?
- 2026Stratum: Repository Memory for Coding Agents Beyond the Context Window
- 2026What Coding Agents Leave Unsaid: Measuring Task-State Gaps Between Execution and Reports
- 2026SWE-Explore: Benchmarking How Coding Agents Explore Repositories
- 2026Beyond Isolated Tasks: A Framework for Evaluating Coding Agents on Sequential Software Evolution