🤖 AI Batch Analysis
## 文档变更分析
### 1. 总体摘要
本次变更主要针对文档的**精确性提升和结构优化**:修正了沙箱权限规则、缓存监控类型的表述,明确了技能堆叠在终端与 Agent SDK 中的行为差异,改进了插件市场排错指南,并发布了 v2.1.302 的完整更新日志。
### 2. 关键主题
- **技能堆叠行为澄清**:明确堆叠仅在终端交互提示符下生效,通过 Agent SDK 或 `claude -p` 仅加载第一个技能,并移除了 `/code-review` 版本相关的历史说明
- **插件市场排错增强**:将"检查插件名"的模糊提示替换为具体错误消息、刷新目录命令和排错链接(出现3处,属于统一修正)
- **沙箱权限表述精确化**:从笼统的"显式 deny 规则"改为"被 Bash deny 规则匹配的命令形式",关键路径判断措辞也更严谨
- **VS Code 文档重构**:功能列表条目化、编辑器/容器支持分类、安全章节锚点更新、权限模式说明增加受保护路径链接
- **监控/主题/安全小修**:`cacheCreation` 类型补充了5分钟和1小时缓存生命周期的说明;新增 `composerSidebarBackground` 主题令牌;安全章节交叉引用更新
- **v2.1.302 变更日志**:大量 bug 修复、性能改进和默认行为变更
### 3. 影响等级:**Medium**
- 无破坏性 API 变更,但 v2.1.302 中有几项**默认行为变更**值得注意:`claude -p`/Agent SDK 在第三方 provider 上默认以 `default` 模式启动;fork subagent 在 `claude -p`、Agent SDK、桌面端和 VS Code 中默认开启;桌面端和 VS Code 主对话的子代理始终后台运行
- 文档层面的澄清不影响运行时行为,但防止开发者因误解堆叠、权限、缓存计数而产生集成问题
### 4. 开发者行动项
- **检查 Agent SDK 中的技能堆叠逻辑**:若代码依赖多技能堆叠,需知 `claude -p` 和 Agent SDK 仅加载第一个技能,需调整调用方式
- **更新插件安装排错流程**:遇到 "Plugin not found in marketplace" 时先执行 `/plugin marketplace update claude-plugins-official` 刷新目录,而非反复核对插件名
- **注意 v2.1.302 默认行为变更**:fork subagent 已默认开启(可通过 `CLAUDE_CODE_FORK_SUBAGENT=0` 关闭);第三方 provider 下 `claude -p` 无权限模式时默认 `default` 模式而非 auto
- **利用新主题令牌**:如需自定义全屏模式下侧边面板(diff 面板、mod 面板)背景色,可使用新增的 `composerSidebarBackground`
- **关注监控数据语义**:`cacheCreation` 类型的 token 计数现在明确包含5分钟和1小时两种缓存生命周期,若按此做成本分析需确认口径
💭 Model Reasoning
Let me analyze the documentation changes across all 10 pages.
1. **hooks.md**: Removed a sentence about "An explicit deny returned by another hook still takes precedence" when a PreToolUse Agent SDK callback hook times out. This simplifies the timeout behavior description.
2. **mcp.md**: Improved error message guidance for "Plugin not found in marketplace" - now explains the local catalog may be stale and provides a refresh command, rather than just "check the plugin name."
3. **monitoring-usage.md**: Added clarification that `cacheCreation` type counts cache writes for both five-minute and one-hour cache lifetimes together.
4. **sandboxing.md**: More precise wording for auto-allow mode restrictions - changed "Explicit deny rules" to "A command in a form that a Bash deny rule matches", and updated critical path wording.
5. **security.md**: Changed the IDE security cross-reference from "VS Code security and privacy" to "The built-in IDE MCP server" - reflecting a section reorganization.
6. **skills.md**: Restructured the skill stacking documentation - moved it into its own subsection, added clarification that skill stacking only works at the terminal prompt (not through Agent SDK or `claude -p`), removed version-specific note about `/code-review`. Also has the same plugin marketplace fix.
7. **slash-commands.md**: Same changes as skills.md for the skill stacking and plugin marketplace sections.
8. **terminal-config.md**: Added `composerSidebarBackground` theme token for the panel beside the conversation (diff panel, mod's pane). Reordered the fullscreen mode description.
9. **vs-code.md**: Major restructuring - bullet-pointed the feature list, reorganized editor/container support, added anchor IDs for security section, improved wording around permission modes, added link to protected paths, restructured review changes section, improved Remote Control toggle description.
10. **CHANGELOG.md.md**: Version 2.1.302 changelog with extensive fixes, improvements, and changes.
Key themes:
- Documentation precision/accuracy improvements
- Plugin marketplace troubleshooting guidance
- Skill stacking behavior clarification (terminal vs Agent SDK)
- VS Code section restructuring
- New theme token for sidebar
- Cache creation type clarification
- Sandbox permission rule precision
- Changelog for v2.1.302