ByteDance’s SWE-Pruner Pro cuts coder-agent tokens by 39% without losing quality
ByteDance · hf · 2026-07-21
What it claims
ByteDance and collaborators show that a coder LLM already learns useful internal signals for deciding what tool output to keep or prune.
Proposed method
- SWE-Pruner Pro moves pruning inside the agent instead of attaching a separate code classifier.
- A small head reads the agent’s own internal representations and predicts keep/prune labels line by line.
- A length-aware embedding accounts for the number of lines in each tool output.
Results
- Across two open-weight backbones and four multi-turn benchmarks, the method saves up to 39% of prompt and completion tokens while keeping task quality intact.
- In addition, on MiMo-V2-Flash, it improves SWE-Bench Verified resolve rate by +3.8% and Oolong long-context accuracy by +2.2 points.
Related event: ByteDance's SWE-Pruner Pro Enables Coding Agents to Self-Prune Context(3 posts)→
More from coding & agent
- Agent-built classifier labels 192k docs for $0.70 vs $13-26 with frontier LLMs — vanstriendaniel · 2026-09-11
- MathModelAgent gains traction: auto-solves math modeling and writes a submission-ready paper — jihe520 · 2026-09-11
- alphaXiv open-sources OpenResearch to run parallel research agents with any model — alphaXiv · 2026-09-11
- DeskcommCRM: open-source AI sales CRM with native agents and WhatsApp hits 1k stars — melgarafael · 2026-09-11
- hyperresearch: agent-driven knowledge base that turns web research into a searchable wiki — jordan-gibbs · 2026-09-11
- Forter's 13 lessons from its agent sprint: skip custom RAG, lean on mature enterprise search — bibryam · 2026-09-11