AutoCompact: Learning When to Compact Context in Long-Horizon Coding 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
Public signals
Hugging Face upvotes 0
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.