# Context engine

| Page | Covers |
| --- | --- |
| [Overview](https://fzkuji.github.io/OpenProgram/docs/reference/design/context/overview.html) | Pipeline, DAG storage, ContextCommit, compaction and rendering, attach and merge, cross-turn tool context |
| [Compaction](https://fzkuji.github.io/OpenProgram/docs/reference/design/context/compaction.html) | Rolling summary node, segment substitution, HEAD integrity, DAG contract |
| [Compaction tiers](https://fzkuji.github.io/OpenProgram/docs/reference/design/context/compaction-diagram.html) | What runs when, and its status |
| [Composition](https://fzkuji.github.io/OpenProgram/docs/reference/design/context/composition.html) | Per-call layering (L0, L1, L2) and situational context |
| [Prompt cache prefix](https://fzkuji.github.io/OpenProgram/docs/reference/design/context/cache-prefix.html) | Request capture, where a cached prefix broke and why, the request bytes contract |
| [Design comparison](https://fzkuji.github.io/OpenProgram/docs/reference/design/context/comparison.html) | Context components against other frameworks |
| [Claude Code compaction](https://fzkuji.github.io/OpenProgram/docs/reference/design/context/claude-code-compaction.html) | Research note: official API docs and third-party reverse engineering |
| [Memory introspection](https://fzkuji.github.io/OpenProgram/docs/reference/design/context/memory-introspection.html) | How an agent learns what it remembers: the memory block marker, the tools it is offered, and empty or broken memory |
