Reproduce “Agentic Context Engineering: Evolving Contexts for Self-Improving Language Models” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Qizheng Zhang, Changran Hu, Shubhangi Upasani, Boyuan Ma, Fenglu Hong, Vamsidhar Kamanuru, Jay Rainton, Chen Wu and 5 more

ACE maintains an itemized playbook rather than repeatedly rewriting full context. Reflection and a lightweight curator incrementally merge delta entries. In online AppWorld adaptation without ground-truth labels, ACE averages 59.5 versus 51.9 for Dynamic Cheatsheet. An offline ablation reports test-normal TGC 76.2 versus 67.3 and SGC 64.3 versus 46.4; finance results show label-free adaptation can underperform when feedback is unreliable.

Key insights

  • Treating contexts as dynamic, comprehensive "playbooks" rather than static, concise summaries allows for more robust and continuous LLM self-improvement.
  • Modularizing context adaptation into dedicated Generator, Reflector, and Curator components improves the quality and focus of context updates by separating generation from insight extraction and curation.
  • Incremental "delta updates" and a "grow-and-refine" mechanism are crucial for preventing context collapse and effectively preserving detailed knowledge over time, enabling scalable and efficient context evolution.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.