← All reports

Changes on 2026-09-24

41 total changes in 2 runs

21:07 EST

🤖 AI Batch Analysis

# 文档变更分析 ## 整体摘要 本次文档更新进行了大规模的结构重组,特别是彻底重构了插件相关文档,将其拆分为更细分的指南页。同时,针对 Amazon Bedrock Mantle 端点引入了关键的 IAM 权限变更,这属于破坏性更新,需要开发者立即采取行动。 ## 关键主题 * **插件文档架构重组**:插件文档已完全重写。`plugins.md` 现在作为概览页,`plugins-reference.md` 专门聚焦于 Manifest(清单文件)的参考,而安装、创建和市场相关的指南被拆分到独立的子页面(如 `/install`, `/create`, `/overview`)。全站数百个相关链接已更新至新路径。 * **Bedrock Mantle 权限变更(关键)**:Mantle 端点不再继承标准的 `bedrock:` IAM 权限。现在必须显式授予带有 `bedrock-mantle:` 前缀的特定 IAM 动作(如 `bedrock-mantle:CreateInference` 和 `bedrock-mantle:CountTokens`)。文档还细化了 403 错误的排查逻辑,区分 IAM 权限缺失和模型访问权限被拒的情况。 * **遥测配置的安全限制**:为了防止仓库劫持遥测数据,Claude Code 现在会忽略仓库配置文件(`.claude/settings.json` 和 `.settings.local.json`)中的 OpenTelemetry (OTEL) 导出器环境变量。这些配置必须在用户级或托管设置中生效。 * **清理版本依赖**:移除了大量诸如 "Requires Claude Code v2.1.xxx or later" 的具体版本号说明,暗示这些功能已通过充分测试或成为标准功能。 ## 影响等级:**高** **理由**:虽然大部分是文档结构调整,但对使用 Amazon Bedrock Mantle 的开发者而言,IAM 权限的变更是破坏性的。如果未更新策略,现有配置将直接报错 403 且无法正常推理。 ## 开发者行动项 * **更新 AWS IAM 策略**:如果你使用 Amazon Bedrock Mantle,请立即为相关的 IAM 身份添加 `bedrock-mantle:CreateInference`(用于推理)和 `bedrock-mantle:CountTokens`(用于计数的权限)。 * **排查 Mantle 403 错误**:遇到 403 时,首先检查错误是否包含 `bedrock-mantle:` 动作名称。如果有,补齐权限;如果没有,则是模型访问权限问题,需联系 AWS 账户团队。 * **检查遥测配置位置**:如果你依赖环境变量控制遥测导出,请确保 `OTEL_*` 变量配置在 `~/.claude/settings.json` 或托管设置中,而不是项目仓库的 `.claude/settings.json` 中。 * **更新书签/链接**:如果你之前收藏了插件相关的文档链接(特别是 `/plugins` 或 `/plugins-reference`),请更新为新的子页面路径(如 `/plugins/overview` 或 `/plugins/manifest-reference`)。
💭 Model Reasoning
1. **Understand the Goal**: The user wants a concise, insightful analysis of documentation changes for Claude Code. The output should be in Markdown, in Chinese, and focus on what matters to developers. 2. **Analyze the Input**: * **Total Changed Pages**: 27. * **Diff Content**: * `amazon-bedrock.md`: Updates regarding the Mantle endpoint. Key changes: Mantle now has its own IAM actions (`bedrock-mantle:` prefix). Previous `bedrock:` actions don't cover it. Updated error handling for 403s to distinguish between missing IAM actions vs. model access denial. * `checkpointing.md`: Removed a specific version requirement ("Requires Claude Code v2.1.191 or later"). * `cli-reference.md`: Updated MCP login/logout version requirements. Changed plugin reference paths (`/docs/en/plugins` to `/docs/en/plugins/overview`, etc.). Removed `--dry-run` option from `claude import` text (wait, actually looking closely at the diff, `--dry-run` is still there in the example, just removed version requirements). * `common-workflows.md`, `costs.md`, `desktop.md`: Updated links related to plugins (changing paths from root `/docs/en/plugins` to specific sub-pages like `/docs/en/plugins/code-intelligence`, `/docs/en/plugins/overview`). * `discover-plugins.md`: Massive rewrite (-302 / +199). The content changed from "Discover and install prebuilt plugins" to "Install and manage plugins". It restructures the guide, likely improving clarity on installation scopes (user/project/local) and steps. * `github-actions.md`: Removed version requirement "Before v2.1.187". Updated plugin link. * `headless.md`: Updated link for plugins. Changed phrasing "plugins" to "installed plugins". * `hooks.md`, `hooks-guide.md`: Updated internal links for plugins. Removed specific cloud session behavior details regarding plugins synced from claude.ai (moved or simplified). * `interactive-mode.md`: Updated description for `Ctrl+S` (Stash/Restore prompt) to include "input mode". * `mcp.md`: Updated links for plugins. * `monitoring-usage.md`: Added detail about ignoring OTEL variables in repo settings. Added `OTEL_LOG_TOOL_DETAILS=1` condition for telemetry attributes (agent.name, skill.name, etc.). * `network-config.md`: Updated link for plugin marketplaces. * `output-styles.md`: Updated plugin link. * `plugin-marketplaces.md`: Huge rewrite (-761 / +110). Content changed from "Create and distribute a plugin marketplace" to "Create a marketplace". It simplifies the walkthrough, moving away from creating a local marketplace in the text to assuming the user has one. * `plugins.md`: Rewrite (-264 / +67). Changed from "Create plugins" to "Plugins overview". This is a major structural change, turning the main plugin page into a landing/index page and moving technical details to sub-pages. * `plugins-reference.md`: Rewrite (-846 / +336). Changed from a general reference to specifically "Plugin manifest reference". Focusing on `plugin.json`. * `sandboxing.md`: Updated permission mode exceptions text. Removed version requirement for `sandbox.credentials`. * `settings.md`: Added note about telemetry variables being ignored in repo settings (`env` block). * `skills.md`, `slash-commands.md`: Updated plugin links. * `statusline.md`: Updated plugin link. * `sub-agents.md`: Updated plugin links. Removed version requirement regarding nested agents. 3. **Synthesize Key Themes**: * **Documentation Restructuring (The Big One)**: The plugin documentation architecture has been completely overhauled. Old pages like `plugins.md` and `plugins-reference.md` have been split/reorganized into specific guides (Overview, Create, Install, Manifest, etc.). Links throughout the docs have been updated to reflect this new structure (`/docs/en/plugins` -> `/docs/en/plugins/overview`). * **Bedrock Mantle IAM Specifics**: Critical operational change for AWS Bedrock users. Mantle now requires distinct IAM permissions (`bedrock-mantle:`), separate from standard Bedrock actions. * **Telemetry & Settings Security/Control**: New restrictions on where telemetry environment variables (OTEL) can be set (ignored in repo settings to prevent repos from hijacking telemetry). New env var `OTEL_LOG_TOOL_DETAILS` for privacy in logs. * **Version Requirement Cleanup**: Many "Requires version X.Y.Z" notes have been removed, suggesting these features are now stable or the requirement is outdated/widely met. 4. **Determine Impact Level**: * **High**: The Bedrock Mantle IAM change is a breaking change for existing configurations that will fail silently (403 errors) if not updated. The documentation restructuring is high impact for finding information, but low impact for code functionality. * *Decision*: **High** (due to the Mantle IAM break). 5. **Formulate Action Items**: * Update AWS IAM policies for Bedrock Mantle users. * Update links/bookmarks if you relied on the old plugin documentation structure. * Review telemetry settings if managing repos for organizations. 6. **Draft the Response (in Chinese)**: * *Overall Summary*: 文档进行了大规模重构,特别是插件相关文档被拆分为更细分的章节。同时,针对 Amazon Bedrock Mantle 端点进行了关键的 IAM 权限更新,这是破坏性变更。 * *Key Themes*: * **文档结构重组**: 插件文档大幅重写。`plugins.md` 现在是概览页,`plugins-reference.md` 专注于 Manifest,安装和创建指南被拆分到独立页面。所有相关链接已更新。 * **Bedrock Mantle 权限变更**: Mantle 端点不再继承 `bedrock:` 权限,现在必须显式授予 `bedrock-mantle:` 前缀的 IAM 动作(如 `bedrock-mantle:CreateInference`)。 * **遥测配置安全**: 仓库配置文件(`.claude/settings.json`)中的 OpenTelemetry (OTEL) 环境变量会被忽略,防止仓库劫持遥测数据。 * **版本说明清理**: 移除了大量具体的版本号要求,表明相关功能已稳定。 * *Impact*: **High**。对于使用 Amazon Bedrock Mantle 的开发者,必须立即更新 IAM 策略,否则将遇到 403 错误。文档结构的改变虽然不直接影响代码功能,但需要用户适应新的导航路径。 * *Action Items*: * 如果使用 Amazon Bedrock Mantle,请检查并更新 IAM 策略,添加 `bedrock-mantle:CreateInference` 和 `bedrock-mantle:CountTokens` 权限。 * 如果遇到 Mantle 403 错误,请根据错误信息区分是权限问题(`bedrock-mantle:` 动作)还是模型访问权限问题。 * 如果管理企业级 Claude Code 配置,请注意遥测变量现在必须在用户或托管设置中配置,仓库级别无效。 7. **Refine**: Ensure tone is professional and concise. (Self-correction: Make sure to emphasize the IAM change as the most critical technical takeaway). 8. **Final Polish**: * Summary: "文档结构重组与 Bedrock Mantle 权限变更" * Themes: 1. 插件文档重构, 2. Bedrock Mantle IAM 更新, 3. 遥测配置限制. * Impact: High. * Actions: Update IAM, Check 403 errors, Review telemetry config. (Proceed to generate output).
15:44 EST

