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
- Give AI a clean personal-data-free machine with full control: agents running 24/7 teach you more than any course — EXM7777 · 2026-10-27
- 20 papers across 6 areas to master production-grade agentic AI engineering — MaryamMiradi · 2026-10-27
- LangChain SF meetup to compare decision model Jev vs LLM judges for agent evals — LangChain · 2026-10-27
- How Clang recognizes your popcount loop and swaps it for a single CPU instruction — jimmykoppel · 2026-10-27
- Claude spots broken physics in AI videos, fixes them with CFD and finite-element verification — OfirPress · 2026-10-27
- One prompt: Claude Opus 5.5 adds drone flight mode to RV travel game — ezshine · 2026-10-27