🤖 AI Batch Analysis
# 文档变更批量分析
## 总体摘要
本次更新涉及 52 个页面,核心变更包括 API 版本头从 `2023-06-01` 升级到 `2026-10-21`、Claude Desktop 新增 Windows SSH 命令支持、Hook 在 auto 模式下 `updatedInput` 行为的重要澄清,以及多个开发者工具的细节修正。
## 关键主题
- **API 版本升级**:所有 cURL 示例的 `anthropic-version` 从 `2023-06-01` 统一更新为 `2026-10-21`,涉及 vision、PDF、streaming、prompt caching、extended thinking 等多个页面
- **合作伙伴平台命名统一**:全站将 "Amazon Bedrock and Claude Models on Google Cloud (Google managed)" 统一调换为 "Google Cloud (Google managed) and Amazon Bedrock" 的排列顺序
- **Claude Desktop Windows 支持**:大幅新增 Windows 平台的 SSH host 命令编写规则、批处理脚本包装器、路径处理(需全路径、不能用裸名)
- **Hook auto 模式下 `updatedInput` 行为**:新增文档说明——当 hook 返回 `updatedInput` 但无 `permissionDecision` 时,auto 模式的服务端审核只覆盖原始输入,修改后的调用可能被拒绝;Claude 会重试让服务端重新审核
- **Effort level 作用域细化**:`--effort` 仅覆盖"主对话模型"的设置;子代理/队友在不同模型上不会继承主对话的 effort level,需显式设置 `effort` 字段
- **VS Code 扩展安装行为变更**:在集成终端启动 `claude` 不再自动安装扩展,需先安装扩展才能自动连接;`/ide` 从外部终端仍可安装
- **`/context all` 替代 `/context`**:fullscreen 模式下 `/context` 会折叠列表,需用 `/context all` 查看完整 Memory files
- **API 错误文档增强**:新增 CORS 401 错误说明;`timeout_error` 现在也可能以 500 状态码返回
- **Sandbox 文档重构**:AppArmor profile 配置独立成节,新增错误消息与解决方案的交叉引用
- **其他**:MCP stdio 服务器新增 `CLAUDE_PROJECT_DIR` 环境变量、详细 beta 遍踪新增生产环境警告、Bedrock Guardrails 优先推荐 Claude apps gateway 方式
## 影响等级:**Medium**
- API 版本升级是最广泛的改动,但 Anthropic API 版本通常是增量式的(解锁新功能),旧版本仍可用,不构成 breaking change
- Hook `updatedInput` 在 auto 模式下的新行为是运行时语义变化,现有 hook 可能遇到新的拒绝情况
- VS Code 扩展不再自动安装是行为变更,可能影响依赖该行为的开发者工作流
- 其余多为文档澄清和重构,不影响运行时行为
## 开发者行动项
1. **更新 API 版本头**:将代码中的 `anthropic-version: 2023-06-01` 更新为 `2026-10-21`,以解锁最新 API 功能
2. **审查 Hook 逻辑**:如果你在 auto 模式下使用 `updatedInput` 且不设 `permissionDecision`,需了解服务端可能拒绝修改后的调用,Claude 会重试让服务端重新审核
3. **检查子代理 effort 设置**:子代理/队友若运行在与主对话不同的模型上,必须显式设置 `effort` 字段,否则不会继承主对话的 effort level
4. **VS Code 工作流调整**:在集成终端使用 `claude` 前,确保已安装 Claude Code 扩展;否则 `/ide` 和 `/status` 会报告未连接
5. **Windows Desktop 用户**:SSH host 命令必须使用 exe/cmd/bat 的全路径,裸名不可用;路径含空格需用单引号包裹
💭 Model Reasoning
Let me analyze the batch of documentation changes across 52 pages.
Key changes I can identify:
1. **API version header update**: Multiple pages changed `anthropic-version: 2023-06-01` to `anthropic-version: 2026-10-21`. This is a significant change - the API version has been bumped.
2. **Partner platform naming convention change**: Throughout multiple pages, "Amazon Bedrock and Claude Models on Google Cloud (Google managed)" has been reordered to "Claude Models on Google Cloud (Google managed) and Amazon Bedrock". This is a consistent naming convention change.
3. **Claude Desktop Windows support**: Significant new documentation for Windows support in Desktop SSH host commands, including Windows-specific command writing rules, batch file wrappers, and path handling.
4. **Bedrock Guardrails configuration change**: The guardrail configuration flow was updated to prioritize Claude apps gateway approach over settings file approach.
5. **`--effort` flag clarification**: The `--effort` flag now specifies it overrides settings "on the main conversation's model" - narrower scope than before.
6. **Subagent/teammate effort level**: New section explaining effort level behavior for subagents and teammates when they don't have their own `effort` field.
7. **Hook `updatedInput` in auto mode**: New section documenting behavior when a hook returns `updatedInput` without `permissionDecision` in auto mode - the server may deny the changed call since it reviewed the original input, not the hook-modified input.
8. **`/context all` instead of `/context`**: The `/context` command now needs `all` flag to show full memory files list in fullscreen mode.
9. **VS Code extension behavior change**: Starting `claude` in VS Code integrated terminal no longer auto-installs the extension. You need the extension installed first for automatic connection. `/ide` from external terminal can still install it.
10. **Detailed beta tracing warning**: New warning that `ENABLE_BETA_TRACING_DETAILED` should only be used for debugging, not production.
11. **MCP stdio servers now export `CLAUDE_PROJECT_DIR`**: Plugins' MCP stdio servers now have access to the project directory variable.
12. **Sandbox documentation restructured**: AppArmor profile for bubblewrap moved to its own section, with clearer guidance on when to add it.
13. **API errors documentation updates**: New CORS 401 error explanation, and `timeout_error` can now appear with 500 status codes too.
14. **`/memory` command description simplified**: Removed mention of checking loaded files with `/context` from `/memory` description.
15. **Fullscreen Ctrl+R search**: Updated description of the fullscreen reverse search dialog with preview pane details.
16. **Rate limits API change**: The `group_type` deprecation now also applies to the response of setting workspace rate limits.
17. **Interactive mode search description**: Updated description of how search works in fullscreen vs classic renderer.
Let me categorize impact:
The API version bump from `2023-06-01` to `2026-10-21` is the most significant change. This could be breaking if developers have hardcoded the old version. However, API versions in Anthropic's system are typically additive (new features unlocked), not breaking. The old version likely still works.
The VS Code extension auto-install behavior change is notable - developers who relied on automatic extension installation when running `claude` in integrated terminal will need to adjust.
The hook `updatedInput` in auto mode is a behavioral change that hook developers need to understand.
Let me compile the analysis.