← All reports

Changes on 2026-10-20

114 total changes in 4 runs

21:11 EST

🤖 AI Batch Analysis

1. **Overall Summary** 本次文档更新主要涉及 MCP Tool Search 在 LLM 网关环境下的默认行为变更(默认开启并支持自动重试)、Java SDK 版本全面升级至 2.75.0,以及 API 头部 `anthropic-user-profile-id` 正式脱离 Beta 状态。 2. **Key Themes** * **MCP Tool Search 网关行为变更**:当通过 `ANTHROPIC_BASE_URL` 使用网关时,Tool Search 不再默认关闭,而是默认开启(发送 `defer_loading` 和 `tool_reference`)。v2.1.305+ 版本增加了对不兼容请求的自动重试机制(回退到非 Tool Search 模式)。 * **SDK 版本更新**:Java SDK (`anthropic-java`) 及其扩展包(Bedrock, Vertex, Foundry, MCP)版本从 2.74.0 升级至 2.75.0。 * **API 稳定性**:`anthropic-user-profile-id` 头部不再被标记为需要 `user-profiles` Beta 标志,意味着该功能已正式稳定。 * **开发工具增强与修复**:VS Code 扩展修复了 `claudeProcessWrapper` 导致的会话丢失问题,并新增了查看后台子代理工具调用的功能;macOS 沙箱增加了对通过符号链接访问被拒绝路径的拦截说明。 3. **Impact Level** **Medium** * **理由**:MCP Tool Search 的行为变更会影响所有使用自定义 LLM 网关的开发者。如果你的网关不支持 `tool_reference` 或 `defer_loading`,请求可能会在后台经历自动重试,或者需要显式配置禁用 Tool Search。Java SDK 的升级属于常规维护更新。 4. **Action Items for Developers** * **检查 LLM 网关兼容性**:如果你使用了自定义 `ANTHROPIC_BASE_URL` 网关,请确认其是否支持 `tool_reference` 块和 `defer_loading` 字段。如果不支持,请设置 `ENABLE_TOOL_SEARCH=false` 以避免不必要的请求重试。 * **升级 Java SDK**:将项目中的 `com.anthropic:anthropic-java` 及相关平台依赖更新至 **2.75.0**。 * **升级 VS Code 扩展**:更新至 **v2.1.304 或更高版本**,以修复在使用 `claudeProcessWrapper` 时会话列表缺失的问题。 * **审查 macOS 沙箱配置**:如果你在 macOS 上使用了符号链接(如将 `~/.claude` 链接到 dotfiles 仓库),请注意沙箱现在会同时拒绝该链接及其指向的真实路径的访问。
💭 Model Reasoning
1. **Analyze the Request:** * **Role:** World-class programmer analyzing documentation changes. * **Input:** 12 pages of diffs (Markdown). * **Output Format:** Markdown (Concise, insightful, Chinese). * **Structure:** Overall Summary, Key Themes, Impact Level, Action Items. 2. **Analyze the Input Data (Page by Page):** * **Page: `mcp.md` (+11 / -4):** * *Changes:* Updates regarding Tool Search behavior. * *Specifics:* * Removed "custom `ANTHROPIC_BASE_URL`" from the list of configurations that automatically disable tool search. * Added a new section "Tool search through an LLM gateway". * Tool search is now **enabled by default** even when using a gateway (`ANTHROPIC_BASE_URL` points to a gateway), meaning it sends `defer_loading` and `tool_reference` blocks. * Version 2.1.304+: Tool search was off behind a gateway unless explicitly enabled. Now (v2.1.305+), it's on by default. * Version 2.1.305+: Introduces automatic retry without tool search if a gateway rejects a request (400/422) for unknown reasons. * Updated the "Configure tool search" table row "(unset)" to reflect that non-first-party hosts (gateways) now default to deferred loading, not upfront loading. * *Theme:* MCP Tool Search default behavior change regarding LLM Gateways. * **Page: `sandboxing.md` (+2 / -0):** * *Changes:* Added a note about symlink handling on macOS. * *Specifics:* If a denied path passes through a symlink (e.g., `~/.claude` linked to a dotfiles repo), the sandbox denies the *real location* too. * *Theme:* Sandbox security/symlink behavior. * **Page: `vs-code.md` (+3 / -0):** * *Changes:* Bug fix/Feature update regarding missing conversations and subagent visibility. * *Specifics:* * Extension v2.1.304+ fixes missing conversations when using `claudeProcessWrapper`. * New feature: Use `/tasks` to see tool calls for background subagents that previously showed only as a status line. * *Theme:* VS Code Extension improvements. * **Page: `get-started.md` (+2 / -2):** * *Changes:* Version update for Java SDK. * *Specifics:* Updated from `2.74.0` to `2.75.0`. * *Theme:* Dependency update. * **Page: `api/messages.md` (+2 / -2):** * *Changes:* Removed requirement note for `anthropic-user-profile-id` header. * *Specifics:* Previously "Requires the `user-profiles` beta header", now just "Use when acting on behalf of a party other than your organization.". * *Theme:* API Header maturity (Beta -> Stable). * **Page: `api/messages/count_tokens.md` (+1 / -1):** * *Changes:* Same as `api/messages.md`. `anthropic-user-profile-id` header requirement removed. * *Theme:* API Header maturity. * **Page: `api/messages/batches/create.md` (+1 / -1):** * *Changes:* Same as above. Beta header requirement removed for `anthropic-user-profile-id`. * *Theme:* API Header maturity. * **Page: `api/client-sdks.md` (+12 / -0):** * *Changes:* Added a "Latest versions" table. * *Specifics:* Lists current versions for CLI, Python, TS, C#, Go, Java (2.75.0), PHP, Ruby. Mentions a JSON endpoint for version info. * *Theme:* SDK versioning/reference. * **Page: `build-with-claude/claude-on-amazon-bedrock.md` (+3 / -3):** * *Changes:* Java SDK version update. * *Specifics:* 2.74.0 -> 2.75.0. * *Theme:* Dependency update. * **Page: `build-with-claude/claude-on-vertex-ai.md` (+3 / -3):** * *Changes:* Java SDK version update. * *Specifics:* 2.74.0 -> 2.75.0. * *Theme:* Dependency update. * **Page: `build-with-claude/claude-in-microsoft-foundry.md` (+3 / -3):** * *Changes:* Java SDK version update. * *Specifics:* 2.74.0 -> 2.75.0. * *Theme:* Dependency update. * **Page: `agents-and-tools/mcp-connector.md` (+3 / -3):** * *Changes:* Java SDK version update. * *Specifics:* 2.74.0 -> 2.75.0. * *Theme:* Dependency update. 3. **Synthesize and Summarize:** * **Overall Summary:** Documentation updates focus on a behavior change for MCP Tool Search when using LLM Gateways (defaulting to "on"), the stabilization of `anthropic-user-profile-id` headers (no longer marked beta), Java SDK version 2.75.0 promotion, and minor VS Code extension fixes/symlink sandbox improvements. * **Key Themes:** * **MCP Tool Search Gateway Behavior:** Significant change. Tool search is now enabled by default behind gateways. Claude Code will automatically retry without tool search if the gateway rejects the request (v2.1.305+). * **SDK Updates:** Java SDK bumped to `2.75.0` across multiple integration guides (Bedrock, Vertex, Foundry, MCP). * **API Stability:** `anthropic-user-profile-id` header is no longer tied to a beta flag requirement in the docs. * **Tooling Fixes:** VS Code extension fixes session visibility and adds subagent tool call inspection. macOS sandbox clarifies symlink denial behavior. * **Impact Level:** **Medium**. * *Reasoning:* The MCP Tool Search change is behavioral. If developers are using custom gateways or proxies that *don't* support `tool_reference` or `defer_loading`, Claude might now send requests that fail (though there is an auto-retry mechanism for 400/422). This changes how interactions happen behind proxies. The other changes are version bumps or documentation clarifications. * **Action Items for Developers:** * **Review MCP Gateway Config:** If using `ANTHROPIC_BASE_URL` with a custom gateway, check if it supports `defer_loading`/`tool_reference`. If not, you might see transient errors or need to explicitly set `ENABLE_TOOL_SEARCH=false`. * **Update Java SDK:** Bump `anthropic-java` to version `2.75.0`. * **Update VS Code Extension:** Update to v2.1.304+ to fix missing conversations with `claudeProcessWrapper`. * **Check Sandbox Symlinks:** On macOS, ensure symlinks to denied directories (like `~/.claude`) are handled correctly if relying on specific denial rules. 4. **Drafting the Response (in Chinese):** * *Summary:* 本次更新主要涉及 MCP Tool Search 在 LLM 网关后的默认行为变更,Java SDK 版本升级至 2.75.0,以及 `anthropic-user-profile-id` API 头部不再标记为 Beta 状态。 * *Themes:* MCP 网关行为变更、SDK 版本更新、API 稳定性、工具修复。 * *Impact:* Medium (行为变更可能导致代理/网关请求失败)。 * *Action Items:* 升级 Java SDK、检查网关兼容性、升级 VS Code 插件。 5. **Refining the Output:** * Make the Tool Search explanation very clear because that's the most "developer-affecting" logic change. The auto-retry mechanism (v2.1.305) softens the blow, but it's still a protocol change. * Group the Java SDK updates mentally (they are repetitive diffs). * Highlight the VS Code subagent feature as a usability improvement. 6. **Final Polish (Markdown formatting):** * Ensure correct header levels. * Keep it concise. *(Self-Correction during drafting)*: Did I miss anything? - The `mcp.md` changes explicitly mention v2.1.304 vs v2.1.305 behavior differences regarding the fallback. This is important context. - The sandbox symlink thing is niche but important for security/macOS developers. - `anthropic-user-profile-id` losing the "requires beta header" note suggests the feature is now stable/standard. 7. **Final Output Generation.** (Proceeding to generate output based on these thoughts).