🤖 AI Batch Analysis

# 文档变更批量分析 ## 1. 总体摘要 本次更新主要引入了 **Prompt Cache 诊断 API**(从 beta 正式毕业),同时大幅扩展了各 SDK 语言的具体语法文档,并标记了若干参数的弃用(`output_format`、`anthropic-beta` on models/list)。Claude Code 也发布了 v2.1.282 大量修复版本。 ## 2. 关键主题 - **Cache Diagnostics 正式发布**:`/v1/messages` 新增请求参数 `diagnostics.previous_message_id` 和响应字段 `diagnostics.cache_miss_reason`,可精确报告 prompt cache 未命中的原因(model_changed / system_changed / tools_changed / messages_changed / previous_message_not_found / unavailable)及损失的 token 数 - **SDK 多语言语法补充**:`api/errors.md`、`code-execution-tool.md`、`mcp-connector.md`、`claude-on-vertex-ai.md` 等页面全面补全了 Python/TypeScript/C#/Go/Java/PHP/Ruby 各 SDK 的类名、方法名和配置写法 - **参数弃用与迁移**:`output_format` 弃用(不加 beta header 将返回 400);`anthropic-beta` header 在 `models/list` 方法上标记弃用,建议改用 `client.beta.models` - **成本透明度提升**:明确了 prompt suggestions 的后台请求计入 plan 用量限额或 API 费用 - **Computer Use 模型范围扩展**:从 "Claude Opus 5.5" 扩展为 "Claude 5.5 and later models" - **Claude Code v2.1.282**:大量 bug 修复(续会丢 thinking、compaction 失败、权限规则、vim 模式等) ## 3. 影响级别:**Medium** - Cache Diagnostics 是新增能力,向后兼容,不影响现有调用 - `output_format` 弃用是 **破坏性预警**——不加 beta header 即 400,需要开发者主动迁移 - `anthropic-beta` 在 models/list 上弃用影响较小 - 其余为文档完善和 bug 修复,无破坏性 ## 4. 开发者行动项 - **迁移 `output_format` → `output_config.format`**:移除 beta header,改用新参数结构,否则未来将收到 400 错误 - **接入 Cache Diagnostics**:在请求中传入 `diagnostics.previous_message_id`(首轮传 `null`),从响应的 `diagnostics.cache_miss_reason` 定位 cache 未命中原因,优化缓存命中率 - **Batch API 同步更新**:如使用 `/v1/messages/batches`,同样支持了 `diagnostics` 参数 - **SDK 重试配置更新**:使用各语言对应的 `max_retries` / `maxRetries` / `MaxRetries` / `option.WithMaxRetries` 替代旧的通用描述 - **Computer Use 迁移规划**:若计划使用 Claude 5.5+,必须从 `computer_20251124` 迁移到 `computer_toolset_20260801`,否则将报错
💭 Model Reasoning
Let me analyze these documentation changes across 14 pages to identify the key themes and impact. 1. **costs.md** - Added documentation about prompt suggestions sending background requests and their cost implications 2. **interactive-mode.md** - Updated prompt suggestions cost description to clarify it counts toward usage limits/API costs 3. **plugin-marketplaces.md** - Added documentation about where allowlist/blocklist are enforced depending on where they're set (admin console vs managed settings file) 4. **api/messages.md** - Major addition: new `diagnostics` parameter and response field for prompt-cache miss reporting (CacheMissReason with types: model_changed, system_changed, tools_changed, messages_changed, previous_message_not_found, unavailable) 5. **api/messages/batches/create.md** - Same diagnostics parameter added for batch API 6. **api/models/list.md** - Header reordering, added `anthropic-workspace-id` description, deprecated `anthropic-beta` header for this method 7. **api/errors.md** - Expanded SDK-specific documentation for retry config, error types, and raw response accessors across all SDK languages 8. **build-with-claude/prompt-caching.md** - Removed "(beta)" from cache diagnostics, minor wording change 9. **build-with-claude/structured-outputs.md** - Updated migration info: `output_format` is now deprecated and will be removed; without beta header, API returns 400 error 10. **build-with-claude/claude-on-vertex-ai.md** - Added PHP SDK `location` parameter alias for `region` 11. **agents-and-tools/tool-use/computer-use-tool.md** - Changed "Claude Opus 5.5" to "Claude 5.5 and later models" for computer use toolset requirement 12. **agents-and-tools/tool-use/code-execution-tool.md** - Added SDK-specific file download method names 13. **agents-and-tools/mcp-connector.md** - Updated error type names across SDKs 14. **CHANGELOG.md.md** - Massive changelog for v2.1.282 with many bug fixes Key themes: - **Cache diagnostics API** - New request/response parameter for diagnosing prompt cache misses (graduated from beta) - **SDK language-specific docs** - Extensive additions of per-language SDK syntax across all official SDKs - **Deprecations** - `output_format` deprecated (needs beta header or 400), `anthropic-beta` header deprecated on models/list - **Cost transparency** - Clarified that prompt suggestions count toward usage limits - **Computer use model expansion** - "Claude 5.5 and later" instead of just "Claude Opus 5.5" - **Claude Code v2.1.282** - Major bug fix release Impact level: Medium - The cache diagnostics API is a significant new capability but backward compatible. The deprecations are important but have transition periods.

📚 Claude Code

📚 Claude Code GitHub