Get the daily emailDaily email
  1. Home
  2. Research
  3. This story

Self-Context lets long-horizon agents manage their own context as a graph

Self-Context is a plug-and-play framework that sits between an LLM and its harness and hands context management to the model itself. An editable working graph records exploration attempts and findings, while history management uses fold and unfold operations…

Published Read the original
Self-Context lets long-horizon agents manage their own context as a graph

Why it matters

Unlike the irreversible compaction most agent harnesses use, fold/unfold lets the agent recover details later, an idea agent builders can try directly.

What happened

1 min read

Self-Context is a plug-and-play framework that sits between an LLM and its harness and hands context management to the model itself. An editable working graph records exploration attempts and findings, while history management uses fold and unfold operations to replace interaction history with summary notes and restore the original when needed. The authors report better task performance and interaction efficiency on three agent tasks.

inscraper analysis

Our analysis

The problem is real: auto-compaction in tools like Claude Code and Codex can drop details an agent later needs. Combining an exploration graph with reversible history folding is a clean idea, but the abstract names neither the benchmarks nor the numbers, so the size of the gain cannot be judged from it. The token overhead of maintaining the graph and how well weaker models use these operations are also open. Worth reading in full for anyone building agent harnesses.

More in Research