mlsanityData to 24 Nov 2026

SWE-Trail: History-Guided Trajectory Collection for Coding Agent Training

arXiv 2611.02074 ↗Submitted 1 Nov 2026cs.AI cs.SEcited by 0

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

Coding agents solve repository issues through long sequences of exploration, editing, and validation. These trajectories are increasingly used as post-training data, so how they are collected shapes what the trained model learns. A common approach is to sample multiple trajectories independently for each issue and then select or curate them. However, as more trajectories are sampled independently, later trajectories become increasingly redundant, even though earlier trajectories could guide where subsequent collection effort should be spent. A natural way to use this history is to expose it to the coding agent as advice. But training on such trajectories can make the model rely on advice that is unavailable at test time, creating a train-test mismatch. Instead, we argue that history should guide where collection effort is spent, while the coding agent decides what to generate. We introduce SWE-Trail, a trajectory collector that uses earlier trajectories to guide subsequent collection while keeping that history outside the coding agent's context. During a new rollout, SWE-Trail uses history to identify a state where additional collection effort may be useful. There, the coding agent proposes candidate next actions from its ordinary context, and SWE-Trail briefly executes them from the same checkpoint to decide which route continues. We evaluate collection approaches by training student models on the trajectories they produce. For a 124B student initialized from Ling-3.0-flash-base, SWE-Trail improves mean resolution over independent sampling by 2.33 and 1.60 percentage points on SWE-bench Multilingual and SWE-bench Pro, respectively. Without history, the same pipeline produces more resolved trajectories than independent sampling, but improves by only 0.11 points on Multilingual. These results show the value of using history to guide collection without exposing it to the coding agent.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 49 of its 61 references that are in the map. Submitted 1 Nov 2026.

Builds on

49 of 61 references.

Closest ancestors · 18

Same direction, newest first

  1. 2026A Systematic Evaluation of Trajectory Data Curation for LoRA Fine-Tuning of Code Agents19 Jul
  2. 2026Open-SWE-Traces: Advancing Dual-Mode Multilingual Distillation for Software Engineering Agents14 Jun
  3. 2026Socratic-SWE: Self-Evolving Coding Agents via Trace-Derived Agent Skills5 Jun
  4. 2026From Patches to Trajectories: Privileged Process Supervision for Software-Engineering Agents21 May
  5. 2026Agentic Harness Engineering: Observability-Driven Automatic Evolution of Coding-Agent Harnesses28 Apr
  6. 2026SWE-TRACE: Optimizing Long-Horizon SWE Agents Through Rubric Process Reward Models and Heuristic Test-Time Scaling16 Apr
  7. 2026SWE-rebench V2: Language-Agnostic SWE Task Collection at Scale27 Feb
  8. 2026Beyond Quantity: Trajectory Diversity Scaling for Code Agents3 Feb
  9. 2026SWE-Replay: Efficient Test-Time Scaling for Software Engineering Agents29 Jan
  10. 2025Live-SWE-agent: Can Software Engineering Agents Self-Evolve on the Fly?17 Nov
  11. 2025Reducing Cost of LLM Agents with Trajectory Reduction28 Sep
  12. 2025SWE-smith: Scaling Data for Software Engineering Agents30 Apr
6 more
  1. 2025A Self-Improving Coding Agent21 Apr
  2. 2025R2E-Gym: Procedural Environments and Hybrid Verifiers for Scaling Open-Weights SWE Agents9 Apr
  3. 2024Training Software Engineering Agents and Verifiers with SWE-Gym30 Dec
  4. 2024SWE-Search: Enhancing Software Agents with Monte Carlo Tree Search and Iterative Refinement26 Oct
  5. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
  6. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May

Other references · 31

  1. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,789
  2. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,871
  3. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,799
  4. 2017Understanding Black-box Predictions via Influence Functionscited by 1,815
  5. 2017Curiosity-driven Exploration by Self-supervised Predictioncited by 1,228
  6. 2023ExpeL: LLM Agents Are Experiential Learnerscited by 1,067
  7. 2019Data Shapley: Equitable Valuation of Data for Machine Learningcited by 664
  8. 2016Unifying Count-Based Exploration and Intrinsic Motivationcited by 656
  9. 2023Language Agent Tree Search Unifies Reasoning Acting and Planning in Language Modelscited by 626
  10. 2021Deep Learning on a Data Diet: Finding Important Examples Early in Trainingcited by 564
  11. 2024Agent Workflow Memorycited by 482
  12. 2019BatchBALD: Efficient and Diverse Batch Acquisition for Deep Bayesian Active Learningcited by 447
19 more
  1. 2023DoReMi: Optimizing Data Mixtures Speeds Up Language Model Pretrainingcited by 436
  2. 2024AgentGym: Evolving Large Language Model-based Agents across Diverse Environmentscited by 130
  3. 2021Deep Adaptive Design: Amortizing Sequential Bayesian Experimental Designcited by 119
  4. 2025SE-Agent: Self-Evolution Trajectory Optimization in Multi-Step Reasoning with LLM-Based Agentscited by 72
  5. 2025CodeMonkeys: Scaling Test-Time Compute for Software Engineeringcited by 60
  6. 2026SWE-Lego: Pushing the Limits of Supervised Fine-tuning for Software Issue Resolvingcited by 39
  7. 2025EXPEREPAIR: Dual-Memory Enhanced LLM-based Repository-Level Program Repaircited by 38
  8. 2026Evolving Agents in the Dark: Retrospective Harness Optimization via Self-Preferencecited by 32
  9. 2026Scaling Test-Time Compute for Agentic Codingcited by 22
  10. 2026CODESKILL: Learning Self-Evolving Skills for Coding Agentscited by 21
  11. 2026Simple Baselines are Competitive with Code Evolutioncited by 15
  12. 2026MemGovern: Enhancing Code Agents through Learning from Governed Human Experiencescited by 13
  13. 2024LLMs as Continuous Learners: Improving the Reproduction of Defective Code in Software Issuescited by 12
  14. 2025Self-Abstraction from Grounded Experience for Plan-Guided Policy Refinementcited by 11
  15. 2026Same Signal, Opposite Meaning: Direction-Informed Adaptive Learning for LLM Agentscited by 10
  16. 2026CurateEvo: Data-Curation Evolving for Agentic Post-Trainingcited by 6
  17. 2026ProPlay: Procedural World Models for Self-Evolving LLM Agentscited by 4
  18. 2026CLEAT: Learning Value-Guided Clarification for Interactive Agentscited by 2
  19. 2026Judging the Justification: Decision Certificate Supervision for Generative Reward Modelscited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026SWE-Explore: Benchmarking How Coding Agents Explore Repositories
  2. 2026MetaCurate: Evolving Curation Filters for High-Quality Agentic Coding Data
  3. 2026StateHarness: Maintaining Evolving Project State for Long-Horizon Coding Agents
  4. 2026Turning Interaction History into Execution State: A Runtime Layer for Long-Horizon Coding Agents
  5. 2025Training Versatile Coding Agents in Synthetic Environments
  6. 2026PAUSE: Search-Free Steering of Coding Agents Before Their First Source-Code Edit
  7. 2026FastContext: Training Efficient Repository Explorer for Coding Agents
  8. 2026VibeMemBench: Evaluating Memory Systems for Coding Agents on Real Repository Coding Tasks