← All reports

Changes on 2026-11-13

29 total changes in 3 runs

20:11 EST

🤖 AI Batch Analysis

# 文档变更分析 ## 总体摘要 本次更新主要是文档澄清与格式整理,重点优化了 MCP 配置、子代理模型选择逻辑的说明,新增了 VS Code 建议提示功能文档,并发布了 v2.1.325 版本修复安全漏洞及多项 bug。 ## 关键主题 - **文档格式清理**: 大量代码块添加了 `theme={null}` 属性,统一文档生成格式 - **MCP 配置澄清**: `--strict-mcp-config` 和 Desktop 应用中 MCP 服务器加载行为的描述更加清晰 - **子代理模型逻辑重写**: `sub-agents.md` 中模型选择优先级和嵌套子代理行为的重要更新 - **新增功能文档**: VS Code 新增建议提示功能及其开关设置 - **安全与 Bug 修复**: v2.1.325 版本修复了 zstd 解码安全漏洞及多个关键问题 ## 影响级别 **High** **理由**: 1. CHANGELOG 显示 v2.1.325 修复了安全漏洞(zstd 解码问题),建议升级 2. 子代理模型选择逻辑有重要变更,影响依赖自定义子代理的开发者 3. GitHub Actions 新增了 Dependabot alerts 权限要求,可能影响 CI/CD 配置 4. 多项 bug 修复涉及会话恢复、MCP 连接、沙盒行为等核心功能 ## 行动建议 1. **升级至 v2.1.325** 获取安全修复及多项 bug 修复 2. **审查 GitHub Actions 权限**,确认是否需要添加 `Dependabot alerts | Read` 3. **查看子代理模型选择逻辑**更新,特别是嵌套子代理的模型继承规则 4. **检查 VS Code 建议提示设置**,如需禁用可配置 `promptSuggestionEnabled` 5. **重新审视 MCP 配置**,特别是使用 `--strict-mcp-config` 时的服务器加载行为
💭 Model Reasoning
用户希望我分析 15 个页面的文档变更并提供中文总结。 我需要: 1. 给出总体摘要(1-2句话) 2. 列出关键主题 3. 评估影响级别 4. 提供开发者行动建议(最多5条) 让我仔细审查这些变更: **Page 1: claude-code-on-the-web.md** - 变更:只是把示例中的 Session ID 和 URL 换成了占位符 - 影响:极小,只是文档清理 **Page 2: cli-reference.md** - `--strict-mcp-config` 的描述更新,更清楚地说明跳过 `.mcp.json` 等配置中的 MCP 服务器 - 影响:文档澄清,行为未变 **Page 3: desktop.md** - 添加了关于第三方提供商的新警告情况(Amazon Bedrock、Google Cloud 等) - 删除了关于 MCP 服务器优先级规则的详细说明(可能是为了简化) - 影响:文档澄清,管理配置 **Page 4: github-actions.md** - 添加了 "Dependabot alerts | Read" 权限 - 影响:GitHub Actions 配置可能需要更新 **Page 5: mcp.md** - `--strict-mcp-config` 描述更新 - 删除了关于 Desktop 应用本地会话中 MCP 服务器优先级的段落 - 影响:文档清理 **Page 6: model-config.md** - 更新了子代理和队友的模型回退行为描述 - 链接更新到了新的章节 - 影响:文档澄清 **Page 7: sandboxing.md** - 阐明沙盒命令仍需经过权限流程,除非选择 auto-allow 模式 - 修正了关于 TMPDIR 和 `autoAllowBashIfSandboxed` 的文档 - 影响:文档澄清 **Page 8: security.md** - 沙盒 Bash 工具描述更新 - 添加了 auto-allow 模式的链接 - 影响:文档澄清 **Page 9: setup.md** - 大量 `theme={null}` 添加(可能是文档生成/格式调整) - 关于 `minimumVersion` 设置的文档改进 - 影响级别:主要是文档格式更新,内容更新涉及版本锁定 **Page 10: skills.md** - 简化了关于自动调用的 bundled skills 描述 - 修正了关于 hooks 重载的说明 - 影响级别:文档澄清 **Page 11: slash-commands.md** - 与 skills.md 相同的变更 - 影响级别:文档澄清 **Page 12: sub-agents.md** - 重大更新:模型选择逻辑的详细重写 - 更新了 Explore 和 Plan 子代理的模型行为描述 - 新增了嵌套子代理的模型继承规则 - 重新组织了模型选择优先级 - 影响级别:高 - 子代理模型行为的重要澄清 **Page 13: vs-code.md** - 新增了建议提示功能的文档 - 添加了新的错误代码处理说明 - 影响级别:新增功能文档 **Page 14: api/messages.md** - API 响应示例简化,移除了 citations、diagnostics 和 stop_details - 影响级别:API 文档简化 **Page 15: CHANGELOG.md** - 版本 2.1.325 的变更日志 - 修复了多个问题,包括安全漏洞、子代理模型、沙盒、MCP 等 - 影响级别:高 - 包含安全修复和重要 bug 修复 --- **总体摘要:** 本次更新主要是文档澄清和格式整理,包含了新的建议提示功能、GitHub Actions 权限更新,以及子代理模型选择行为的重要澄清。CHANGELOG 显示版本 2.1.325 修复了安全问题和多个 bug。 **关键主题:** - 文档格式清理(大量 `theme={null}` 添加) - MCP 配置和 `--strict-mcp-config` 的行为澄清 - 子代理模型选择逻辑的重大更新 - 新增 VS Code 建议提示功能文档 - GitHub Actions 依赖项警报权限 **影响级别:** 高 - 虽然大部分是文档变更,但 CHANGELOG 显示有安全修复、子代理行为变更和重要 bug 修复。开发者需要关注新版本。 **行动建议:** 1. 更新至 Claude Code v2.1.325 以获取安全修复和 bug 修复 2. 如果使用子代理,查看更新的模型选择逻辑 3. GitHub Actions 工作流可能需要 "Dependabot alerts | Read" 权限 4. 检查 VS Code 中的建议提示设置 5. 审查 MCP 配置文档以了解 `--strict-mcp-config` 的行为

