🛰️ Daily AI Frontier
‹ back to 2026-10-03

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

Research LLM Agents

Ranking

Overall 79
Content 95
Popularity 43

Observed public metrics from 1 member.

Merged summary

TL;DR - AutoCompact trains coding agents to decide when and how to compact stale context during long software-engineering tasks. It improves task completion without relying solely on larger context windows or overflow-triggered compaction.

  • Training data is generated by correcting flawed compaction decisions, summaries, and post-compaction actions before trajectories continue.
  • Supervised fine-tuning is followed by reinforcement learning that jointly optimizes coding and context compaction using task-success rewards.
  • AutoCompact raises pass rates by 9.2 percentage points on SWE-bench Verified and 5.0 points on SWE-PolyBench Verified versus the base model.
  • Gains persist across tested inference budgets with both a non-overflowing 256K context window and a 16K window using fallback compaction.

Sources (1)

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

arXiv cs.CL Xuan Zhang, Longtao Zheng, Cunxiao Du, Bo An, Xin Dong 2026-10-01 arXiv:2610.02163
Public signals Hugging Face upvotes 0
Providers: Hugging Face · Upvotes 0 OpenAlex · N/A Publisher · N/A Semantic Scholar · N/A X · N/A Fetched 2026-11-02 15:32:27.534982 UTC

TL;DR - AutoCompact trains coding agents to decide when and how to compact stale context during long software-engineering tasks. It improves task completion without relying solely on larger context windows or overflow-triggered compaction.

  • Training data is generated by correcting flawed compaction decisions, summaries, and post-compaction actions before trajectories continue.
  • Supervised fine-tuning is followed by reinforcement learning that jointly optimizes coding and context compaction using task-success rewards.
  • AutoCompact raises pass rates by 9.2 percentage points on SWE-bench Verified and 5.0 points on SWE-PolyBench Verified versus the base model.
  • Gains persist across tested inference budgets with both a non-overflowing 256K context window and a 16K window using fallback compaction.
item →