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 Enables Coding Agents to Self-Prune Context(3 posts)→
More from coding & agent
- Inspired by OpenAI's 10,000-agent run, dev open-sources a crowdsourced agent problem-solving platform — Benjaminsen · 2026-09-11
- Lucid: open-source Mac app keeps your laptop awake only while AI agents run — Pitiful_Hedgehog_600 · 2026-09-11
- banteg's snail project crowdsources AI agents to finish matching Snail Mail's 20 remaining functions — banteg · 2026-09-11
- Alex Townsend posts 200 open problems in numerical linear algebra for humans and AI agents — IgorCarron · 2026-09-11
- Kimi K2.8 Preview rolls out: near-K3 coding performance, 1M context for all tiers — teortaxesTex · 2026-09-11
- Looking for a classifier of software engineering task shapes to pick models per task — StewartalsopIII · 2026-09-11