📚 Anthropic API

📚 Claude Code GitHub

15:14 EST

🤖 AI Batch Analysis

# 文档变更分析摘要 ### 1. Overall Summary (整体摘要) 本次更新主要集中在 **Code Mode 与 Hooks 的深度集成**、**企业级权限管理的细化**以及**超时逻辑的澄清**。文档新增了对 Code Mode 输出拦截、MDM 策略中 Cowork 会话归属、Skills 中 Git 命令的安全限制以及程序化工具调用超时机制的说明。 ### 2. Key Themes (关键主题) * **Code Mode 与 Hooks 的交互增强** * Hooks 现在支持拦截和阻止 Code Mode 的代码输出 (`command`, `http`, `mcp_tool` hooks)。 * 细化了 `onFailure` 行为说明,特别是在 Code Mode 下 `PreToolUse` 超时或失败时的处理逻辑。 * **MDM 策略与 Provider 限制的明确** * 明确了 Desktop 的 Cowork 会话在 `allowedProviders` 中被归类为 `"anthropic"`。 * 如果企业的 MDM 策略未包含 `"anthropic"`,将导致本地 Cowork 会话被拒绝访问。 * **安全性与权限控制的收紧** * **Skills/Slash Commands**: 在未经验证的 Git 文件夹(如 bare repos 或 worktrees)中,Claude Code 将忽略 `allowed-tools` 设置,拒绝执行包含 `git` 的 Bash 命令,以防止潜在的安全风险。 * **超时与生命周期逻辑的修正** * **Programmatic Tool Calling**: 澄清了 `expires_at` 时间戳并非超时截止点。实际的内部代码超时(约 4 分钟)远早于 `expires_at`,开发者不应依赖该时间戳来规划任务时长。 * **配置与安装优化** * **OTEL**: `OTEL_EXPORTER_OTLP_PROTOCOL` 现在对 HTTP/HTTPS 端点默认采用 `http/protobuf` 协议(需 v2.1.323+)。 * **NPM**: 安装命令更新为明确使用 `@latest` 标签。 ### 3. Impact Level (影响等级) **Medium (中)** **Reasoning**: 虽然大部分更改是文档澄清和默认行为优化,不会直接破坏现有代码 API,但以下内容可能导致现有工作流意外失败: 1. 企业 MDM 策略若未配置 `"anthropic"`,将直接阻断用户的 Cowork 会话。 2. 依赖 `expires_at` 控制程序化工具调用时长的开发者可能会遇到超时错误。 3. 在特定 Git 环境下使用 Skills 的用户可能会发现 Git 命令突然被拦截。 ### 4. Action Items for Developers (开发者行动建议) * **更新 MDM 策略**: 如果组织使用 `allowedProviders` 限制访问,请务必将 `"anthropic"` 加入列表,否则用户的 Cowork 会话将无法运行。 * **审查 Skills 中的 Git 命令**: 检查在 bare repository 或未验证的 Git 文件夹中运行的 Skills,确保不会因 `allowed-tools` 被忽略而导致命令中断。 * **调整超时处理逻辑**: 在实现程序化工具调用时,**不要**将 `expires_at` 作为最终截止时间,应在 4 分钟内完成工具执行以避免超时。 * **检查 Hooks 配置**: 如果使用 Hooks 控制 Code Mode,请更新配置以处理新的输出拦截和失败阻塞场景。 * **验证 OTLP 配置**: 验证 OpenTelemetry 导出配置,确保新的默认协议 (`http/protobuf`) 符合预期。
💭 Model Reasoning
1. **Understand the Goal**: The user wants a concise, insightful analysis of documentation changes across 10 specific pages in markdown format, using Chinese. The persona is a world-class programmer/analyst. 2. **Analyze the Input (Page by Page)**: * **`hooks.md`**: * *Change*: Updated `onFailure` description. Clarified "continue" vs "block". Added notes linking `PreToolUse` timeouts and failures to specific behaviors in "Code Mode" (links added). * *Change*: Added a note about Code Mode output being withheld by a hook. Added a note about `UserPromptSubmit` triggering on Code Mode output. * *Change*: Updated `reason` field description in JSON output (specifically for Code Mode output being blocked). * *Impact*: Significant integration points between Hooks and Code Mode. Clarifies behavior, likely breaking changes or fixes for edge cases involving these modes. * **`hooks-guide.md`**: * *Change*: Updated HTTP hook failure logic to align with "block the action" concepts, removing ambiguity about when `onFailure` is needed. * *Impact*: Clarification of behavior consistency. * **`llm-gateway.md`**: * *Change*: Added a Note about `allowedProviders`. Specifically, Desktop Cowork sessions count as `"anthropic"` provider. If `"anthropic"` isn't in the allowed list in MDM policies, the session gets refused. * *Impact*: Crucial for IT/Admins managing deployments. Policy misconfiguration risk. * **`monitoring-usage.md`**: * *Change*: `OTEL_EXPORTER_OTLP_PROTOCOL` now defaults to `http/protobuf` for http/https endpoints (v2.1.323+). Mentioned debugging via `/status` for values with spaces. * *Impact*: Easier configuration for OpenTelemetry, reduces setup friction. * **`setup.md`**: * *Change*: Weird artifact: `theme={null}` repeated 10 times in code blocks. Likely a build glitch in the source or a specific formatting update. Ignore functional change, just formatting. * *Change*: `npm install` command updated to `npm install -g @anthropic-ai/claude-code@latest`. Clarified `EBADENGINE` warning behavior. * *Impact*: Ensures latest version via npm. * **`skills.md` & `slash-commands.md`**: * *Change*: Clarified permission logic for "injected commands" in skills. Added specific limits: Deny/Ask rules override, Managed-only rules ignored context, and *new* behavior: ignoring `allowed-tools` for unverified Git folders (commands containing `git`). * *Impact*: Security tightening. Skills/Slash commands might fail unexpectedly in bare repos or unverified git folders if they try to run git commands. * **`third-party-integrations.md`**: * *Change*: Same note as `llm-gateway.md` regarding `allowedProviders` and Cowork sessions counting as `"anthropic"`. * *Impact*: Admin/Policy configuration. * **`build-with-claude/claude-in-microsoft-foundry.md`**: * *Change*: Updated text regarding Azure hosting vs Anthropic hosting. Removed specific model names (like "Claude Fable 5.2" - likely placeholder or old names) and linked to dynamic lists. Clarified data egress (Azure hosting keeps data in Azure). * *Impact*: Content update reflecting actual product availability and data residency. * **`agents-and-tools/tool-use/programmatic-tool-calling.md`**: * *Change*: Clarified timeout logic. `expires_at` is *not* the deadline; the internal code timeout (~4 mins) happens *before* `expires_at`. * *Impact*: Bug fix/Prevention. Developers relying on `expires_at` to gauge how long they have to respond will time out if they wait that long. 3. **Synthesize Key Themes**: * **Code Mode Integration**: Several `hooks.md` changes relate to "Code Mode". Hooks can now withhold output or block based on it. * **Policy/Provider Management**: `allowedProviders` logic now includes Cowork sessions as `"anthropic"`. * **Permission & Git Security**: Skills/Slash commands now have stricter rules for `git` commands in unverified folders. * **Timeout Clarification**: Programmatic tool calling timeout vs expiration timestamp clarified. * **Telemetry Defaults**: OTLP protocol now has a sensible default. 4. **Determine Impact Level**: * *High/Breaking?* Not exactly breaking APIs, but potentially breaking existing workflows. * Skills relying on `git` commands in specific folder structures might stop working. * MDM policies might block Cowork sessions if not updated. * Tool calling logic relying on `expires_at` for timing will fail. * *Medium*: Most changes are clarifications or "safety" improvements that might catch people off guard but don't destroy the core API surface. * *Verdict*: **Medium to High** depending on usage depth. The `allowedProviders` and Skill/Git changes are "gotchas" that could break production setups without obvious error messages. I'll lean towards **Medium-High** but present it as **Medium** with specific high-impact caveats. 5. **Draft Action Items**: * Update MDM policies (`allowedProviders`) to include `"anthropic"` if using Cowork. * Review Skills/Slash commands using injected `git` commands in unverified repos. * Adjust programmatic tool calling timeouts (don't wait for `expires_at`). * Review Hook configurations for new Code Mode interactions. 6. **Translate and Format (Chinese)**: * *Summary*: 聚焦于 Code Mode 集成、权限管理细化及超时逻辑澄清。 * *Themes*: * Code Mode 与 Hooks 的深度集成(输出拦截、失败处理)。 * MDM 策略与 Provider 限制(Cowork 会话归属)。 * 安全性增强(Skills 中的 Git 命令权限收紧)。 * 超时机制澄清(程序化工具调用)。 * *Impact*: Medium. 主要是行为澄清和安全性补丁,但可能会破坏现有的配置或边缘用例(如 MDM 策略和 Skills 中的 Git 命令)。 * *Action Items*: * 检查 `allowedProviders` 配置。 * 审查 Skills/Slash Commands 中的 Git 命令。 * 调整程序化工具调用的超时处理逻辑。 * 注意 OTLP 协议的新默认值。 7. **Refine the Output**: * Ensure the "theme={null}" weirdness in `setup.md` is ignored or treated as noise (it is noise). * Emphasize the `allowedProviders` change because it's critical for enterprise users. * Emphasize the `expires_at` change because it prevents hard-to-debug timeouts. 8. **Final Polish (Markdown)**: * Structure: Summary -> Themes -> Impact -> Actions. **(Self-Correction during drafting)**: *Initial thought*: The `setup.md` change looks weird with the repeated `theme={null}`. *Correction*: I shouldn't flag this as a major feature. It's likely a docs generator artifact. I will focus on the `@latest` npm change which is minor. *Focus*: The `skills.md` change about "Unverified Git folders" is significant for users working in worktrees or bare repos. I must highlight that. 9. **Final Output Generation**. (Proceed to generate Chinese response based on these points).
07:47 EST

