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-TW/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}
41Open the iOS simulator, tap through the onboarding flow, and screenshot each step
42```
43
44[電腦使用指南](https://code.claude.com/docs/zh-TW/desktop.md#let-claude-use-your-computer)
45
46PR 自動修復
47Web
48
49開啟 PR 時翻轉開關並離開。Claude 監視 CI、修復失敗、處理細節,並推送直到變綠。不再需要透過六輪 lint 錯誤來監督 PR。
50
51
52
53在 Claude Code 網頁上建立 PR 後,在 CI 面板中切換「自動修復」。
54
55[自動修復提取請求](https://code.claude.com/docs/zh-TW/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 # open transcript
66/migrate # search for "migrate"
67n # next match
68N # previous match
69```
70
71[全螢幕指南](https://code.claude.com/docs/zh-TW/fullscreen.md#search-and-review-the-conversation)
72
73PowerShell 工具
74preview
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-TW/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-TW/hooks.md)
113
114其他成果
115
116Plugin `userConfig` 現已公開:在啟用時提示設定、鑰匙圈支援的祕密貼上的影像插入 `[Image #N]` 晶片,您可以按位置參考`managed-settings.d/` 分層原則片段的放置目錄`CwdChanged` 和 `FileChanged` hook 事件用於 direnv 風格的設定代理程式可以在 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)