Reproduce “StateComp: Learning When to Compress History in Long Horizon Agents” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

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

About this paper

Mingxuan Wang, Hongyue Chen, Yinglong Guo, Fei Luo, Chao Ning, Bo Wang, Guorun Yao, Yanbiao Ma and 1 more

StateComp decides when past agent interactions can be replaced by summaries by routing each interaction against the current task state, rather than using age-based cutoffs. It groups READY interactions and summarizes only spans meeting thresholds. On 260 WorkBuddyBench tasks, total agent-plus-summary tokens fell 52.27%, while mean reward stayed close to baseline; this does not establish lower latency or universal safety.

Summary by alphaXiv.

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