# 上下文引擎

| 页面 | 内容 |
| --- | --- |
| [概览](https://fzkuji.github.io/OpenProgram/docs/reference/design/context/overview.zh.html) | 流水线、DAG 存储、ContextCommit、压缩与渲染、attach 与 merge、跨轮工具上下文 |
| [压缩](https://fzkuji.github.io/OpenProgram/docs/reference/design/context/compaction.zh.html) | 滚动摘要节点、段替换、HEAD 完整性、DAG 契约 |
| [压缩层级](https://fzkuji.github.io/OpenProgram/docs/reference/design/context/compaction-diagram.zh.html) | 什么时候运行什么，以及状态 |
| [组成](https://fzkuji.github.io/OpenProgram/docs/reference/design/context/composition.zh.html) | 每次调用的分层（L0、L1、L2）和情境上下文 |
| [提示缓存前缀](https://fzkuji.github.io/OpenProgram/docs/reference/design/context/cache-prefix.zh.html) | 请求采集、缓存前缀在哪里断开及原因、请求字节契约 |
| [设计对比](https://fzkuji.github.io/OpenProgram/docs/reference/design/context/comparison.zh.html) | 与其他框架的上下文组件对比 |
| [Claude Code 压缩](https://fzkuji.github.io/OpenProgram/docs/reference/design/context/claude-code-compaction.zh.html) | 研究笔记：官方 API 文档和第三方逆向 |
| [记忆自省](https://fzkuji.github.io/OpenProgram/docs/reference/design/context/memory-introspection.zh.html) | Agent 如何知道自己记得什么：记忆块标记、提供的工具、记忆为空或损坏时 |
