SWE-Pruner Pro trims coding-agent context by up to 39% using the agent’s own states
pmttyji · reddit · 2026-07-21
SWE-Pruner Pro is a new pruning method for coding agents that uses the agent’s own internal representations to decide what tool output to keep.
- The paper argues that the agent already encodes relevance signals while reading tool output, so a separate code classifier is not always necessary.
- A small head maps the hidden states into per-line keep/prune labels, with a length-aware embedding based on the tool output length.
- Across two open-weight backbones and four multi-turn benchmarks, it reportedly saves up to 39% of prompt and completion tokens while maintaining task quality.
- On MiMo-V2-Flash, it also 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 Saves 39% Tokens for Coding Agents(2 posts)→
More from coding & agent
- A Reddit demo argues online stores should expose carts and pricing through MCP — gelembjuk · 2026-07-22
- Open-source AI SDK provider routes Vercel apps through a local Codex subscription — lgrammel · 2026-07-22
- Codex vs Claude Code: Which Is More Popular? — jxnlco · 2026-07-22
- CodeRabbit uses layers, diagrams and a chat agent to rethink code review — _jaydeepkarale · 2026-07-22
- Claude Managed Agents demo shared with Vercel in a new presentation — brada · 2026-07-22
- Solo founder turns complaints on screen into bug reports with a local MCP server — phdptsd · 2026-07-22