<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Context Window on On My Way</title>
    <link>https://tuanzi-wow.cn/tags/context-window/</link>
    <description>Recent content in Context Window on On My Way</description>
    <generator>Hugo</generator>
    <language>zh-CN</language>
    <lastBuildDate>Mon, 14 Sep 2026 00:00:00 +0800</lastBuildDate>
    <atom:link href="https://tuanzi-wow.cn/tags/context-window/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>上下文工程：历史压缩、记忆管理、上下文窗口规划（2.1）</title>
      <link>https://tuanzi-wow.cn/%E4%B8%8A%E4%B8%8B%E6%96%87%E5%B7%A5%E7%A8%8B/history-compression-memory-window/</link>
      <pubDate>Mon, 14 Sep 2026 00:00:00 +0800</pubDate>
      <guid>https://tuanzi-wow.cn/%E4%B8%8A%E4%B8%8B%E6%96%87%E5%B7%A5%E7%A8%8B/history-compression-memory-window/</guid>
      <description>历史压缩、记忆管理、上下文窗口规划相关学习材料与阅读顺序整理。</description>
      <content:encoded><![CDATA[<h1 id="上下文工程历史压缩记忆管理上下文窗口规划21">上下文工程：历史压缩、记忆管理、上下文窗口规划（2.1）</h1>
<p>下列材料覆盖「历史压缩 / 记忆管理 / 上下文窗口规划」。</p>
<h2 id="系统教程三块都覆盖">系统教程（三块都覆盖）</h2>
<table>
	<thead>
			<tr>
					<th>材料</th>
					<th>链接</th>
					<th>覆盖点</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>大模型上下文工程权威指南（yeasy）</td>
					<td><a href="https://yeasy.gitbook.io/context_engineering_guide/">https://yeasy.gitbook.io/context_engineering_guide/</a></td>
					<td>第 4 章记忆架构；第 6 章压缩与窗口</td>
			</tr>
			<tr>
					<td>6.3 对话历史管理</td>
					<td><a href="https://yeasy.gitbook.io/context_engineering_guide/di-er-bu-fen-he-xin-ji-shu-yu-ce-le/06_compress/6.3_conversation_history">https://yeasy.gitbook.io/context_engineering_guide/di-er-bu-fen-he-xin-ji-shu-yu-ce-le/06_compress/6.3_conversation_history</a></td>
					<td>滑动窗口、对话压缩、分层管理</td>
			</tr>
			<tr>
					<td>6.4 上下文窗口优化策略</td>
					<td><a href="https://yeasy.gitbook.io/context_engineering_guide/di-er-bu-fen-he-xin-ji-shu-yu-ce-le/06_compress/6.4_window_optimization">https://yeasy.gitbook.io/context_engineering_guide/di-er-bu-fen-he-xin-ji-shu-yu-ce-le/06_compress/6.4_window_optimization</a></td>
					<td>Compaction、记忆刷写、检查点</td>
			</tr>
			<tr>
					<td>指南目录（GitHub）</td>
					<td><a href="https://github.com/yeasy/context_engineering_guide/blob/main/SUMMARY.md">https://github.com/yeasy/context_engineering_guide/blob/main/SUMMARY.md</a></td>
					<td>全书目录</td>
			</tr>
			<tr>
					<td>第 3 章 上下文工程</td>
					<td><a href="https://juejin.cn/post/7677865735721975817">https://juejin.cn/post/7677865735721975817</a></td>
					<td>3.1 Token 预算；3.2 历史管理；3.4 记忆分层</td>
			</tr>
			<tr>
					<td>上下文工程生产落地指南</td>
					<td><a href="https://juejin.cn/post/7633633244708438050">https://juejin.cn/post/7633633244708438050</a></td>
					<td>3.1 窗口容量规划；压缩摘要代码</td>
			</tr>
			<tr>
					<td>M09 Context Engineering（李文周）</td>
					<td><a href="https://liwenzhou.com/courses/ai-agent/09-context-engineering/">https://liwenzhou.com/courses/ai-agent/09-context-engineering/</a></td>
					<td>Token 预算门控、历史压缩、结构化笔记</td>
			</tr>
	</tbody>
</table>
<h2 id="官方与白皮书">官方与白皮书</h2>
<table>
	<thead>
			<tr>
					<th>材料</th>
					<th>链接</th>
					<th>覆盖点</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>Anthropic · Effective context engineering for AI agents</td>
					<td><a href="https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents">https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents</a></td>
					<td>compaction、structured note-taking、sub-agent</td>
			</tr>
			<tr>
					<td>Claude · Compaction</td>
					<td><a href="https://platform.claude.com/docs/en/build-with-claude/compaction">https://platform.claude.com/docs/en/build-with-claude/compaction</a></td>
					<td>服务端自动压缩 API</td>
			</tr>
			<tr>
					<td>Google · Context Engineering: Sessions &amp; Memory</td>
					<td><a href="https://www.kaggle.com/whitepaper-context-engineering-sessions-and-memory">https://www.kaggle.com/whitepaper-context-engineering-sessions-and-memory</a></td>
					<td>Session 压缩、记忆生命周期、历史裁剪</td>
			</tr>
			<tr>
					<td>Google ADK · Context Compaction</td>
					<td><a href="https://google.github.io/adk-docs/context/compaction/">https://google.github.io/adk-docs/context/compaction/</a></td>
					<td>滑动窗口摘要、interval / overlap</td>
			</tr>
			<tr>
					<td>Lance Martin · Context Engineering for Agents</td>
					<td><a href="http://rlancemartin.github.io/2025/06/23/context_engineering/">http://rlancemartin.github.io/2025/06/23/context_engineering/</a></td>
					<td>Write / Select / Compress / Isolate</td>
			</tr>
			<tr>
					<td>上下文工程（LangChain 博客中文整理）</td>
					<td><a href="https://juejin.cn/post/7602850166731292681">https://juejin.cn/post/7602850166731292681</a></td>
					<td>四大策略中文版</td>
			</tr>
			<tr>
					<td>上下文工程（lidaxia 译文）</td>
					<td><a href="https://blog.lidaxia.io/2025/07/07/context-engineering-from-langchain/">https://blog.lidaxia.io/2025/07/07/context-engineering-from-langchain/</a></td>
					<td>LangChain 原文翻译</td>
			</tr>
	</tbody>
</table>
<h2 id="历史压缩">历史压缩</h2>
<table>
	<thead>
			<tr>
					<th>材料</th>
					<th>链接</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>历史压缩的艺术</td>
					<td><a href="https://juejin.cn/post/7669646561668284450">https://juejin.cn/post/7669646561668284450</a></td>
			</tr>
			<tr>
					<td>第 7 章：上下文压缩与优化技术</td>
					<td><a href="https://juejin.cn/post/7667537840745709610">https://juejin.cn/post/7667537840745709610</a></td>
			</tr>
			<tr>
					<td>第 7 章：上下文工程（Write / Select / Compress / Isolate）</td>
					<td><a href="https://waylandz.com/ai-agent-book/%E7%AC%AC07%E7%AB%A0-%E4%B8%8A%E4%B8%8B%E6%96%87%E5%B7%A5%E7%A8%8B/">https://waylandz.com/ai-agent-book/%E7%AC%AC07%E7%AB%A0-%E4%B8%8A%E4%B8%8B%E6%96%87%E5%B7%A5%E7%A8%8B/</a></td>
			</tr>
			<tr>
					<td>6.1 信息密度与压缩原理</td>
					<td><a href="https://yeasy.gitbook.io/context_engineering_guide/di-er-bu-fen-he-xin-ji-shu-yu-ce-le/06_compress/6.1_compression_principles">https://yeasy.gitbook.io/context_engineering_guide/di-er-bu-fen-he-xin-ji-shu-yu-ce-le/06_compress/6.1_compression_principles</a></td>
			</tr>
			<tr>
					<td>Codex：从 Compaction 到硬切窗口</td>
					<td><a href="https://juejin.cn/post/7680581898923491370">https://juejin.cn/post/7680581898923491370</a></td>
			</tr>
	</tbody>
</table>
<h2 id="记忆管理">记忆管理</h2>
<table>
	<thead>
			<tr>
					<th>材料</th>
					<th>链接</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>LLM 记忆管理三剑客：截断、总结、检索</td>
					<td><a href="https://juejin.cn/post/7680552737289715731">https://juejin.cn/post/7680552737289715731</a></td>
			</tr>
			<tr>
					<td>走进 AI Agent 第三篇：让 Agent 记住你</td>
					<td><a href="https://juejin.cn/post/7682394398210932763">https://juejin.cn/post/7682394398210932763</a></td>
			</tr>
			<tr>
					<td>智能体 AI 权威指南 · 3.2 短期记忆管理</td>
					<td><a href="https://yeasy.gitbook.io/agentic_ai_guide/di-yi-bu-fen-dan-ti-zhi-neng-jia-gou/03_memory/3.2_short_term_memory">https://yeasy.gitbook.io/agentic_ai_guide/di-yi-bu-fen-dan-ti-zhi-neng-jia-gou/03_memory/3.2_short_term_memory</a></td>
			</tr>
			<tr>
					<td>3.6 上下文工程（记忆与调度）</td>
					<td><a href="https://yeasy.gitbook.io/zhi-neng-ti-ai-quan-wei-zhi-nan-agenticaiguide/di-yi-bu-fen-dan-ti-zhi-neng-jia-gou/03_memory/3.6_context_engineering">https://yeasy.gitbook.io/zhi-neng-ti-ai-quan-wei-zhi-nan-agenticaiguide/di-yi-bu-fen-dan-ti-zhi-neng-jia-gou/03_memory/3.6_context_engineering</a></td>
			</tr>
			<tr>
					<td>Agent 上下文爆炸：从全量塞入到智能记忆管理</td>
					<td><a href="https://openeuler.csdn.net/6a1c2e6210ee7a33f2768a96.html">https://openeuler.csdn.net/6a1c2e6210ee7a33f2768a96.html</a></td>
			</tr>
	</tbody>
</table>
<h2 id="上下文窗口规划">上下文窗口规划</h2>
<table>
	<thead>
			<tr>
					<th>材料</th>
					<th>链接</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>从零开始理解大模型（八）：上下文窗口</td>
					<td><a href="https://bbs.huaweicloud.com/blogs/476789">https://bbs.huaweicloud.com/blogs/476789</a></td>
			</tr>
			<tr>
					<td>有效的 Context 工程（少数派）</td>
					<td><a href="https://sspai.com/post/103243">https://sspai.com/post/103243</a></td>
			</tr>
			<tr>
					<td>上下文工程是什么？</td>
					<td><a href="https://juejin.cn/post/7674095753217572900">https://juejin.cn/post/7674095753217572900</a></td>
			</tr>
			<tr>
					<td>上下文越大，AI 越容易忘事</td>
					<td><a href="https://juejin.cn/post/7679716885453815818">https://juejin.cn/post/7679716885453815818</a></td>
			</tr>
	</tbody>
</table>
<h2 id="带代码的实现材料">带代码的实现材料</h2>
<table>
	<thead>
			<tr>
					<th>材料</th>
					<th>链接</th>
					<th>覆盖点</th>
			</tr>
	</thead>
	<tbody>
			<tr>
					<td>baby-agent 第 5 章</td>
					<td><a href="https://github.com/baby-llm/baby-agent/blob/main/ch05/README.md">https://github.com/baby-llm/baby-agent/blob/main/ch05/README.md</a></td>
					<td>Truncate / Offload / Summarize；含 2.1 截断策略</td>
			</tr>
			<tr>
					<td>HelloAgents 上下文工程指南</td>
					<td><a href="https://github.com/jjyaoao/HelloAgents/blob/main/docs/context-engineering-guide.md">https://github.com/jjyaoao/HelloAgents/blob/main/docs/context-engineering-guide.md</a></td>
					<td>HistoryManager、压缩阈值、保留最近 N 轮</td>
			</tr>
			<tr>
					<td>原生 NodeJS 维护 Agent Memory</td>
					<td><a href="https://juejin.cn/post/7681142626944761910">https://juejin.cn/post/7681142626944761910</a></td>
					<td>滑动窗口 + 摘要压缩双阈值</td>
			</tr>
			<tr>
					<td>how-claude-code-works · 五级压缩管线</td>
					<td><a href="https://github.com/Windy3f3f3f3f/how-claude-code-works/blob/main/en/docs/03-context-engineering.md">https://github.com/Windy3f3f3f3f/how-claude-code-works/blob/main/en/docs/03-context-engineering.md</a></td>
					<td>Tool Result 裁剪 → Autocompact</td>
			</tr>
			<tr>
					<td>Claude Code vs OpenCode · 四种记忆策略</td>
					<td><a href="https://github.com/0xtresser/Claude-Code-VS-OpenCode/blob/main/ZH/%E7%AC%AC20%E7%AB%A0_%E4%B8%8A%E4%B8%8B%E6%96%87%E5%B7%A5%E7%A8%8B/20.2_%E5%9B%9B%E7%A7%8D%E8%AE%B0%E5%BF%86%E7%AD%96%E7%95%A5.md">https://github.com/0xtresser/Claude-Code-VS-OpenCode/blob/main/ZH/%E7%AC%AC20%E7%AB%A0_%E4%B8%8A%E4%B8%8B%E6%96%87%E5%B7%A5%E7%A8%8B/20.2_%E5%9B%9B%E7%A7%8D%E8%AE%B0%E5%BF%86%E7%AD%96%E7%95%A5.md</a></td>
					<td>JIT / compaction / notes / sub-agents</td>
			</tr>
	</tbody>
</table>
<h2 id="建议阅读顺序">建议阅读顺序</h2>
<ol>
<li>Anthropic 长文（原理）</li>
<li>yeasy 指南第 4 / 6 章（系统）</li>
<li>掘金第 3 章（窗口预算数字）</li>
<li>baby-agent ch05 或李文周 M09（实现）</li>
</ol>
]]></content:encoded>
    </item>
  </channel>
</rss>
