mlsanityData to 7 Oct 2026

SWE-Pruner Pro: The Coder LLM Already Knows What to Prune

arXiv 2607.18213 ↗First posted 20 Jul 2026cs.CL cs.SEcited by 2

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

Abstract (arXiv)

Pruning long context for coding agents has been a vital technology for efficient context management. While existing context pruning methods such as SWE-Pruner realize this by attaching a separate code classifier, we find the agent itself encodes internal representations indicating the relevance of code context when reading tool output. Based on this finding, we propose SWE-Pruner Pro, which prunes tool outputs directly inside the agent. Concretely, a small head turns the agent's own internal representations into a keep-or-prune label for each line, with a length-aware embedding keyed to each tool output's line count. Across two open-weight backbones and four multi-turn benchmarks, SWE-Pruner Pro saves up to 39% of prompt and completion tokens while preserving task quality, with bounded inference overhead. Notably, on MiMo-V2-Flash SWE-Pruner Pro additionally raises the SWE-Bench Verified resolve rate by +3.8% and the long-context Oolong accuracy by +2.2 points.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 52 of its 61 references that are in the map. First posted on arXiv 20 Jul 2026.

Builds on

52 of 61 references.

Closest ancestors · 13

Same direction, newest first

  1. 2026SWE-MeM: Learning Adaptive Memory Management for Long-Horizon Coding Agents26 Jun
  2. 2026FastContext: Training Efficient Repository Explorer for Coding Agents12 Jun
  3. 2026SWE-Explore: Benchmarking How Coding Agents Explore Repositories5 Jun
  4. 2026SWE-QA-Pro: A Representative Benchmark and Scalable Training Recipe for Repository-Level Code Understanding17 Mar
  5. 2026SWE-Pruner: Self-Adaptive Context Pruning for Coding Agents23 Jan
  6. 2025Reducing Cost of LLM Agents with Trajectory Reduction28 Sep
  7. 2025Trae Agent: An LLM-based Agent for Software Engineering with Test-time Scaling31 Jul
  8. 2025SWE-Debate: Competitive Multi-Agent Debate for Software Issue Resolution31 Jul
  9. 2024Large Language Model-Based Agents for Software Engineering: A Survey4 Sep
  10. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
  11. 2024Agentless: Demystifying LLM-based Software Engineering Agents1 Jul
  12. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May
1 more
  1. 2024RepairAgent: An Autonomous, LLM-Based Agent for Program Repair25 Mar

Other references · 39

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  3. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  4. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  5. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  6. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  7. 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,175
  8. 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compressioncited by 443
  9. 2025LLMs Get Lost In Multi-Turn Conversationcited by 400
  10. 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 357
  11. 2024LLMLingua-2: Data Distillation for Efficient and Faithful Task-Agnostic Prompt Compressioncited by 343
  12. 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Modelscited by 279
27 more
  1. 2023LooGLE: Can Long-Context Language Models Understand Long Contexts?cited by 200
  2. 2023Compressing Context to Enhance Inference Efficiency of Large Language Modelscited by 185
  3. 2025Scaling Long-Horizon LLM Agent via Context-Foldingcited by 136
  4. 2025ACON: Optimizing Context Compression for Long-horizon LLM Agentscited by 126
  5. 2024xRAG: Extreme Context Compression for Retrieval-augmented Generation with One Tokencited by 123
  6. 2025AgentFold: Long-Horizon Web Agents with Proactive Context Managementcited by 95
  7. 2025SWE-Exp: Experience-Driven Software Issue Resolutioncited by 64
  8. 2025Scaling LLM Multi-turn RL with End-to-end Summarization-based Context Managementcited by 51
  9. 2024AgentFL: Scaling LLM-based Fault Localization to Project-Level Contextcited by 47
  10. 2024From Code to Correctness: Closing the Last Mile of Code Generation with Hierarchical Debuggingcited by 46
  11. 2025The Complexity Trap: Simple Observation Masking Is as Efficient as LLM Summarization for Agent Context Managementcited by 40
  12. 2025LongCodeZip: Compress Long Context for Code Language Modelscited by 38
  13. 2025LongCodeBench: Evaluating Coding LLMs at 1M Context Windowscited by 37
  14. 2025SWE-QA: Can Language Models Answer Repository-level Code Questions?cited by 37
  15. 2025Oolong: Evaluating Long Context Reasoning and Aggregation Capabilitiescited by 33
  16. 2025Pruning the Unsurprising: Efficient LLM Reasoning via First-Token Surprisalcited by 32
  17. 2024Between Lines of Code: Unraveling the Distinct Patterns of Machine and Human Programmerscited by 27
  18. 2022Diet Code Is Healthy: Simplifying Programs for Pre-trained Models of Codecited by 24
  19. 2025AttentionRAG: Attention-Guided Context Pruning in Retrieval-Augmented Generationcited by 19
  20. 2025COMPASS: Enhancing Agent Long-Horizon Reasoning with Evolving Contextcited by 19
  21. 2026In Line with Context: Repository-Level Code Generation via Context Inliningcited by 18
  22. 2025LastingBench: Defend Benchmarks Against Knowledge Leakagecited by 14
  23. 2026Reasoning in Trees: Improving Retrieval-Augmented Generation for Multi-Hop Question Answeringcited by 13
  24. 2026Seeing is Coding: On the Effectiveness of Vision Language Models in Code Understandingcited by 13
  25. 2024Natural Is The Best: Model-Agnostic Code Simplification for Pre-trained Large Language Modelscited by 10
  26. 2026DLLM-Searcher: Adapting Diffusion Large Language Model for Search Agentscited by 7
  27. 2026ClassEval-Pro: A Cross-Domain Benchmark for Class-Level Code Generationcited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Squeez: Task-Conditioned Tool-Output Pruning for Coding Agents
  2. 2026SWE Context Bench: A Benchmark for Context Learning in Coding
  3. 2026Context Pruning for Coding Agents via Multi-Rubric Latent Reasoning
  4. 2026SWE-Edit: Rethinking Code Editing for Efficient SWE-Agent
  5. 2026Paritok-4B: Intent-Conditioned Context Compression for Coding Agents
  6. 2026PruneTIR: Inference-Time Tool Call Pruning for Effective yet Efficient Tool-Integrated Reasoning
  7. 2026SHarP: Saliency-based Pruning of Agent Harnesses
  8. 2026On Problems of Implicit Context Compression for Software Engineering Agents