🤖 AI Batch Analysis

## 文档变更分析 ### 总体摘要 本次文档变更主要涉及**移除 `subagentStatusLine` 功能**及其相关的配置机制(如插件清单中的 `settings` 字段),同时包含少量的措辞优化。这表明该功能已被废弃或从产品中移除。 ### 关键主题 * **功能废弃**:彻底移除了 `subagentStatusLine` 设置及其相关文档,该功能原本允许自定义子代理状态行的显示。 * **插件清单清理**:从 `plugin.json` 参考文档中删除了 `settings` 字段,该字段曾用于设置 `agent` 和 `subagentStatusLine` 的默认值。 * **受控设置更新**:`allowManagedHooksOnly` 的说明中不再提及对 `subagentStatusLine` 的限制。 * **文件结构变更**:插件标准目录结构示例中移除了 `settings.json` 文件。 ### 影响等级:**High** (Breaking) **理由**:这是一次破坏性变更。开发者如果在插件清单中使用了 `settings` 字段,或者用户配置了 `subagentStatusLine`,这些配置将不再生效。相关代码逻辑需要移除。 ### 开发者行动项 * **移除配置**:从用户配置文件中删除 `subagentStatusLine` 相关设置。 * **更新插件清单**:从插件的 `plugin.json` 中移除 `settings` 字段。 * **删除默认文件**:移除插件根目录下的 `settings.json` 文件(如果用于存放默认配置)。 * **调整受控设置**:如果你的管理策略依赖于 `allowManagedHooksOnly` 对 `subagentStatusLine` 的限制,请更新相关文档或策略。 * **代码重构**:停止依赖 `subagentStatusLine` 来渲染或控制子代理面板的行显示。
💭 Model Reasoning
用户希望我分析一批文档变更。共有4个页面: 1. hooks.md - 移除了在 `allowManagedHooksOnly` 中对 `subagentStatusLine` 的提及 2. plugins.md - 微小的文本更改("For every component type" -> "For component types") 3. plugins-reference.md - 移除了 `settings` 字段(包括 `agent` 和 `subagentStatusLine`)以及对 settings.json 默认文件的引用 4. statusline.md - 删除了整个“Subagent status lines”部分 **变更摘要:** **hooks.md:** - 移除了对 `allowManagedHooksOnly` 也限制 `subagentStatusLine` 的提及。 - 现在只说它限制了 `statusLine` 和 `fileSuggestion`。 **plugins.md:** - 将 "For every component type" 更改为 "For component types"。 - 这只是轻微的语法/编辑调整。 **plugins-reference.md:** - 从表格中删除了 `settings` 字段。 - 删除了描述 `settings` 的部分(其提到只有 `agent` 和 `subagentStatusLine` 生效)。 - 从标准布局图中删除了 `settings.json`。 - 从示例目录结构中删除了 `settings.json` 文件。 - 将 "A plugin that uses every default location" 更改为 "A plugin that uses default locations"。 **statusline.md:** - 删除了整个“Subagent status lines”部分及其所有子部分(Task fields 等)。 **综合分析:** 主要变化是移除了 `subagentStatusLine` 功能: 1. 它已从 hooks 文档中删除(不再由 allowManagedHooksOnly 限制)。 2. `settings` 字段(插件可以用来设置默认值的字段)已从清单参考中删除,该字段特别提到了 `subagentStatusLine`(以及 `agent`)。 3. 整个 `subagentStatusLine` 功能文档已从 statusline.md 中删除。 这看起来像是 **subagentStatusLine** 功能的移除/弃用。`settings` 字段也被移除了,它允许插件设置默认配置。文档似乎正在清理对一个已移除功能的引用。 **影响等级:** 这看起来是 **High** 影响,因为: 1. 一个功能(`subagentStatusLine`)正在被移除。 2. 插件清单中的一种字段类型(`settings`)正在被移除。 3. 如果开发者使用这些,他们将面临破坏性变更。 **行动计划:** 1. 停止使用 `subagentStatusLine` 设置。 2. 从插件清单中移除 `settings` 字段。 3. 移除任何 `settings.json` 默认文件。 4. 更新依赖这些功能进行子代理状态显示的代码。

📚 Claude Code