📚 Claude Code

18:01 EST

🤖 AI Batch Analysis

## 文档变更批量分析 ### 1. 总体概述 本次更新围绕 **v2.1.305 版本**展开,核心亮点是 `/usage` 新增智能推荐与一键修复(`f` 快捷键),同时补充了大量企业级排查指南(SSO 登录、云会话分支、终端兼容性、自动更新失败等),并将 Java SDK 升级至 2.74.0。 ### 2. 关键主题 - **用量推荐与自动修复**:`/usage` 从"行为标记"升级为"可操作推荐",支持 `f` 快捷键一键应用,VS Code 和 `/doctor` 同步支持 - **SSO 与网络配置**:新增 `sso.claude.com` 域名,完善 SSO 登录流和网络白名单 - **排查与故障处理增强**:VTE 旧版终端乱码(`>0q`/`>4m`)、Release verification 失败、Auto-update 失败、云会话分支不在 GitHub、"No browsers are connected" 等 - **子代理回退模型提示**:子代理切换到 fallback 模型时,报告开头显示警告标识 - **安全加固**:MCP WebSocket 服务器凭据脱敏、新增 `managed-agents-secure` 技能审计安全设置 - **无头模式健壮性**:`structured_output` 字段可能缺失需检查 - **Java SDK 版本升级**:2.73.0 → 2.74.0(Bedrock / Vertex / Foundry / MCP Connector) ### 3. 影响等级:**Medium** **理由**:无 Breaking Change。`/usage` 推荐与修复是影响最广的新功能,对 Pro/Max/Team/Enterprise 用户的成本管理有直接帮助。SSO 域名和网络配置更新对企业用户至关重要,遗漏可能导致登录失败。其余多为文档完善和 Bug 修复记录。 ### 4. 开发者行动项 - **试用用量修复**:升级至 v2.1.305+,运行 `/usage` 后按 `f` 一键应用推荐(如切换 effort 级别、裁剪 CLAUDE.md),显著降低用量消耗 - **更新网络白名单**:若组织使用 SSO,务必将 `sso.claude.com` 加入代理/防火墙放行列表;同时确认 `bridge.claudeusercontent.com` 可达 - **升级 Java SDK**:将 `anthropic-java` 及其平台适配包从 2.73.0 升级至 2.74.0 - **处理终端乱码**:若启动/退出时出现 `>0q` 或 `>4m`,升级至 v2.1.301+,或检查 `$VTE_VERSION` 是否 ≥ 5300 - **审计 Managed Agent 安全**:运行 `/doctor managed-agents-secure` 对照官方安全部署指南检查配置偏差(需 v2.1.304+ 及 `ant` CLI)
💭 Model Reasoning
Let me analyze the batch of documentation changes across 22 pages. Key changes: 1. **checkpointing.md** - Added note about rewound messages returning if you exit before next prompt 2. **chrome.md** - Added troubleshooting for "No browsers are connected" error 3. **claude-code-on-the-web.md** - Added "Branch is not on GitHub" error documentation 4. **costs.md** - Major overhaul of `/usage` feature: added recommendations, fix shortcut (`f` key), rate limiting clarification 5. **desktop.md** - Added `sso.claude.com` to network allowlist 6. **headless.md** - Added note about missing `structured_output` field when Claude declines 7. **interactive-mode.md** - Expanded "Bring back a cleared draft" section with Ctrl+C recovery 8. **mcp.md** - Expanded credential redaction to cover WebSocket servers too 9. **monitoring-usage.md** - Added OTEL attribute count limit dropping behavior documentation 10. **network-config.md** - Added `sso.claude.com` for SSO sign-in flow 11. **setup.md** - `theme={null}` repeated (likely build artifact), updated `claude doctor` guidance, auto-update failed troubleshooting 12. **skills.md** - Added Usage check to `/doctor`, added `managed-agents-secure` skill, minor wording fix 13. **slash-commands.md** - Same as skills.md (duplicate content) 14. **sub-agents.md** - Added fallback model switch indicator for subagents 15. **troubleshooting.md** - Added "Release verification failed" and "Auto-update failed" entries, added VTE terminal stray characters fix 16. **vs-code.md** - Updated usage dialog with recommendations/fix button, screen reader hook announcement 17. **get-started.md** - Java SDK bumped 2.73.0→2.74.0, removed `ANTHROPIC_API_KEY` precedence note 18. **build-with-claude/*.md** - Java SDK version bump 2.73.0→2.74.0 across Bedrock, Vertex, Foundry 19. **agents-and-tools/mcp-connector.md** - Java SDK version bump 20. **CHANGELOG.md** - v2.1.305 changelog with many fixes and improvements Key themes: - `/usage` recommendations and fix shortcut (major feature) - SSO/network configuration additions - Troubleshooting improvements (VTE, release verification, auto-update, branch not on GitHub, no browsers connected) - Java SDK 2.74.0 upgrade - v2.1.305 changelog with extensive fixes - Subagent fallback model indicator - Security: MCP credential redaction for WebSocket, managed-agents-secure skill Impact: Medium - The usage recommendations/fix feature is significant for cost management, SSO support matters for enterprise, but no breaking changes. Action items: 1. Try the new `f` shortcut in `/usage` to apply cost-saving recommendations (v2.1.305+) 2. Add `sso.claude.com` to network allowlists if using SSO 3. Update Java SDK to 2.74.0 4. Check if stray `>0q`/`>4m` characters appear in terminal; update Claude Code to v2.1.301+ 5. Run `managed-agents-secure` skill to audit Managed Agent security settings

📚 Claude Code GitHub

14:15 EST

🤖 AI Batch Analysis

### 文档变更分析摘要 #### 1. 总体概述 本次更新是一次大规模的**文档架构重构**,涉及 48 个页面。核心变动是将所有定制的 React/JSX 组件(如步骤条、标签页、警告框等)替换为**原生标准 Markdown 语法**,旨在简化文档维护成本并提升跨平台兼容性。 #### 2. 关键变更主题 * **Markdown 标准化与去组件化**: * 将 `<Steps>` 组件替换为标准的编号列表 (`**1. ...**`)。 * 将 `<Note>`、`<Warning>`、`<Tip>`、`<Info>` 等组件统一替换为 GitHub 风格的 Alert 语法(如 `> [!NOTE]`、`> [!WARNING]`)。 * 移除了 `<Tabs>`、`<CardGroup>`、`<Accordion>` 等复杂的 UI 布局组件,转而使用加粗标题和纯文本。 * **清理冗余代码**: * 移除了大量内联 HTML 标签(如表格中的 `<br />`)和 React 代码(如 `ContactSalesCard` 销售卡片组件)。 * 移除了页面内的锚点 ID(如 `<span id="...">`)和复杂的图片包装器,改用标准 Markdown 图片语法(`![alt](url)`)。 * **格式统一**: * 统一了表格单元格的换行处理方式。 * 清理了 CLI 参考表中的多余空格和标签。 #### 3. 影响等级:低 **理由**:这是一次纯粹的文档源码重构,不涉及产品功能、API 接口或配置参数的变更。开发者阅读文档时的内容实质未变,但源码文件的可读性、可移植性(如在 GitHub 直接预览)显著提升。 #### 4. 开发者行动项 * **无需更改代码**:此次更新仅影响文档结构,不影响 Claude Code 的实际行为或现有配置。 * **遵循新规范**:如果您参与文档贡献,请使用标准 Markdown 语法(如 `> [!NOTE]` 警告框、列表形式),不要继续使用已废弃的 JSX 组件。 * **更新阅读习惯**:文档现在更符合标准 Markdown 规范,更容易在 IDE、GitHub 或其他 Markdown 阅读器中直接查看和搜索。
💭 Model Reasoning
1. **Understand the Goal**: The user wants a concise, insightful analysis of documentation changes for "Claude Code" documentation. There are 48 changed pages total, but only the diffs for 20 specific pages are provided in the prompt. I need to analyze these diffs as a single batch, summarize what changed and why it matters to developers, and reply in Chinese. 2. **Analyze the Input Data (Diffs)**: * `amazon-bedrock.md`: Removed a large React component `ContactSalesCard` (about 70 lines) and replaced it with simple text/markdown links. Changed `<Steps>` components to numbered lists. Changed `<Warning>` to `> [!WARNING]`. * `analytics.md`: Changed `<Note>` to `> [!NOTE]`, `<Warning>` to `> [!WARNING]`, `<Steps>` to numbered lists. * `checkpointing.md`: Changed `<Note>` to `> [!NOTE]`. * `chrome.md`: Changed `<Note>` to `> [!NOTE]`, `<Warning>` to `> [!WARNING]`, `<Steps>` to numbered lists. * `claude-code-on-the-web.md`: Changed `<Note>` to `> [!NOTE]`, removed some React/JSX-like IDs (`<span id="...">`). * `cli-reference.md`: Minor whitespace/formatting changes in table cells (removed extra `<br />` tags). * `common-workflows.md`: Changed `<Steps>` to numbered lists, `<Tip>` to `> [!TIP]`. * `costs.md`: Changed `<Note>` to `> [!NOTE]`, `<Steps>` to numbered lists. * `data-usage.md`: Changed table cell formatting (removed `<br />` tags), replaced `<img>` tags with Markdown image syntax `![alt](url)`. * `desktop.md`: Changed `<CardGroup>`/`<Card>` to bold links. Changed `<Note>`/`<Warning>`/`<Tip>` to GitHub-style alerts (`> [!NOTE]` etc.). Removed specific heading IDs. * `devcontainer.md`: Changed `<Warning>`/`<Tip>`/`<Accordion>` to GitHub-style alerts and headings. Replaced `<img>` with Markdown syntax. Changed `<Steps>` to numbered lists. * `discover-plugins.md`: Changed `<Note>` to `> [!NOTE]`, `<Tabs>`/`<Tab>` to bold headings. * `github-actions.md`: Changed `<Note>`/`<Warning>`/`<Tip>` to GitHub-style alerts. Changed `<Steps>` to numbered lists. * `gitlab-ci-cd.md`: Changed `<Info>`/`<Note>`/`<Warning>` to GitHub-style alerts. Changed `<Tabs>` to bold headings. Changed table cell formatting. * `google-vertex-ai.md`: Removed `ContactSalesCard` component. Changed `<Steps>` to numbered lists. Changed `<Note>` to `> [!NOTE]`. * `headless.md`: Changed `<Note>`/`<Tip>` to GitHub-style alerts. Changed `<Steps>` to numbered lists. * `hooks.md`: Changed `<Tip>` to `> [!TIP]`. Removed complex `<Frame>`/`<div>` wrapping for images, replaced with standard Markdown image syntax. Changed `<Tabs>` to bold headings. * `hooks-guide.md`: Changed `<Tip>` to `> [!TIP]`. Changed `<Steps>` to numbered lists. Changed `<Tabs>`/`<Accordion>` to bold headings. * `iam.md`: Changed `<Steps>` to numbered lists. Changed `<Tabs>` to bold headings. * `interactive-mode.md`: Changed `<Note>` to `> [!NOTE]`. Removed heading IDs. Changed `<Tabs>` to bold headings. * `jetbrains.md`: Changed `<Tip>`/`<Warning>` to GitHub-style alerts. Changed `<Steps>` to numbered lists. Removed span IDs. * `llm-gateway.md`: Changed `<Note>` to `> [!NOTE]`. * `mcp.md`: Changed `<Warning>`/`<Note>` to GitHub-style alerts. Changed `<Steps>` to numbered lists. Removed span IDs. * `memory.md`: Changed `<Tip>`/`<Warning>`/`<Note>` to GitHub-style alerts. Removed heading IDs. Changed table cell formatting. * `microsoft-foundry.md`: Removed `ContactSalesCard` component. Changed `<Note>`/`<Warning>` to `> [!WARNING]`/`> [!NOTE]`. 3. **Synthesize Findings**: * **Main Theme**: This is a massive documentation refactoring/normalization effort. The site is moving away from custom React components (`<Steps>`, `<Note>`, `<Warning>`, `<Tip>`, `<Tabs>`, `<CardGroup>`, `<Accordion>`, custom images) to standard Markdown and GitHub-style alerts (`> [!NOTE]`, etc.). * **Why?**: This likely improves compatibility with static site generators (like Hugo, Jekyll, or just standard Markdown parsers), simplifies the source code (less JavaScript/JSX in Markdown files), and makes the docs easier to port or read in standard Markdown viewers (like GitHub or IDEs). It aligns with "Markdown-native" authoring. * **Specifics**: * Removal of React components (JSX) for layout (ContactSalesCard, Steps, Tabs, Cards). * Standardization of Admonitions (Alerts) to GitHub Flavored Markdown syntax. * Replacement of custom image wrappers with standard Markdown image syntax. * Cleanup of inline HTML (like `<br />` inside table cells) and ID attributes (`<span id="...">`). * Formatting consistency (numbered lists instead of step components). 4. **Determine Impact**: * **Impact Level**: Low (for end users/developers reading the content). High (for the documentation maintainers/build system). The content hasn't fundamentally changed in meaning, just in syntax. The actual technical information remains the same. * **Reasoning**: Developers interacting with the product will see the same text and instructions. The change is purely structural/architectural for the documentation source code. 5. **Formulate Action Items**: * Since this is a docs change, developers don't really need to *do* anything differently. The advice is about awareness. * Items: * No code changes required for users. * If contributing to docs, use the new Markdown syntax (standard lists, GitHub alerts). * Be aware of the formatting changes if relying on deep-linking (though IDs seem mostly kept or irrelevant to the reader). 6. **Draft Response (in Chinese)**: * **Summary**: 此次更新主要涉及文档结构的标准化,将定制的 React 组件和格式替换为标准的 Markdown 语法。共涉及 48 个页面的重构。 * **Themes**: * 标准化 Markdown 语法 (Markdown Standardization): `<Steps>` -> 编号列表, `<Note>`/`<Warning>` -> `> [!NOTE]`/`> [!WARNING]`。 * 移除定制组件 (Removal of Custom Components): 移除了 `ContactSalesCard`, `Tabs`, `CardGroup`, `Accordion` 等 React/JSX 组件。 * 图像与表格优化 (Image/Table Optimization): 统一图片语法,清理表格内的 HTML 标签。 * 简化源码 (Simplification): 移除了内联 ID 和复杂的 HTML 嵌套。 * **Impact**: Low. 内容本身没有实质性的功能变更,只是呈现方式的底层实现改变了。 * **Action Items**: * 无需更改代码。 * 贡献文档时请遵循新的标准 Markdown 格式(如使用 GitHub 风格的 Alert 语法)。 * 了解文档风格已变更,便于日后查阅或维护。 7. **Refine Output**: Ensure the tone is "world-class programmer" and the analysis is "insightful". Focus on the *why*: this moves the docs to a more portable, maintenance-friendly format, decoupling content from presentation logic. * *Self-Correction during drafting*: Make sure to emphasize that this is a *refactor* of the docs, not a feature change of the product. The user asked "what changed and why it matters to developers". It matters because it makes the docs more readable in standard tools, but doesn't change the API or behavior. * *Final Polish*: Use standard markdown formatting as requested. (Translating thoughts to Chinese output) - **Summary**: 文档进行了一次大规模的架构重构,移除了所有定制的 React/JSX 组件,全面转向原生 Markdown 和 GitHub 风格的警报语法。 - **Themes**: - 组件去耦: 用原生 Markdown 列表替换 `<Steps>`,用 `> [!NOTE]` 替换 `<Note>`/`<Warning>`。 - 代码简化: 移除了大量内联 HTML、JSX 和 ID 属性。 - 标准化: 统一图片引用语法和表格格式,移除了 `ContactSalesCard` 等营销组件。 - **Impact**: Low. 这是文档生成系统的底层重构,不影响产品功能或 API。 - **Action Items**: - 无需修改现有代码或配置。 - 若参与文档贡献,需使用新的标准 Markdown 语法(避免使用已废弃的 JSX 组件)。 - 更新本地文档查看习惯,兼容性更好(可直接在 GitHub 预览)。 8. **Final Output Generation**. (Proceeding to generate markdown response).

📚 Anthropic API

03:01 EST

🤖 AI Batch Analysis

## 文档变更批量分析 ### 1. 总体概要 本次变更涉及术语大规模重命名("Routines" → "Cloud scheduled tasks"、"scheduled tasks" → "session-scoped scheduled tasks"),新增 `between_tools` 思考模式 API 能力声明,完善了 `CLAUDE_CODE_AUTO_COMPACT_WINDOW` 环境变量的校验/警告文档,以及澄清了 `dontAsk` 权限模式下 mods 的审批行为。同时将 API 认证头从 `x-api-key` 改为 `Authorization: Bearer`。 ### 2. 关键主题 - **术语重命名**:"Routines" 全面更名为 "Cloud scheduled tasks",原 "scheduled tasks"(`/loop`)更名为 "session-scoped scheduled tasks",三者形成清晰的命名体系:cloud scheduled tasks / desktop scheduled tasks / session-scoped scheduled tasks - **新思考模式 `between_tools`**:Models API 新增 `thinking.types.between_tools` 能力字段,表示关闭前置思考但保留工具调用间的进度更新 - **`CLAUDE_CODE_AUTO_COMPACT_WINDOW` 完善**:新增详细的警告语义表、有效值范围说明,v2.1.304+ 支持 `k`/`M` 后缀;明确该变量设置后 `used_percentage` 不再反映压缩触发时机 - **权限模型澄清**:`dontAsk` 模式下已安装的 mod 仍可批准部分被 hook 阻止的调用,但受限于无托管设置且未使用 Team/Enterprise 登录凭据 - **API 认证头更新**:示例从 `x-api-key` 迁移至 `Authorization: Bearer` 标准格式 - **代码示例风格统一**:多处移除尾逗号、简化 TypeScript 类型断言为普通回调 ### 3. 影响等级:**Medium** 术语重命名不破坏功能(URL 和配置路径不变),但开发者需更新心智模型和内部文档引用。`between_tools` 思考模式和 API 认证头变更是新增/标准化的 API 行为,需关注但不破坏现有调用。`CLAUDE_CODE_AUTO_COMPACT_WINDOW` 的校验行为变更可能影响已有脚本中的无效值(之前静默忽略,现在会警告并采用回退值)。 ### 4. 开发者行动项 - **更新术语认知**:将"routines"替换为"cloud scheduled tasks",区分 cloud / desktop / session-scoped 三类定时任务,避免在团队沟通和自动化脚本注释中混淆 - **检查 `CLAUDE_CODE_AUTO_COMPACT_WINDOW` 脚本**:如果脚本中设置了该变量,确认值在 100,000–1,000,000 范围内;注意裸数字含义(`200` = 200 tokens,而非 200K);v2.1.304+ 可用 `200k`/`1M` 后缀 - **评估 `between_tools` 思考模式**:如需关闭前置思考但保留工具间推理,可在 Models API 中查询 `thinking.types.between_tools.supported` 后使用 `thinking: {type: "between_tools"}` - **审查 `dontAsk` + mods 组合**:若依赖 `dontAsk` 做严格 CI 锁定,注意已安装的 mod 可绕过 hook 的 deny 决策(除非有托管设置或 Team/Enterprise 登录) - **迁移 API 认证头**:将示例中的 `x-api-key` 头替换为 `Authorization: Bearer` 标准格式
💭 Model Reasoning
Let me analyze this batch of documentation changes across 32 pages. Key changes I'm seeing: 1. **"Routines" renamed to "Cloud scheduled tasks"** - This is a major terminology change across many pages (claude-code-on-the-web.md, common-workflows.md, overview.md, skills.md, slash-commands.md, interactive-mode.md, hooks.md, costs.md, sub-agents.md). The term "routines" is being replaced with "cloud scheduled tasks" to better distinguish from "desktop scheduled tasks" and "session-scoped scheduled tasks" (/loop). 2. **"Scheduled tasks" clarified as "session-scoped scheduled tasks"** - In costs.md, hooks.md, skills.md, slash-commands.md - the term "scheduled task" is being qualified as "session-scoped scheduled task" to distinguish from cloud scheduled tasks and desktop scheduled tasks. 3. **`CLAUDE_CODE_AUTO_COMPACT_WINDOW` values and warnings** - model-config.md adds detailed documentation about warning messages, valid values, and behavior when the value is out of range. Also adds support for `k` and `M` suffixes in the env var (v2.1.304+). sub-agents.md also gets a cross-reference. 4. **`dontAsk` permission mode and mods interaction** - headless.md and hooks-guide.md clarify that mods can approve calls that `dontAsk` would otherwise deny. hooks-guide.md adds a Note with conditions under which a mod can override a hook's block (no managed settings, no Team/Enterprise login). 5. **`thinking.types.between_tools` capability** - about-claude/models/overview.md and api/models/list.md add documentation for a new thinking type `between_tools` which turns off up-front thinking but allows progress updates between tool calls. 6. **API authentication header change** - api/beta-headers.md changes from `x-api-key: YOUR_API_KEY` to `Authorization: Bearer YOUR_API_KEY`. 7. **Code style changes** - Multiple pages (extended-thinking.md, prompt-caching.md, citations.md, search-results.md, structured-outputs.md, effort.md) have trailing comma removals and type assertion simplifications in code examples. 8. **Structured outputs on Bedrock** - structured-outputs.md removes the legacy Bedrock note, now just shows "ga" for Amazon Bedrock. 9. **Batch processing** - batch-processing.md clarifies that workspaces and billing are "in the Claude Console". 10. **API overview** - Minor wording change about viewing rate limits. 11. **IP allowlist section restructured** - claude-code-on-the-web.md breaks the IP allowlist bullet into sub-bullets for better readability. Let me assess impact: - The terminology change from "routines" to "cloud scheduled tasks" is significant but not breaking - it's a naming change, the underlying feature/URL remains the same - The `between_tools` thinking type is new API capability - The auth header change from `x-api-key` to `Authorization: Bearer` could be significant for API users - The `CLAUDE_CODE_AUTO_COMPACT_WINDOW` warnings documentation is important for ops - The mods/dontAsk clarification affects permission model understanding