PapersSelected

AutoCompact trains agents to decide when to compact context

Why we picked it

The notable shift is model-harness co-design: instead of hard-coded rule-based compaction, the model learns when to invoke it — part of a broader trend including AutoHarness and AutoContext. Builders of agent frameworks can compare this learned approach against the rule-based compaction already packaged in harnesses, and the arXiv paper (2610.02163) details the judge-then-RL pipeline for replication.

AutoCompact is a method that trains agents to natively decide when to compact context, what working state to keep, and how to resume afterward.

Body

A judge reviews the base agent's compaction decisions and replaces flawed ones before execution, and the corrected trajectories feed SFT followed by RL with task-success rewards that train coding and compaction together.

The approach improves pass rates by 9.2 points on SWE-bench Verified and 5.

0 points on SWE-PolyBench Verified.Gains hold even with a 256K window that never overflows, meaning learned compaction helps even when context space is not the limit.

Original · elvis

First AutoHarness, then AutoContext, now AutoCompact. I am seeing a rising trend of work that trains models to natively support more of what the harness does. This work specifically trains agents to decide for themselves when to compact. Reminds me of the new paper from Meta that trains models to manage context natively. But how good is this approach? AutoCompact trains the agent to decide when to compact, what working state to keep, and how to resume. A judge first reviews the base agent's compaction decisions and replaces flawed ones before they execute. The corrected trajectories are used for SFT, then RL with task-success rewards trains coding and compaction together. Pass rates improve by 9.2 points on SWE-bench Verified and 5.0 points on SWE-PolyBench Verified. The gain holds even with a 256K window that never overflows, so learned compaction helps when context space is not the limit. It remains to be seen how this works at scale and how robust it is across harnesses. One interesting note from the authors is that this type of proactive compaction is a form of model-harness co-design: the harness provides the compaction mechanism, while the model learns when to invoke it, what to preserve, and how to continue afterward. Even more interesting is how to combine the rule-based compaction techniques already packaged in harnesses with more model-invoked proactive ones. Paper: arxiv.org/abs/2610.02163 Chat with Paper: academy.dair.ai/papers/autocom…📊 27 ⚡

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Papers" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include AutoCompact, SWE-bench, agents, context management.

Source attribution: curated from elvis (@omarsar0).