Explore the research collection
2 entries · Follow this search
- Paper
AutoCompact: Learning When to Compact Context in Long-Horizon Coding Agents
Trains long-horizon coding agents to proactively decide when to compact their own context — a form of model-harness co-design: the harness provides the compaction mechanism, the model learns when to invoke it, what working state to preserve, and how to continue afterward. Data collection: run the base agent on coding tasks, use a judge to review its compaction decisions, summaries, and post-compaction actions; flawed outputs are replaced with corrected ones before environment execution so trajectories continue from corrected decisions. These trajectories feed supervised fine-tuning, then joint RL optimizes coding and compaction with task-success rewards. Absolute gains: +9.2 points on SWE-bench Verified, +5.0 on SWE-PolyBench Verified. Improvements hold across all inference budgets — including with a 256K context window that never overflows (so learned compaction helps even when context space isn't the limit) and with a 16K window whose overflow triggers fallback compaction. Latest in the AutoHarness → AutoContext → AutoCompact trend of moving harness responsibilities into the model itself; related to Meta's Context Language Models paper. Open questions: scaling, robustness across harnesses, combining rule-based compaction packaged in harnesses with model-invoked proactive compaction.
- Paper
Harness as a Language: A Minimalist Agent Framework With Maximal Expressivity
MIT CSAIL paper (Li/Liu et al.; arXiv 2609.26891v1) introduces JAZ: an agent framework whose sole LLM primitive is invoke — the model writes arbitrary executable code (including recursive invoke) while all inputs and REPL history are REPL variables. With prompting only (no external memory/tools/file system), JAZ beats Letta (MemGPT) by ~8% at half cost on StuLife far-recall (69.9% vs 61.8% pass; $18.3 vs $42.1) and beats ACE by ~4% at lower cost on AppWorld continual self-improvement (TGC 74.2% vs 69.9%). Hooks (budget, return-type, context-window warning, tracing) and dynamic scope add constraints without bloating the core loop. Code: jaz-lang/jaz + jaz-evals.