Research
Folio: Recoverable Multi-Resolution Context Folding for Long-Horizon Language Agents
Folio is a context manager for long-horizon language agents that records linked turn notes, runtime event manifests, and source records, then folds older history into coarser views. Its fold exposes handles into the manifest and source records so recovery tools can read bounded pages, compute over full files, and keep findings in a persistent dossier. On 75 LOCA-bench tasks with DeepSeek-V4-Pro behind every system, Folio solved 66 tasks versus 54 for the same runtime with model-written compaction and 49-59 for Claude Code, Codex, and SoL-Pi. The paper reports about half their working time, 2.4 times lower cost than that runtime, and a median fold time of 0.6 seconds.
long-horizon language agentscontext managementLOCA-bench