# Claude Code 文档变更分析
## 总体摘要
本次更新主要优化了文档的清晰度(特别是 GitHub Actions 的设置流程),扩展了对 Google Cloud 平台的工具和模型支持,并记录了 v2.1.328 版本中针对 Code Mode、远程控制(Remote Control)和 CLI 稳定性的大量重要修复。
## 关键主题
* **GitHub Actions 指南重构** (`github-actions.md`):将快速安装流程彻底重写为分步操作指南,从安装 GitHub CLI 到创建 PR,大幅提升了设置的可读性和易用性。
* **平台兼容性扩展**:在多个工具(如 Web Search、Web Fetch、Tool Use)和模型(如 Fable 5.2、Mythos 5.2、Opus 5.5)的可用性表中,新增了 "Claude Models on Google Cloud (Anthropic managed)" 支持。
* **v2.1.328 稳定性修复** (`CHANGELOG.md.md`):包含大量修复,重点解决了 zsh 兼容性(`=` 符号处理)、Code Mode 脚本执行(变量作用域、await/return 混用)、远程控制连接断开以及会话恢复等问题。
* **CLI 增强功能** (`mcp.md`):新增了通过管道传输 JSON 配置 MCP 服务器的能力(`cat server.json | claude mcp add-json <name> -`)及新的环境变量 `CLAUDE_CODE_DISABLE_DEFERRED_TOOL_RESUME`。
* **措辞与错误信息修正**:统一并修正了多处文档描述以匹配实际 UI 行为,例如将 "disabled by your organization" 改为 "turned off by your organization",更新了沙箱和 WSL2 相关的错误提示。
## 影响等级
**中等**
**理由**:虽然没有明显的 API 破坏性变更,但 v2.1.328 包含了广泛的 Bug 修复,特别是针对 Code Mode 和远程控制的稳定性改进,这将显著提升开发者的日常使用体验。GitHub Actions 文档的全面重写对配置 CI/CD 的用户价值很高。Google Cloud 平台的支持扩展也为企业用户提供了更多部署选择。
## 开发者行动项
1. **查看 GitHub Actions 设置**:如果你正在配置或维护 GitHub Actions,请阅读更新后的 `/install-github-app` 分步指南。
2. **检查 Code Mode 脚本**:如果你的 Code Mode 脚本使用了顶层的 `await` 和 `return` 混用,或者依赖之前的变量作用域行为,请测试 v2.1.328 的修复效果。
3. **利用新 CLI 功能**:在编写脚本添加 MCP 服务器时,可以使用新的管道输入功能 `claude mcp add-json <name> -`。
4. **审查 Hooks 更新**:注意 `mcp_tool` hooks 新增的 `"onFailure": "block"` 选项,以及与 OpenTelemetry 相关的新警告。
5. **更新 Google Cloud 集成**:如果你使用 Google Cloud (Anthropic managed),查看新增的工具(如 MCP 连接器)和模型支持情况。
💭 Model Reasoning
1. **Understand the Goal:** The user wants a concise, insightful analysis of a batch of documentation changes for Claude Code. I need to summarize what changed and why it matters to developers in Chinese. The format must be markdown.
2. **Analyze the Input Data:** I have diffs for 19 pages. Let's scan through them to identify patterns and specific changes.
* `chrome.md`: Minor wording changes. "Select browser..." -> "choose another browser". "Enabled by default" -> "turn Chrome on by default". Goal: Simplify language, clarify UI interactions (perhaps UI labels changed or documentation became more generic). Warning message wording change.
* `discover-plugins.md`: Wording changes. "Plugin is now active." -> "note that starts Its bundled MCP server". "The plugin couldn't" -> "summary includes The plugin couldn't". "Successfully added marketplace" -> "run /plugin... look for the marketplace". "Last used line" removed. "Enable auto-update" instruction clarified ("open its menu"). *Impact: Aligning docs with actual UI output or behavior changes.*
* `github-actions.md`: **Major rewrite.** `/install-github-app` section expanded significantly. Step-by-step guide (Sign in, Start setup, Install App, Select workflows, Choose credential, Confirm, Create PR). Moved from a general paragraph to a numbered list. Added details about "Update workflow file with latest version" and handling existing `claude.yml`. *Impact: Improved usability and clarity for setting up CI/CD.*
* `hooks.md`: Small clarification. Removed a specific detail about `ExitWorktree` prompts vs `remote-control` cleanup prompt behavior.
* `interactive-mode.md`: Wording change. "answers Plugin... is not installed" -> "says the plugin isn't installed".
* `mcp.md`: Wording changes. "runs on the server; survives exiting" -> "says the call keeps running after you exit". "disabled by your organization" -> "turned off by your organization". Added a new tip: `cat server.json | claude mcp add-json <name> -` (pipe JSON in). *Feature: New CLI capability.*
* `monitoring-usage.md`: Wording change. "Machines with the same digest run the same policy" -> "resolved the same managed settings".
* `sandboxing.md`: Wording changes. "Sandboxing needs WSL2 or requires WSL2" (updated error message). "Sandbox settings can't be changed here" (updated error message). "Start Claude Code in a project directory" vs "project folder".
* `sub-agents.md`: Wording change. Removed "without reporting it in the session" (implied behavior change or simplification).
* `vs-code.md`: Added tip: Right-click Explorer to "Claude Code: Add to Chat" (v2.1.327). Clarified "Only two of the server's tools are visible".
* `build-with-claude/batch-processing.md`: Removed note about AWS availability (maybe redundant or formatting change).
* `build-with-claude/effort.md`: Table formatting change (Google Cloud link wrap).
* `agents-and-tools/tool-use/implement-tool-use.md`: Table formatting change (added Google Cloud Anthropic managed link).
* `agents-and-tools/tool-use/computer-use-tool.md`: Table formatting change (added Claude Mythos 5.1/5.2 in Google Cloud Anthropic managed). *Feature: Model availability updates.*
* `agents-and-tools/tool-use/web-search-tool.md`: Table formatting change (added Google Cloud Anthropic managed link).
* `agents-and-tools/tool-use/web-fetch-tool.md`: Table formatting change (added Google Cloud Anthropic managed link).
* `agents-and-tools/tool-use/programmatic-tool-calling.md`: Table formatting change (added Claude Mythos 5.1/5.2 in Google Cloud Anthropic managed).
* `agents-and-tools/mcp-connector.md`: Table update. Added Google Cloud support to `mcp-client-2026-09-15` or `mcp-client-2025-11-20`. Removed Google Cloud from the `mcp-client-2025-11-20` specific row logic (or consolidated).
* `CHANGELOG.md.md`: **Huge list of fixes and features for v2.1.328.**
* Added auto mode for Opus/Sonnet 4.6.
* `"onFailure": "block"` for MCP tool hooks.
* Warning when message held/dropped.
* `/status` notice for OpenTelemetry endpoint missing.
* `CLAUDE_CODE_DISABLE_DEFERRED_TOOL_RESUME`.
* Self-hosted runner improvements (`--repository-folder`, metrics).
* **Many Bug Fixes:** zsh `=` bug, auto compaction, markdown rendering freeze, Esc key loss, paste issues, scheduled tasks file corruption, cloud session compaction, token counts, Code Mode fixes (script behavior, variable scope, @-mentions, return await), Remote Control fixes (disconnects, cross-session messaging), Desktop app fixes.
3. **Synthesize and Structure:**
* **Overall Summary:** This batch focuses on improving documentation clarity (especially for GitHub Actions setup), updating platform support (Google Cloud availability), and documenting a significant number of bug fixes in version 2.1.328, particularly around Code Mode, Remote Control, and CLI stability.
* **Key Themes:**
* *GitHub Actions Setup:* Completely restructured the quick start guide into a step-by-step walkthrough.
* *Platform Support:* Updated availability tables to include "Claude Models on Google Cloud (Anthropic managed)" for various tools (Web Search, Fetch, Tool Use, etc.) and models (Fable, Mythos, Opus).
* *Bug Fixes & Stability (v2.1.328):* Extensive changelog highlighting fixes for zsh compatibility, Code Mode script execution, Remote Control reliability, and session management.
* *CLI Enhancements:* New ability to pipe JSON into `claude mcp add-json` and new environment variables like `CLAUDE_CODE_DISABLE_DEFERRED_TOOL_RESUME`.
* *Wording & Error Messages:* Consistent updates to error messages and UI descriptions across the docs to match actual implementation (e.g., "turned off by your organization" instead of "disabled").
* **Impact Level:** **Medium**.
* *Reasoning:* While no "breaking changes" are obvious in the API sense, the sheer volume of bug fixes (especially in Code Mode and Remote Control) significantly improves developer experience. The GitHub Actions documentation overhaul is a high-value usability improvement. The platform additions (Google Cloud) are important for enterprise users.
* **Action Items:**
* Review the updated GitHub Actions setup guide (`/install-github-app`) if you are setting up CI/CD.
* Update Code Mode scripts if you were affected by the specific fixes regarding variable scope, `await/return`, or script cutoffs.
* Check `CHANGELOG.md` for specific hooks updates (e.g., `mcp_tool` `"onFailure": "block"`).
* Utilize the new pipe feature for `claude mcp add-json` for scripting server additions.
* Verify your Google Cloud integrations if using the new model/tool availability.
4. **Refine Language (Chinese):** Translate the synthesized points accurately and concisely.
* *Overall:* 本次更新主要优化了文档的清晰度(特别是 GitHub Actions 设置),更新了平台支持信息(Google Cloud),并记录了 v2.1.328 版本的大量 Bug 修复,重点涉及 Code Mode、远程控制和 CLI 稳定性。
* *Themes:* GitHub Actions 指南重构, 平台兼容性扩展, v2.1.328 稳定性修复, CLI 增强功能, 措辞与错误信息修正.
* *Impact:* Medium. (Bug fixes + usability improvements).
* *Action Items:* Check GitHub Actions guide, review Code Mode scripts, check hooks, use new pipe feature.
5. **Final Polish:** Ensure markdown formatting is clean.
* *Self-Correction during drafting:* Make sure to mention the specific version 2.1.328 as the source of the fixes. Highlight the specific Code Mode fixes as they affect developer workflows directly.
6. **Final Output Generation.** (Proceed to generate response based on these steps).