whats-new/2026-w13.md +0 −118 deleted
File Deleted View Diff
1> ## Documentation Index
2> Fetch the complete documentation index at: https://code.claude.com/docs/llms.txt
3> Use this file to discover all available pages before exploring further.
4
5# 第13周 · 2026年3月23–27日
6
7> 自动模式用于免提权限、内置计算机使用、云端PR自动修复、转录搜索和Windows PowerShell工具。
8
9发布版本 [v2.1.83 → v2.1.85](https://code.claude.com/docs/en/changelog.md#2-1-83)
106项功能 · 3月23–27日
11
12自动模式
13研究预览
14
15自动模式将您的权限提示交给分类器处理。安全的编辑和命令无需中断即可运行;任何破坏性或可疑的操作都会被阻止并显示。这是批准每个文件写入和使用 `--dangerously-skip-permissions` 运行之间的折中方案。
16
17
18
19使用 Shift+Tab 切换到自动模式,或将其设置为默认值:
20
21```json ~/.claude/settings.json {3} theme={null}
22{
23 "permissions": {
24 "defaultMode": "auto"
25 }
26}
27```
28
29[权限模式指南](https://code.claude.com/docs/zh-CN/permission-modes.md)
30
31计算机使用
32Desktop
33
34Claude 现在可以从 Claude Code Desktop 应用控制您的实际桌面:打开原生应用、点击 iOS 模拟器、驱动硬件控制面板,并验证屏幕上的更改。默认情况下它是关闭的,每次操作前都会询问。最适合用于其他方法无法到达的事情:没有 API 的应用、专有工具、任何仅作为 GUI 存在的东西。
35
36
37
38在设置中启用它,授予操作系统权限,然后要求 Claude 端到端验证更改:
39
40```text title="Claude Code" wrap theme={null}
41打开 iOS 模拟器,点击完成入门流程,并对每个步骤进行截屏
42```
43
44[计算机使用指南](https://code.claude.com/docs/zh-CN/desktop.md#let-claude-use-your-computer)
45
46PR 自动修复
47Web
48
49打开 PR 时切换开关然后离开。Claude 监视 CI,修复失败,处理细节,并推送直到通过。不再需要通过六轮 lint 错误来照看 PR。
50
51
52
53在 Claude Code web 上创建 PR 后,在 CI 面板中切换自动修复。
54
55[自动修复拉取请求](https://code.claude.com/docs/zh-CN/claude-code-on-the-web.md#auto-fix-pull-requests)
56
57转录搜索
58v2.1.83
59
60在转录模式中按 `/` 搜索您的对话。`n` 和 `N` 逐步浏览匹配项。最后有办法找到 Claude 在 400 条消息前运行的那个 Bash 命令。
61
62打开转录模式并搜索:
63
64```text Claude Code theme={null}
65Ctrl+O # 打开转录
66/migrate # 搜索"migrate"
67n # 下一个匹配项
68N # 上一个匹配项
69```
70
71[全屏指南](https://code.claude.com/docs/zh-CN/fullscreen.md#search-and-review-the-conversation)
72
73PowerShell 工具
74预览
75v2.1.84
76
77Windows 获得了与 Bash 并行的原生 PowerShell 工具。Claude 可以运行 cmdlet、管道对象,并使用 Windows 原生路径,无需通过 Git Bash 翻译所有内容。
78
79从设置中选择加入:
80
81```json .claude/settings.json {3} theme={null}
82{
83 "env": {
84 "CLAUDE_CODE_USE_POWERSHELL_TOOL": "1"
85 }
86}
87```
88
89[PowerShell 工具文档](https://code.claude.com/docs/zh-CN/tools-reference.md#powershell-tool)
90
91条件 hooks
92v2.1.85
93
94Hooks 现在可以使用权限规则语法声明 `if` 字段。您的 pre-commit 检查仅针对 `Bash(git commit *)` 生成,而不是每个 bash 调用,减少繁忙会话中的进程开销。
95
96将 hook 限制为仅 git 提交:
97
98```json .claude/settings.json {5} theme={null}
99{
100 "hooks": {
101 "PreToolUse": [{
102 "hooks": [{
103 "if": "Bash(git commit *)",
104 "type": "command",
105 "command": ".claude/hooks/lint-staged.sh"
106 }]
107 }]
108 }
109}
110```
111
112[Hooks 参考](https://code.claude.com/docs/zh-CN/hooks.md)
113
114其他亮点
115
116Plugin `userConfig` 现已公开:在启用时提示设置,钥匙串支持的密钥粘贴的图像插入 `[Image #N]` 芯片,您可以按位置引用`managed-settings.d/` 分层策略片段的 drop-in 目录`CwdChanged` 和 `FileChanged` hook 事件用于 direnv 风格的设置Agents 可以在 frontmatter 中声明 `initialPrompt` 以自动提交第一轮`Ctrl+X Ctrl+E` 打开您的外部编辑器,匹配 readline在任何响应前中断会自动恢复您的输入`/status` 现在在 Claude 响应时也能工作深层链接在您首选的终端中打开,而不是首次检测到的离开 75+ 分钟后的空闲返回提示到 `/clear`VS Code:速率限制横幅,Esc 两次倒带选择器
117
118[v2.1.83–v2.1.85 完整更新日志 →](https://code.claude.com/docs/en/changelog.md#2-1-83)