PREreview of "AutoCompact: Learning When to Compact Context in Long-Horizon Coding Agents"

This Zenodo record is a permanently preserved version of a PREreview. You can view the complete PREreview at https://prereview.org/reviews/23111148 . You give a coding agent a compact() action (it replaces the earlier history with a working-state summary the agent writes itself, and the original task stays). During data collection a judge (GPT-5.5-Codex) reviews each step of the base agent (when to compact, what the summary keeps, what the agent does next), and the corrected output is executed instead of the original. The 1,052 corrected trajectories go to SFT, then RL with GRPO on SWE-Gym, where the only reward is whether the final patch passes the tests. With Qwen3-Coder-30B-A3B-Instruct it reaches 39.6% on SWE-bench Verified and 24.5% on SWE-PolyBench Verified (9.2 and 5.0 points over base). I liked the "summary ignored" ablation in Section 3.3 - the same checkpoint does worse with compact() calls skipped, so the gain is not only from training. I read it as a practitioner who runs coding agents every day. In my company the software development is done by AI agents, so maybe my practical side is useful here. My four comments are about when to compact, cost, checking the summaries, and the size of the differences. 1. On when to compact - at 256K no trajectory reaches the forced-compaction threshold, and AutoCompact-SFT still beats the full-history Base at every budget (Section 3.3, Figure 3a). Figure 4a shows compact() on 44.3% of tasks after SFT and 58.5% after RL, but not how many times it fires per trajectory, or at which stage. In my own experiment (36 coding-agent runs, six clearing policies, DOI 10.5281/zenodo.22759217) clearing after every task was about a third more expensive (+33.5%, p = 0.002) than clearing every 3 tasks. I chose that comparison point after the runs. So I would like to see compactions per trajectory, the stage (after localization, after the edit, after tests), and how pass rate and cost change with the count.

Link
https://zenodo.org/records/23111148
Found by
Zenodo
Authors
Evgenii Arsentev
Categories
dataset
Published
2026-10-02
Last seen by the radar
2026-10-03
Downloads
7
Views
1
Radar score
37.22 / 100 (how it is scored)
Why it scored so
Matched: data collection; Recency discount: updated event ×0.5; Primary record: Zenodo
Related links
https://doi.org/10.5281/zenodo.23111148
Is this record right? If you made this work and something here is wrong or missing, tell us what to fix.

More records found by Zenodo