本次文档更新主要围绕隐私合规性(ZDR 资格明确化)、上下文管理效率(MCP 工具默认延迟加载)以及文档结构的精简与重组。
### 关键主题
* **ZDR (Zero Data Retention) 标准化与扩展**:几乎所有功能页面都增加了统一的 ZDR 资格说明。值得注意的是,**Computer Use** 和 **Context Editing** 移除了“Beta 功能不适用 ZDR”的警告,现在被标记为 ZDR 适用,这对企业级安全合规是重大利好。
* **MCP 工具默认行为变更**:MCP 工具定义现在**默认延迟加载**。此前仅当工具定义超过上下文 10% 时才自动延迟,现在默认仅加载工具名称,直到实际使用时才加载完整定义。这显著降低了多 MCP 服务器场景下的上下文开销。
* **文档结构重组与瘦身**:大量删除了冗余的代码示例(特别是在 `overview` 和 `implement-tool-use` 页面)以及“模型兼容性”表格,将通用配置(如域名过滤、Prompt Caching)整合到了专门的参考页面,使主文档更简洁。
* **数据保留策略透明化**:对于不支持 ZDR 的功能(如 Batch Processing, Files, Code Execution),新增了专门章节明确数据保留时长(例如 Batch Processing 为 29 天),方便开发者评估合规风险。
### 影响级别
**Medium**
**理由**:
1. **行为变更**:MCP 工具的默认加载策略发生了实质性改变,将直接改善开发者在 Claude Code 或 MCP 客户端中的上下文效率,但不需要修改代码。
2. **合规解锁**:Computer Use 和 Context Editing 正式支持 ZDR,解除了此前在受严格数据留存限制环境中的使用阻碍。
3. **非破坏性**:API 本身没有破坏性变更,主要是文档说明的澄清和优化,以及默认行为的优化。
### 开发者行动项
* **优化 MCP 配置**:如果你配置了大量 MCP 服务器,新的默认延迟加载机制将自动节省上下文 Token,无需手动调整 `ENABLE_TOOL_SEARCH` 阈值,但建议检查 `/context` 确认效果。
* **评估 ZDR 合规性**:如果你的组织要求数据零留存,现在可以启用 **Computer Use** 和 **Context Editing** 功能(此前受限)。
* **更新文档链接**:部分技术细节(如 `allowed_callers` 配置、域名过滤逻辑)已从具体工具页迁移至通用的 `Server tools` 或 `Tool reference` 页面,请更新内部知识库的引用。
* **检查 Subagent 内存限制**:Subagent 的系统提示中内存限制从单纯的“200 行”更新为“200 行或 25KB(取先达者)”,需相应调整记忆管理逻辑。
💭 Model Reasoning
1. **Analyze the Request:**
* **Role:** World-class programmer/developer tools expert.
* **Task:** Analyze documentation changes as a single batch.
* **Input:** Diffs from 30 pages (though only a subset of distinct diffs are provided in the prompt, I need to synthesize based on the provided diffs).
* **Output Format:** Markdown, Chinese response, concise, insightful, focused on what matters to developers.
* **Specific Structure:**
1. Overall Summary (1-2 sentences).
2. Key Themes (bullets).
3. Impact Level (Low/Medium/High/Breaking) + Reasoning.
4. Action Items for Developers (max 5 bullets).
2. **Scan and Process the Diffs:**
* *Page: `costs.md`*: MCP (Model Context Protocol) tool definitions are now **deferred by default**. Previous behavior: deferred only when >10% context. New behavior: always deferred (only names in context until used). CLI tools are still more context-efficient.
* *Page: `mcp.md`*: Reinforces MCP Tool Search is **enabled by default**. Defers all tools until needed. Old "10% threshold" logic is now optional (`ENABLE_TOOL_SEARCH=auto`).
* *Page: `sub-agents.md`*: Added a link to context window visualization for subagents. Memory limit changed: "first 200 lines" to "first 200 lines or 25KB".
* *Page: `build-with-claude/overview.md`*: Added a **"Zero Data Retention (ZDR)"** column to the feature table. Distinguishes between "ZDR eligible" and "Not ZDR eligible".
* *Page: `build-with-claude/pdf-support.md`*: Added ZDR eligibility note.
* *Page: `build-with-claude/extended-thinking.md`*: Added ZDR eligibility note. Fixed a link path (tool use forcing).
* *Page: `build-with-claude/prompt-caching.md`*: Clarified ZDR eligibility (replaced technical explanation about KV cache with a simple "eligible" statement). Removed code examples for caching tool definitions (likely moved or cleaned up).
* *Page: `build-with-claude/batch-processing.md`*: Clarified ZDR *not* eligible. Added "Data retention" section explaining 29-day retention.
* *Page: `build-with-claude/context-windows.md`*: Added ZDR eligibility note.
* *Page: `build-with-claude/context-editing.md`*: Added ZDR eligibility note (removed "Beta features are excluded" note). Fixed link for `tool_runner`.
* *Page: `build-with-claude/citations.md`*: Added ZDR eligibility note.
* *Page: `build-with-claude/search-results.md`*: Added ZDR eligibility note.
* *Page: `build-with-claude/structured-outputs.md`*: Clarified ZDR eligibility with "limited technical retention" (JSON schema cached 24h). Removed large code block (clean up).
* *Page: `build-with-claude/effort.md`*: Added ZDR eligibility note.
* *Page: `build-with-claude/files.md`*: Clarified ZDR *not* eligible. Added "Data retention" section.
* *Page: `build-with-claude/working-with-messages.md`*: Updated ZDR link path.
* *Page: `agents-and-tools/tool-use/overview.md`*: Massive rewrite. Simplified intro. Removed old "Strict tool use" tip. Simplified code example. Focus on server tools vs client tools.
* *Page: `agents-and-tools/tool-use/implement-tool-use.md`*: Renamed to "Define tools". Simplified content. Added link to `tool-reference`. Updated text regarding "Anthropic-defined". Removed boilerplate code examples.
* *Page: `agents-and-tools/tool-use/bash-tool.md`*: Added ZDR note. Removed model compatibility table (moved to reference). Added safety improvements (allowlist logic). Updated example code to be more concise (`hidelines`).
* *Page: `agents-and-tools/tool-use/text-editor-tool.md`*: Added ZDR note. Removed model compatibility table. Removed deprecated Sonnet 3.7 tabs.
* *Page: `agents-and-tools/tool-use/computer-use-tool.md`*: Added ZDR note (removed "Beta not eligible" warning - implies it's now eligible or at least treated differently). Removed model compatibility table. Removed "feedback form" card. Simplified code. Updated action descriptions (zoom available on Opus 4.6).
* *Page: `agents-and-tools/tool-use/web-search-tool.md`*: Simplified ZDR note (referenced server tools page). Removed model compatibility table. Removed long "Domain filtering" and "Prompt caching" sections (moved to reference/server tools).
* *Page: `agents-and-tools/tool-use/web-fetch-tool.md`*: Simplified ZDR note. Removed model compatibility table. Removed "Domain filtering" and "Prompt caching" sections. Added "Next steps" links.
* *Page: `agents-and-tools/tool-use/code-execution-tool.md`*: Added ZDR note (not eligible). Removed massive code example block.
* *Page: `agents-and-tools/tool-use/memory-tool.md`*: Added ZDR note. Removed model compatibility table. Removed "Using with Context Editing" section (moved/consolidated).
3. **Synthesize and Categorize:**
* **Theme 1: Zero Data Retention (ZDR) Standardization.**
* Almost every feature page (`overview.md`, `pdf-support.md`, `extended-thinking.md`, `bash-tool.md`, etc.) now has a standardized ZDR note indicating eligibility.
* Distinguishes features that *are* eligible (Context, Citations, Web Search/Web Fetch with caveats) vs. those that aren't (Batch Processing, Files, Code Execution).
* *Why it matters:* Clear compliance messaging for enterprise/privacy-conscious devs.
* **Theme 2: MCP Tool Search Defaults Changed.**
* MCP tools are now **deferred by default** (only names loaded).
* Previous behavior: automatic deferral only at 10% context usage.
* *Why it matters:* Significant improvement in context management for users with many MCP servers. Developers using MCP in Claude Code will see much lower initial context usage.
* **Theme 3: Documentation Cleanup & Restructuring (Consolidation).**
* Massive removal of code examples from individual tool pages (`overview.md`, `implement-tool-use.md`, `bash-tool.md`, `code-execution-tool.md`).
* Removal of "Model compatibility" tables (likely moved to a central "Tool Reference").
* Removal of cross-referenced sections like "Domain filtering" and "Prompt caching" from specific tool pages (replaced with links to general topics).
* *Why it matters:* Documentation is getting leaner and easier to navigate, preventing bloat, but devs need to follow links to see implementation details.
* **Theme 4: Beta Status Changes & Features Maturation.**
* Context Editing is now ZDR eligible (removed "Beta features excluded" note).
* Computer Use removed the "Beta not eligible for ZDR" warning (changed to "This feature is eligible..."). This is a big shift for security-sensitive use cases.
* *Why it matters:* Critical for enterprise adoption of previously beta/restricted features.
4. **Drafting the Response (Internal Monologue & Translation to Chinese):**
* *Summary:* Updates focused on privacy compliance (ZDR eligibility clarification), context optimization (MCP deferred loading by default), and documentation streamlining (consolidating code samples and references).
* *Key Themes:*
1. **ZDR (Zero Data Retention) Standardization:** Standardized eligibility notes across all features. Crucial: Computer Use and Context Editing are now ZDR eligible.
2. **MCP Tool Search Default Update:** MCP tools are now deferred by default (only tool names in context), reducing overhead significantly.
3. **Documentation Restructuring:** Removed duplicate code examples and compatibility tables, centralizing them in reference pages.
4. **Data Retention Clarity:** Explicitly stated retention periods for non-ZDR features (e.g., Batch Processing: 29 days).
* *Impact Level:* **Medium**. It's not a code-breaking API change, but the MCP default change significantly affects context usage behavior. The ZDR eligibility changes allow usage in previously restricted environments.
* *Action Items:*
* Review MCP tool usage if you have many servers (context behavior changed).
* Check ZDR eligibility if your organization requires zero data retention (Computer Use, Context Editing are now options).
* Update documentation links/bookmarks (some sections moved).
* Update memory limit logic for subagents (25KB limit added).
5. **Refining the Output (Markdown format):**
* *Summary:* 本次更新主要集中在隐私合规(ZDR 资格明确化)、上下文优化(MCP 工具默认延迟加载)以及文档结构精简(合并代码示例和参考表)。
* *Themes:*
* ZDR 标准化:明确标注了所有功能的 ZDR 资格状态,**Computer Use** 和 **Context Editing** 现已支持 ZDR。
* MCP 上下文优化:MCP 工具定义现在**默认延迟加载**,仅加载工具名称,大幅减少闲置上下文占用。
* 文档重构:移除了冗余的代码示例和模型兼容性表格,将细节迁移至统一的参考页面。
* 数据保留明确化:对 Batch Processing 等非 ZDR 功能,明确说明了数据保留时长(如 29 天)。
* *Impact:* **Medium**。
* Reasoning: MCP 的默认行为变更会影响上下文窗口的使用效率(正面影响);ZDR 状态更新解锁了关键功能(如 Computer Use)在企业环境中的合规使用;文档结构变动主要影响查阅体验,不破坏代码。
* *Action Items:*
* 关注 MCP 工具的上下文消耗变化,新的默认策略将显著降低初始开销。
* 若受 ZDR 限制,现在可以放心在合规环境中启用 Computer Use 和 Context Editing。
* 更新内部文档或书签,因为部分章节(如域名过滤、提示词缓存)已被移至通用页面。
* 调整 Subagent 内存限制逻辑(新增 25KB 上限)。
6. **Final Polish (Chinese):** Ensure tone is professional, concise, and "world-class programmer" persona.
* *Self-Correction on MCP:* The diff says `deferred by default` vs `automatic when >10%`. This is a logic flip. It effectively makes "tool search" always active for efficiency.
* *Self-Correction on Computer Use:* The diff removed the "Beta not eligible" note and added the standard "ZDR eligible" note. This is a big deal for security. I should highlight it.
7. **Final Output Generation.** (Proceeding to generate the markdown).