usage

Claude Code 2.1.193

工具與目錄
在這頁

新功能 3 項

01

自動模式與背景任務大清倉,不再產生幽靈任務

這次讓自動模式(auto mode)跟背景任務變得更聰明。現在自動模式拒絕你執行的動作時,會把「為什麼拒絕」的理由清楚寫在紀錄與權限面板裡;你也可以開啟新設定,讓所有指令都經過安全分類,而不只是針對特定程式碼。對於背景代理人,它現在學會了平行處理,不會再笨笨地為了啟動代理人而要求主對話中斷。系統也新增了自動記憶體清理機制(memory-pressure reaping),會把閒置的背景指令清掉以節省資源。此外,以前你切換到背景時,常會被假警報恐嚇說「任務會被放棄」,或是莫名其妙生出一個重複執行對話的幽靈任務;在更新過後,這些假警報、幽靈任務,以及代理人面板會把其他兄弟代理人藏起來的毛病,全都修好了。就像請了一個精明的管家,以前他拒絕你做事只會搖頭,而且每次分派任務就要你閉嘴等他;現在他會清楚告訴你原因,並且能一邊聽你說話一邊指揮傭人,還會自動把沒在用的房間燈關掉省電。

官方原文

Added autoMode.classifyAllShell setting to route all Bash/PowerShell commands through the auto-mode classifier instead of only arbitrary-code-execution patterns

Added auto-mode denial reasons to the transcript, the denial toast, and /permissions recent denials

Improved background agents: the launch result no longer instructs Claude to "end your response" — it keeps working on other tasks while the agent runs

Added automatic memory-pressure reaping for idle background shell commands (disable with CLAUDE_CODE_DISABLE_BG_SHELL_PRESSURE_REAP=1)

Fixed backgrounding (←←) spuriously cancelling with "N background tasks would be abandoned" when all running tasks carry over to the new session

Fixed pinned background agents being re-prompted to "Continue from where you left off" after every auto-update

Fixed backgrounding the main turn spawning a phantom "general-purpose (resumed)" subagent that re-ran the main conversation

Fixed agent panel hiding sibling agents when viewing a subagent

02

MCP 與外掛設定更聰明,終端機輸入支援路徑補齊

跟外部系統打交道變得更順暢了。現在你在終端機使用 bash 模式(打 ! 開頭)時,系統會即時幫你自動補齊檔案路徑,不用再辛苦地一個字一個字打。如果你的 MCP(外部工具伺服器)需要登入認證,系統一啟動就會溫馨提示你去 /mcp 處理;而且當工具呼叫因為權限不足(401/403 錯誤)被擋下時,MCP 輔助程式現在會自動重新連線並重試,不會直接死給你看。此外,當外部套件(plugin)在市集上改名時,你的設定檔也會自動跟著更新名字。登入後查看模型選單時,也不會再看到過期或空白的假畫面了。就像你的專屬助理,現在打字會自動幫你接下去,去別的部門調資料遇到門禁會自己想辦法重新刷卡,別人改名了也懂得幫你更新通訊錄,而且名片本打開永遠是最新狀態。

官方原文

Added live file path autocomplete to bash mode (!)

Added a startup notice when MCP servers need authentication, pointing at /mcp

Improved MCP headersHelper auth: the helper now re-runs and reconnects automatically when a tool call returns 401/403

Improved plugin auto-rename: marketplace renames maps are now followed automatically, updating your settings to the new name

Improved /add-dir message when the directory is already a working directory

Fixed /model and other client-data-gated UI showing stale/empty state immediately after /login

03

企業觀測日誌升級,可直接紀錄 AI 的回答內容

企業管理員現在有了更透明的監控工具。系統在 OpenTelemetry(企業用來收集日誌的標準框架)中新增了專門記錄 Claude 回答內容的事件。只要你原本就有設定記錄使用者的提示詞,系統升級後預設就會連同 AI 的回答一起記錄下來,讓你一眼看穿 AI 到底產出了什麼。當然,如果你有資安考量,也可以手動設定變數(OTEL_LOG_ASSISTANT_RESPONSES=0)來關閉這個功能,讓日誌只保留使用者的指令。就像公司的監視器原本只錄得到員工對對講機講的話,現在連對講機另一頭的回應也能一併錄音存證,當然,你想把喇叭靜音也完全沒問題。

官方原文

Added claude_code.assistant_response OpenTelemetry log event containing the model's response text. Redacted unless OTEL_LOG_ASSISTANT_RESPONSES=1; when that var is unset it follows OTEL_LOG_USER_PROMPTS, so deployments that already log prompt content will start receiving response content on upgrade — set OTEL_LOG_ASSISTANT_RESPONSES=0 to keep prompts-only.