# 文档变更分析摘要
## 1. 总体摘要
此次更新重点在于强制要求在第三方云平台部署中**锁定模型版本**,以防止新模型发布时导致的服务中断;同时,文档全面移除了关于 **Delegate (委托) 模式** 的引用,标志着该功能已被弃用或移除。
## 2. 关键变更主题
* **强制锁定第三方部署的模型版本**
在 AWS Bedrock、Google Vertex AI 和 Microsoft Foundry 的配置指南中,新增了强烈的警告(`<Warning>`),要求开发者必须设置 `ANTHROPIC_DEFAULT_OPUS_MODEL`、`SONNET_MODEL` 和 `HAIKU_MODEL` 环境变量为具体的版本 ID(如 `us.anthropic.claude-sonnet-4-6`),而不再使用别名(如 `sonnet`)。这是为了防止 Anthropic 发布新模型版本时,未及时在用户云平台账号中启用而导致现有用户报错。
* **移除 Delegate 模式**
多个页面(包括桌面端、交互模式、子代理、常见工作流)已删除所有关于 `delegate` 权限模式及其相关 Agent Team 协调逻辑的描述。`Shift+Tab` 快捷键的循环逻辑也已更新,不再包含此模式。
* **1M 上下文窗口与计费说明更新**
阐明了 Opus 4.6 和 Sonnet 4.6 支持 100 万 token 上下文,并明确说明订阅用户若要使用 200k 以上的上下文,必须启用“额外用量”并支付额外费用。
## 3. 影响等级:高 / 破坏性变更
**理由**:
* **服务中断风险**:对于通过 Bedrock/Vertex/Foundry 部署 Claude Code 的团队,如果不立即锁定模型版本,当 Anthropic 发布新模型时,生产环境极大概率会崩溃。
* **配置失效**:如果开发者的代码或配置文件中使用了 `permissionMode: "delegate"`,该配置将不再有效,需要迁移。
## 4. 开发者行动项
* **更新环境变量**:在 AWS Bedrock、Google Vertex AI 或 Microsoft Foundry 的部署脚本中,立即将模型别名替换为具体的版本 ID(例如 `export ANTHROPIC_DEFAULT_SONNET_MODEL='us.anthropic.claude-sonnet-4-6'`)。
* **移除 Delegate 配置**:检查并删除所有 `.claude/agents/*.md` 配置文件中的 `permissionMode: "delegate"` 设置。
* **检查计费设置**:如果您是企业/团队用户并计划使用 Opus/Sonnet 4.6 的 1M 上下文窗口,请确保已启用“Extra Usage”计费选项,否则超过 200k 的请求可能会失败。
* **更新用户文档**:若您向团队分发 Claude Code,请更新内部文档,告知用户 `Shift+Tab` 切换权限模式的行为变更(不再切换到 Delegate 模式)。
* **Review Azure 部署策略**:对于 Foundry 用户,确保在创建 Azure 部署时选择“特定模型版本”而非“自动更新到最新版本”。
💭 Model Reasoning
1. **Analyze the Request**:
* **Role**: World-class programmer analyzing documentation changes.
* **Output Format**: Markdown.
* **Language**: Chinese (as requested in the first prompt).
* **Content**: Analyze a batch of 10 documentation pages with diffs.
* **Requirements**: Overall summary, key themes, impact level with reasoning, action items (max 5).
2. **Analyze the Diffs (Page by Page)**:
* **`amazon-bedrock.md`**:
* *Change*: Added a strong warning (`<Warning>`) about pinning model versions (Opus, Sonnet, Haiku) to prevent breakage when new models are released. It explicitly advises setting specific model IDs (e.g., `us.anthropic.claude-sonnet-4-6`) instead of aliases.
* *Reasoning*: If a new model comes out, aliases (`sonnet`, `opus`) might point to it, but if a Bedrock account hasn't enabled the new version yet, the app breaks for existing users.
* *Change*: Consolidated some notes about model configuration.
* *Change*: Changed "We recommend..." to "Create a dedicated AWS account..." (stronger tone).
* **`common-workflows.md`**:
* *Change*: Removed mention of "Delegate Mode" from the cycle description when pressing `Shift+Tab` in a normal session.
* *Context*: Implies "Delegate Mode" might be deprecated or moved.
* **`desktop.md`**:
* *Change*: Removed mention of `delegate` permission mode being available only in CLI (implies it might be gone or significantly changed).
* *Change*: Updated the feature comparison table.
* *Change*: Removed "Agent teams and `delegate` mode" from the "Key differences" section, stating they are only in CLI/SDK.
* *Implication*: This looks like a removal of "Delegate Mode" functionality.
* **`google-vertex-ai.md`**:
* *Change*: Similar to Bedrock - Added warning about pinning model versions to prevent breakage.
* *Change*: Combined notes about prompt caching and `/login`.
* *Change*: Added specific environment variable examples for pinning.
* **`interactive-mode.md`**:
* *Change*: Updated the "General controls" table.
* *Specific*: Removed the phrase "When an [agent team](/en/agent-teams) is active, the cycle also includes Delegate Mode" from the `Shift+Tab` description. Confirms the removal/deprecation of Delegate Mode.
* **`microsoft-foundry.md`**:
* *Change*: Added warning about pinning model versions (same pattern as Bedrock and Vertex).
* *Change*: Specific advice to select specific model versions in Azure deployments, not "auto-update to latest".
* **`model-config.md`**:
* *Change*: Updated "Extended context" section. Now explicitly mentions Opus 4.6 and Sonnet 4.6 support 1M context. Clarified that subscription users need "extra usage" enabled for tokens beyond 200k.
* *Change*: Added a new section "Pin models for third-party deployments". Strong warning about setting `ANTHROPIC_DEFAULT_OPUS_MODEL`, `SONNET`, `HAIKU` to specific versions.
* **`sub-agents.md`**:
* *Change*: Removed `delegate` from the list of allowed `permissionMode` options in the configuration table and explanation.
* *Implication*: Definitive evidence that `delegate` permission mode is being removed or deprecated.
* **`third-party-integrations.md`**:
* *Change*: Added a section "Pin model versions for cloud providers" pointing to the model-config page.
* **`CHANGELOG.md.md`** (v2.1.47):
* *Note*: This is a huge list of fixes.
* *Relevance*: No major breaking changes mentioned in the summary text, but lots of bug fixes (Windows line endings, memory usage, `ctrl+f` killing agents, etc.).
* *Note*: It doesn't explicitly mention the removal of `delegate` mode or the pinning changes, but the docs reflect the current state of the software.
3. **Synthesize Key Themes**:
* **Theme 1: Model Version Pinning for Stability**. Across Bedrock, Vertex, Foundry, and Model Config pages, there is a massive push to force users to pin specific model IDs (e.g., `claude-sonnet-4-6`) rather than using aliases (`sonnet`). This prevents breakage when Anthropic releases new models that haven't been whitelisted in the third-party provider accounts yet.
* **Theme 2: Deprecation/Removal of "Delegate Mode"**. Several pages (`desktop.md`, `interactive-mode.md`, `sub-agents.md`, `common-workflows.md`) have scrubbed references to `delegate` permission mode and its associated agent team cycling. This appears to be a feature removal.
* **Theme 3: Extended Context Clarification**. Updates on 1M context availability for Opus/Sonnet 4.6 and billing details for subscription users.
4. **Determine Impact Level**:
* **Level**: High / Breaking (for specific configurations).
* **Reasoning**:
* **Pinning**: If you don't pin models, your third-party deployment (Bedrock/Vertex/Foundry) *will break* when a new model drops. This is a critical operational change for DevOps/Platform engineers managing these deployments.
* **Delegate Mode**: If users rely on the `delegate` permission mode in their sub-agent configurations or CLI workflows, their configs are now invalid/outdated.
5. **Draft Action Items**:
1. **Action**: Update environment variables for Bedrock/Vertex/Foundry deployments to use specific model IDs (e.g., `ANTHROPIC_DEFAULT_SONNET_MODEL='us.anthropic.claude-sonnet-4-6'`) instead of aliases.
2. **Action**: Review and remove `permissionMode: "delegate"` from any existing `.claude/agents/*.md` configurations or settings files.
3. **Action**: Update deployment scripts/documentation for internal users to reflect the new requirement for model pinning to prevent runtime breakage.
4. **Action**: For Teams/Enterprise users on the new 4.6 models, ensure "extra usage" is enabled if they rely on the 1M token context window beyond the 200k limit.
5. **Action**: Note the change in `Shift+Tab` behavior (no longer cycles through Delegate mode).
6. **Translate to Chinese and Format**:
* *Summary*: 此次更新主要集中在增强第三方云平台(AWS Bedrock、Google Vertex、Microsoft Foundry)部署的稳定性,并移除了 `delegate` 委托模式。文档明确要求“锁定”模型版本以防止自动更新导致的服务中断。
* *Themes*: 第三方部署的模型版本锁定、移除 Delegate 模式、1M 上下文窗口的计费说明更新。
* *Impact*: High/Breaking.
* *Actions*: Pin models, remove delegate configs, check billing for 1M context.
7. **Refine**:
* Ensure the tone is professional and concise.
* Check the specific model IDs mentioned in the diff (e.g., `us.anthropic.claude-sonnet-4-6`).
* Confirm `delegate` mode removal is consistent across docs.
8. **Final Output Generation**: (Matches the provided Chinese response structure).