Reproduce “U-Fold: Dynamic Intent-Aware Context Folding for User-Centric 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

Jin Su, Runnan Fang, Yeqiu Li, Xiaobin Wang, Shihao Cai, Pengjun Xie, Ningyu Zhang, Fajie Yuan

U-Fold manages evolving user requests by rebuilding a compact working context at each turn. It keeps the full dialogue and tool history in the background, while a summary tracks goals, constraints, and unfinished tasks, and a selector retrieves relevant tool results. On VitaBench Delivery, it scores 56.8 versus ReAct’s 48.5; this is a reported benchmark result, not a real-world deployment test.

Key insights

  • Dynamic, intent-aligned context management can improve agent reasoning by providing a cleaner, more relevant context, rather than just reducing token length.
  • Maintaining a complete interaction history and dynamically extracting relevant data prevents the loss of fine-grained information and reduces redundant tool calls.
  • Stronger LLMs can act as 'folding services' for weaker main agents, facilitating a cost-effective deployment model for advanced agent capabilities in long-horizon tasks.

Summary by alphaXiv.

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