English

Squeez: Task-Conditioned Tool-Output Pruning for Coding Agents

Software Engineering 2026-04-08 v1 Artificial Intelligence

Abstract

Coding agents repeatedly consume long tool observations even though only a small fraction of each observation matters for the next step. We study task-conditioned tool-output pruning: given a focused query and one tool output, return the smallest verbatim evidence block the agent should inspect next. We introduce a benchmark of 11,477 examples built from SWE-bench repository interactions and synthetic multi-ecosystem tool outputs, with a manually curated 618-example test set. We fine-tune Qwen 3.5 2B with LoRA and compare it against larger zero-shot models and heuristic pruning baselines. Our model reaches 0.86 recall and 0.80 F1 while removing 92% of input tokens, outperforming zero-shot Qwen 3.5 35B A3B by 11 recall points and all heuristic baselines by a wide margin.

Cite

@article{arxiv.2604.04979,
  title  = {Squeez: Task-Conditioned Tool-Output Pruning for Coding Agents},
  author = {Ádám Kovács},
  journal= {arXiv preprint arXiv:2604.04979},
  year   = {2026}
}

Comments

7 pages

R2 v1 2026-07-01T11:55:47.280Z