claude@cli:~/docs$ cat claude-code.md

Claude Code: 斜線指令

# Slash commands 讓您快速存取 Claude Code 的各項功能,並建立自訂工作流程。對於常見操作而言,比起完整輸入提示詞,使用 slash commands 更為迅速。

author: words: 6476 read_time: 60m updated: 2026-11-29 08:10

Part 3 of New to Claude Code

Slash commands 讓您快速存取 Claude Code 的各項功能,並建立自訂工作流程。對於常見操作而言,比起完整輸入提示詞,使用 slash commands 更為迅速。

最後更新: 2026-11-29 · 60 分鐘閱讀 · 6K+ words

$ less claude-code.md

Slash commands 讓您快速存取 Claude Code 的各項功能,並建立自訂工作流程。對於常見操作而言,比起完整輸入提示詞,使用 slash commands 更為迅速。

截至 v2.1.265,在提示詞中間輸入 slash command 時會出現真正的建議清單:符合的項目會以清單形式顯示,而非只有單一建議;在非全螢幕模式下可按 Tab 開啟清單;plugin skill 也能以其簡短名稱找到。212

本節涵蓋:內建指令參考、建立自訂指令、指令 Frontmatter 選項、引數插值、內嵌 Bash 執行、檔案參照,以及指令命名空間。

內建指令參考

本表涵蓋本指南用到的指令;完整清單請參閱指令參考文件。334

指令 用途 備註
/init 以 CLAUDE.md 初始化專案 建立包含專案結構的記憶檔案
/memory 管理記憶 編輯 CLAUDE.md 檔案、開啟或關閉自動記憶,以及檢視自動記憶項目(v2.1.59+)334
/copy 複製程式碼區塊 互動式選擇器,可挑選個別程式碼區塊或完整回應;「Always copy full response」選項會讓之後的呼叫略過選擇器;按 w 鍵可將所選內容直接寫入檔案,透過 SSH 操作時特別實用;/copy N 會複製倒數第 N 則助理回應(v2.1.59+,於 v2.1.63、v2.1.72、v2.1.77 強化)102112117
/context 檢視上下文視窗用量 以視覺化方式呈現細項,並提供可行建議(v2.1.74+)114
/compact 精簡對話歷史 可指定重點:/compact focus on tests
/usage 工作階段費用、方案用量上限與活動統計 自 v2.1.118 起為單一對話框;/cost 與 /stats 會在各自的分頁開啟它。在 Pro、Max、Ultra、Team 或 Enterprise 方案上,它會細分哪些用量計入您的方案上限,並為訂閱者提供各模型與快取命中的細項(v2.1.92+)。它也會顯示 /loop 任務的 Loops 細項(執行次數、總 token 數與每次執行的 token 數、上次執行;v2.1.243)、Team 與 Enterprise 成員的用量額度支出列(v2.1.236),以及在設有支出上限的 Claude apps gateway 後方使用時的支出上限列(v2.1.251)。針對最高 effort、工作流程、常駐上下文與大型工具結果的警告(v2.1.299)各自是一行標明來源的修正建議,按 f 即可套用修正,這些修正也會出現在 VS Code 與 /doctor 中(v2.1.305)。在 VS Code 中,「Account & usage」(帳號與用量)對話框會將過去 24 小時或 7 天內的用量歸因於快取未命中、長上下文、subagents,以及各個 skill、agent、plugin 與 MCP 伺服器(v2.1.174+)135149169247243203268275431
/usage-credits 設定或申請用量額度 於 v2.1.144 由 /extra-usage 更名而來。截至 v2.1.248,透過 AWS Marketplace 計費的 Enterprise 組織、自助式 Enterprise 以及 Enterprise 試用版也可使用,成員可向管理員申請更高的用量上限;v2.1.251 修正了上限為 $0 的情況(改為提議詢問管理員,而非宣稱已達上限),並在組織隱藏此指令時(DISABLE_EXTRA_USAGE_COMMAND),不再於速率限制與用量訊息中推薦此指令203
/design 發佈可編輯 UI 畫板的畫布 Claude Design 範本,建構於 artifacts 之上:描述需求、挑選畫板,再交由 Claude 實作。需要 v2.1.265 或更新版本,以及可使用 artifacts 的工作階段(Pro、Max、Ultra、Team 與 Enterprise);在 Team 與 Enterprise 上,還必須為組織開啟該範本。335 獨立版 Claude Design(claude.ai/design)最遲將於2026年12月14日關閉;自 v2.1.302 起,/design-sync 與 /design-login 會提示此事,雲端工作階段則會導向 claude.ai/design/settings 進行同意與撤銷202272
/slides 以 artifact 形式建立 Claude Slides 簡報 附上需求說明執行(/slides a quarterly review of the platform team's reliability work, for the engineering all-hands);若未附上,Claude 會先詢問簡報內容再開始建立。需要 v2.1.265 或更新版本、可使用 artifacts 的工作階段,以及可使用 Slides 範本的帳號;否則不會出現此指令。在 Team 與 Enterprise 方案上,由 Owner 於 Organization settings > Artifacts(組織設定 > Artifacts)逐一開啟各範本。Bedrock、Agent Platform、Foundry 與 AWS 上的 Claude Platform 都無法使用 artifacts,因此也無法使用此指令335
/diff 全螢幕差異比較面板 v2.1.260:在全螢幕模式下於對話旁開啟,並即時顯示 Claude 編輯時的未提交變更;以 /diff 切換。其詳細檢視於 v2.1.149 新增鍵盤捲動,並於 v2.1.222 改為直接渲染 git blob 原始內容,忽略 diff driver 與 textconv209431
/cost 輸入捷徑 → 開啟 /usage 的費用分頁 v2.1.118 之前為獨立指令;現仍可作為捷徑使用
/stats 輸入捷徑 → 開啟 /usage 的統計分頁 v2.1.118 之前為獨立指令;現仍可作為捷徑使用
/theme 變更色彩主題;管理具名自訂主題 可選擇 auto、淺色、深色、色盲友善或 ANSI 主題;可從選擇器建立與切換自訂主題,或直接手動編輯 ~/.claude/themes/*.json;plugins 可隨附 themes/ 目錄(v2.1.118+)149。在選擇器中,Ctrl+T 可切換程式碼區塊的語法醒目提示334
/permissions 管理權限設定 互動式介面。v2.1.246 新增 Auto mode 分頁(僅在 auto mode 可用時顯示),可依範圍檢視與編輯分類器的 allow、soft_deny、hard_deny 與 environment 項目;受管設定與 --settings 項目為唯讀,編輯內容會儲存至 ~/.claude/settings.json,而您在某個區段新增的第一條規則會自動插入 "$defaults",讓內建規則持續生效246244
/auto-mode-setup 讓 auto mode 熟悉您的環境 引導式設定,會讀取專案與近期工作階段,並為 ~/.claude/settings.json 草擬 autoMode.environment 項目(信任與敏感度欄位)。在 Pro、Max、Ultra 與 Team 上需要 v2.1.228(原生 Windows 上為 v2.1.233),在 Enterprise 上或使用 Console API 金鑰時需要 v2.1.283;關閉遙測、使用第三方供應商或在 Claude apps gateway 上時,則需要 v2.1.304。請參閱 Auto Mode275276551
/mcp 設定 MCP 伺服器 亦有 /mcp enable、/mcp disable;/mcp reconnect all(v2.1.284)會重試所有連線失敗或需要驗證的伺服器225
/hooks 檢視 hook 設定 除錯 hooks;自 v2.1.286 起,開啟後會顯示您已設定的 hooks 清單,並依事件分組228
/config 開啟設定介面 完整設定
/resume 恢復對話 /resume 會開啟工作階段選擇器;/resume <session-id> 或 /resume session-name 會恢復該對話;/continue 為其別名500。自 v2.1.304 起,Pro 與 Max 方案在恢復閒置對話會佔用 5 小時用量上限中相當比例時會顯示警告,並提供改為開始新對話的選項275
/rename 為目前工作階段命名 /rename feature-auth
/branch 分支對話 在不失去上下文的情況下探索其他方向(於 v2.1.77 由 /fork 更名而來)117
/fork 將對話複製到新的背景工作階段 於 v2.1.212 重新定義用途:複本會在 claude agents 中擁有自己的一列並獨立執行;不再是工作階段內的別名186
/subtask 工作階段內分支 舊有工作階段內 /fork 行為的新名稱(v2.1.212)186
/clear 清除對話歷史 重新開始
/powerup 互動式功能教學 以動畫示範教學 Claude Code 的各項功能(v2.1.90+)133
/ide 連線至 IDE VS Code/JetBrains 整合
/sandbox 啟用 sandbox 模式 隔離執行
/status 檢視工作階段狀態 模型、設定等。v2.1.243 新增 Skipped sources 一行,列出存在但因較高優先順序的受管來源生效而未套用的受管設定來源,並新增一行顯示雲端工作階段(Pro/Max)是否已連線 GitHub,未連線時會指向 /web-setup;截至 v2.1.274 該行改稱「Cloud sessions」,即取代「Claude Code on the web」的產品用語;v2.1.278 新增 Auto mode server 列:此工作階段的 auto-mode 分類器在伺服器端執行時顯示 Enabled,退回至計費的本機分類器請求後則顯示 Disabled;v2.1.327 新增一份清單,列出損壞的 agent、skill、指令與輸出風格檔案、按鍵綁定錯誤、無法使用的沙箱、被忽略的權限設定,以及永遠不會比對成功的 hook 比對器;v2.1.326 則新增一列,在您的供應商或 DISABLE_TELEMETRY 之類的變數關閉功能時加以說明247215216527
/statusline 自訂狀態列 設定顯示內容。v2.1.251 新增兩個狀態列 JSON 欄位:rate_limits.spend_limit(used_percentage 範圍為 0 至 100,超過上限後會高於 100,另有 resets_at;僅限使用設有支出上限的 Claude apps gateway,且每個 rate_limits 視窗可能各自缺席)以及 prompt_cache 物件(命中率、未命中數、warm/cold、TTL;在主對話收到第一個 API 回應前不存在;依 API 的快取 token 計數計算,因此在所有供應商上皆可運作)203206
/model 變更 AI 模型 /model opus;自 v2.1.321 起,/model fable 會選取 Fable 5.2;自 v2.1.319 起,較舊的模型位於「More models」(更多模型)列之下,自 v2.1.321 起改為不編號,列在其餘模型下方283
/advisor 設定、顯示或關閉 advisor 模型,即 Claude 在決策點諮詢的伺服器端第二模型(實驗性功能) /advisor opus、/advisor off;自 v2.1.260 起在 headless 與桌面工作階段支援文字形式;在 AWS 上的 Claude Platform 與 Claude Models on Google Cloud (Anthropic managed) 上需要 v2.1.300 或更新版本271553
/fast 切換快速模式 相同模型,輸出速度最高可達 2.5 倍,價格為 2 倍(v2.1.36+)501。適用於 Fable 5.2(每 MTok $16/$80,v2.1.321+;在 Google Cloud 的 Agent Platform 上自 v2.1.322 起)、Opus 5.5(自 v2.1.280 起為快速模式的預設模型,每 MTok $8/$40)以及 Opus 5 和 Opus 4.8($10/$50;Opus 4.8 於2026年10月30日棄用,2026年11月30日移除);v2.1.219 已將 Opus 4.7 從快速模式中移除193195220281284。截至v2.1.271亦適用於 Remote 工作階段(雲端與自行託管的執行器)213
/output-style [name] 列出並切換輸出樣式 v2.1.73-v2.1.268 期間已棄用,改由 /config 取代;v2.1.269 重新啟用;可在 Remote Control、雲端及其他無頭(headless)工作階段中使用113213
/agents 已於 v2.1.198 移除 請直接請 Claude 建立或管理 subagents,或直接編輯 .claude/agents/;輸入 /agents 會說明精靈去了哪裡221
/skills 列出已安裝的 skills 提供即時篩選的搜尋框,方便瀏覽長清單(v2.1.121+)151;按 t 可依 token 數排序;在 skill 清單中,description 與 when_to_use 合併後的文字會在 1,536 個字元處截斷330
/skill-doctor 稽核已載入的 skills 顯示哪些已載入的 skills 未被使用,以及每個 skill 佔用多少上下文,方便您精簡(CHANGELOG:v2.1.261;文件將 v2.1.252 列為版本下限,並要求擷取功能旗標)211431
/tasks 背景工作:指令與 subagents 檢視與管理工作階段中的背景工作,包括已完成的 subagents;/bashes 為其別名334。截至 v2.1.243,每個 subagent 的列與詳細資訊對話框都會標示其執行的模型與 effort 等級247;v2.1.319 新增「Earlier in this session」(本工作階段稍早)列,列出已完成的 subagents,即使它們已離開清單或您已重新啟動,仍可重新開啟並傳送訊息給它們283;v2.1.329 新增工作階段的排程任務、/loop 喚醒、目標以及對話的 fork,可按 x 在詢問後停止其中一項,並在頁首與頁尾以單一計數涵蓋 shell、監控器、MCP 呼叫、agents、工作流程與排程任務527
/goal 設定完成條件 讓 Claude 持續朝目標努力,直到條件滿足為止(v2.1.139+)。自v2.1.234起,若目標因背景工作等待超過30分鐘,系統會主動檢查而非無限等待;當某個回合因無法復原的錯誤而中止時,目標會自動清除並顯示通知。截至v2.1.246,閒置的工作階段對長時間執行的背景工作,每個目標最多啟動三次檢查,您的下一則訊息會再允許三次250246
/export 匯出對話 儲存逐字稿
/add-dir 新增工作目錄 擴展存取範圍。截至v2.1.257,--add-dir、/add-dir 與 additionalDirectories 會拒絕網路路徑(Windows UNC 共用、/net/<host> 自動掛載)並顯示訊息;在 Windows 上,請先將共用對應到磁碟機代號208。截至 v2.1.326,在本機終端機工作階段中,--add-dir 與 /add-dir 會對您尚未信任的資料夾顯示信任提示,而 claude --bg 會拒絕這類資料夾527
/cd 將工作階段移至另一個工作目錄 保留提示快取(v2.1.169+)。截至v2.1.246,新目錄的專案設定、hooks、.mcp.json 伺服器(仍需經過一般的核准提示)、skills 與 agents 會在移動後立即生效,而不必等到 --resume259246
/web-setup 為雲端工作階段連接 GitHub 將本機的 gh CLI token 傳送到您的 Claude 帳號,讓雲端工作階段能存取該 token 可存取的任何儲存庫;在 Team 與 Enterprise 方案上,此指令會隱藏,直到組織開啟 Quick setup(快速設定),而該設定預設為關閉;具有 Zero Data Retention 或 HIPAA 設定的組織無法使用此指令或其他雲端工作階段功能247244215554
/terminal-setup 設定終端機 在 VS Code、Cursor、Devin Desktop、Alacritty 或 Zed 中安裝 Shift+Enter 換行按鍵綁定;在 Apple Terminal 中會關閉提示音,並在 macOS 26 及更早版本上啟用「Use Option as Meta Key」(將 Option 當作 Meta 鍵),讓 Option+Enter 插入換行;在 iTerm2 中會開啟剪貼簿存取,讓 /copy 可正常運作17553
/login 在工作階段中驗證身分 切換帳號或重新驗證。截至v2.1.206,支援透過 Anthropic 營運的公開閘道端點登入;Anthropic Console 路徑在建立 API 金鑰之外,另提供免金鑰的「Sign in with your Console account」(使用您的 Console 帳號登入)選項(建議使用),適合不允許 API 金鑰的組織(依驗證文件為 v2.1.242 或更新版本;版本說明將其列於 2.1.243 之下)181247383
/commit-push-pr 提交、推送並開啟 PR 未列於指令參考文件中。公開的來源是 Anthropic 官方市集中的 commit-commands plugin(/plugin install commit-commands@claude-plugins-official),其 README 將 /commit-push-pr 描述為「一步完成提交、推送並建立 pull request」的指令。432 CHANGELOG 兩度提及此指令:v2.1.206 會自動允許 git push 推送至已設定的推送遠端(remote.pushDefault 或唯一的遠端),而不僅限於 origin;v2.1.229 則不再自動核准帶有危險旗標(--force、--amend、--no-verify 等)的 git/gh 指令181254
/logout 在工作階段中登出 清除憑證
/doctor 診斷並修復設定問題 完整的設定健檢,可診斷並修復問題(v2.1.205;先前僅檢查安裝):會提出修復建議,經您確認後由 Claude 套用。/checkup 為其別名。/doctor prompt-audit(v2.1.283)會稽核 CLAUDE.md 檔案、skills、agents 與命令中針對舊模型撰寫的提示模式,優先列出過時路徑、過時命令與相互矛盾的指示檔案223334
/bug 回報錯誤 向 Anthropic 提交問題。截至v2.1.273,回報內容僅包含最後一次 API 請求的模型行為參數(模型、系統提示、工具);請求中繼資料與 CLAUDE_CODE_EXTRA_BODY 欄位會被省略214
/feedback 向 Anthropic 傳送意見回饋 可附加過去24小時或7天內的最近工作階段,適用於跨越多個工作階段的問題(v2.1.141+);截至v2.1.247,當工作階段中發生問題時,Claude 可透過新的 SendFeedback 工具自行草擬意見回饋報告,供您審閱後從此處送出(可用 feedbackDrafts 設定關閉);v2.1.273 以與 /bug 相同的方式精簡附加的請求資料:僅保留模型行為參數161242214
/release-notes 互動式版本資訊 附有變更記錄的版本選擇器(v2.1.92+)135
/rewind 返回檢查點 復原變更(或按兩次 Esc)。v2.1.191: 可從 /clear 之前的對話繼續。
/plugin 管理 plugins 安裝、更新、移除 plugins
/passes 分享 Claude Code 與朋友分享一週免費的 Claude Code;僅在您的帳號符合資格時顯示334
/voice [mode] 切換語音聽寫,或以特定模式開啟 /voice hold(按住空白鍵錄音)、/voice tap(點按開始與停止)或 /voice off;需要 claude.ai 帳號109553
/claude-api Claude API skill 使用 Claude API/Anthropic SDK 建構應用程式(v2.1.69+)108。截至v2.1.247,此 skill 新增 cost-optimize(分析現有專案的 Claude API 支出,並逐一檢視各項成本槓桿,即快取、token 精簡、批次、effort 與模型選擇,每次只做一項可量測的變更)以及 Admin API 的涵蓋範圍:組織成員、邀請、工作區、API 金鑰、速率限制報告、工作負載身分聯合、CMEK242。/claude-api api-version 會將 Claude API 程式碼遷移至 API 版本 2026-10-21(v2.1.307),而 managed-agents-secure [<agent-id>] 會回報 Managed Agent 的設定與 Anthropic 安全部署指南相符或相異之處,但不做任何變更(v2.1.304)275276;/claude-api latency-optimize(v2.1.319)會找出您的 Claude API 程式碼讓使用者等待之處,並以您的 eval 測試更快的設定283
/reload-plugins 重新載入 plugins 不必重新啟動即可套用 plugin 變更(v2.1.69+)108。自v2.1.268起已鮮少需要:/plugin 的安裝、啟用與停用會在關閉選單時生效213
/security-review 安全性審查 審查程式碼中的漏洞(v2.1.70 修正了 git 相容性)107。自 v2.1.323 起,在 auto mode 與略過權限模式之外,Claude 執行此指令前,Claude Code 會先詢問527
/color 設定提示列顏色 為工作階段設定提示列顏色。使用 /color default/gray/reset/none 可還原。所有使用者皆可使用(v2.1.75+)115
/code-review [effort] 正確性審查 審查目前的 diff,或您傳入的 PR 編號、分支或路徑,找出正確性錯誤,可選擇 effort 等級;不帶引數的 /code-review 會沿用您上次輸入的等級,/code-review ultra 則執行深度雲端審查。/review 為其別名。它以背景 subagent 的方式執行,且只在您呼叫時執行。旗標:--fix 會套用審查發現,--comment 會將發現張貼到 GitHub PR 或 GitLab merge request 上,--max-findings <n>、all 或 default 則設定回報的發現數量,之後的審查會沿用該選擇。166188192197231553
/code-review(輸出) 回報內容 在大多數模型上,審查只會回報錯誤與違反 CLAUDE.md 之處(重複使用、簡化與效率方面的清理請執行 /simplify),將每項發現標示為 Important(重要)、Pre-existing(既有問題)或 Nit(細節),並在每份摘要結尾附上建議的修正(v2.1.328)。在大多數模型上,不帶目標的 /code-review 會將整個分支與預設分支比對審查;而 /code-review <pr number> --fix 或 pull request URL 在 gh pr diff 被拒絕或失敗時,會停止而不進行審查(v2.1.329)。527
/ship [level] [pr] 開啟 pull request、審查,然後持續看顧 內建 skill,文件有記載,但版本說明未提及:在可行時提交並推送您的工作,若分支尚無 pull request 就開啟一個 GitHub pull request,以 /code-review 審查變更,然後持續從此工作階段檢查該 pull request,並針對失敗的檢查、合併衝突與審查意見推送修正。合併由您自行完成;/ship stop 會結束看顧。僅限本機 clone 中的終端機 CLI,需要 v2.1.330 或更新版本,GitHub 儲存庫還需要 GitHub CLI 2.63 或更新版本;在 bypassPermissions 模式下或原生 Windows 上不會啟動看顧。CLAUDE_CODE_DISABLE_SHIP=1 可將其關閉(v2.1.331+)536
/steward [pr] 看顧已開啟的 pull request,但不審查 /ship 的看顧部分:Claude 會針對您已開啟的 pull request 處理審查意見與失敗的檢查;/steward stop 會結束看顧(v2.1.330 或更新版本)536
/ship:review、/ship:steward 別名 /ship:review 是 /code-review 的別名,/ship:steward 則是 /steward 的別名。指令參考文件也將這兩個看顧指令寫成帶有選用的 +bot 引數:/ship [level] [pr] [+bot] 與 /steward [pr] [+bot]556
/whiteboard [brief] 建立白板 artifact 內建 skill:依您的需求說明,以 Claude Whiteboards artifact 的形式建立新的白板。需要 v2.1.323 或更新版本、可使用 artifacts 的工作階段,以及可使用 Whiteboards 範本的帳號;若您的組織關閉了該範本,此指令就不會出現556
/motion [brief] 建立動畫 artifact 內建 skill:依您的需求說明,以 Claude Motion artifact 的形式建立新的動畫。僅限桌面應用程式中的本機工作階段與 Anthropic 託管的雲端工作階段,不適用於終端機或 IDE 擴充功能;需要 v2.1.323 或更新版本,以及可使用 Motion 範本的 Team 或 Enterprise 帳號556
/claude-approvals [what to change or explain] 處理 Claude Approvals 政策 內建 skill:編輯、說明或調校 Claude Approvals 政策檔案或分類器。需要 v2.1.331 或更新版本,以及擷取功能旗標556
/simplify [target] 會套用修正的清理審查 四個審查 agents 平行執行,涵蓋現有輔助函式的重複使用、簡化、效率與抽象層級,然後套用修正。它不會尋找正確性錯誤;這類錯誤請使用 /code-review。自 v2.1.154 起僅做清理334
/deep-research 多來源研究報告 內建工作流程:展開多項網頁搜尋、交叉核對來源,並撰寫附引用的報告334。截至v2.1.218僅在您呼叫時才會啟動:Claude 不再自行啟動,與 v2.1.215 套用於 /verify 和 /code-review 的明確呼叫規則相同。192
/batch <instruction> 在整個程式碼庫中平行進行變更 內建 skill(v2.1.63+):研究程式碼庫,將工作拆分為 5 至 30 個獨立單元,並提出計畫。您核准後,每個單元由一個背景 subagent 在隔離的 worktree 中處理,實作該單元、執行測試,並開啟 PR 或回報結果。需要 git 儲存庫,或會建立 worktree 的 WorktreeCreate hook(在 git 儲存庫之外需要 v2.1.281 或更新版本)。範例:/batch migrate src/ from JavaScript to TypeScript102553
/team-onboarding 產生團隊成員入門指南 根據您本機的 CC 使用模式建立入門指南(v2.1.101+)141
/effort 設定 effort 等級 將模型 effort 設為 low/medium/high/xhigh/max 或 auto;/effort status 會印出目前的等級;max 僅限本次工作階段。預設值依模型而定:Fable 5.2、Opus 5.5、Sonnet 5.5 與 Haiku 5.5 為 medium,Opus 4.7 為 xhigh,其他模型為 high331334;/effort ultracode 會讓 Claude 編排動態工作流程;這是獨立的切換開關,會維持目前的 effort 等級(v2.1.284+;--effort ultracode 旗標以 xhigh 起始);截至 v2.1.251,預設 effort 等級會依模型個別儲存,切換模型時各模型保留自己的設定;s 可做僅限本次工作階段的選擇(與 /model 一致),而 --effort 旗標僅作用於本次工作階段(v2.1.257+)138244203208225
/loop [interval] [prompt] 週期性任務 /loop 5m /foo 會依固定間隔執行提示;省略間隔時由 Claude 自行決定迴圈的節奏,省略提示時則執行內建的維護提示或您的 loop.md;/proactive 為其別名334。適合輪詢部署狀態、看顧 PR 或定期檢查(v2.1.71+);截至 v2.1.243,/usage 會顯示 Loops 細項(每個迴圈的執行次數、token 用量、上次執行時間),方便找出失控的迴圈,而連續的無動作喚醒會摺疊成終端機中的單一行;v2.1.248 讓自行定步的動態模式與無提示的自主預設模式隨時可用,包括在 Bedrock/Vertex/Foundry 上110247203;自 v2.1.319 起,自行定步的迴圈會在某個回合結束而未重新排程時終止(CLAUDE_CODE_LOOP_KEEPALIVE=1 會多執行一次迭代),而雲端工作階段中的 /loop 確認訊息會註明計時器會隨其容器一同停止283;您未取消的迴圈或週期性任務會在啟動 30 天後結束(v2.1.330+;在較早版本建立的任務會在 7 天後結束),且自 v2.1.325 起,迴圈在執行宣告了 allowed-tools 或 hooks 的 skill 之前會先詢問,除非 Skill(name) 已在 permissions.allow 中527531
/schedule 建立或管理雲端排程任務(前身為 routine) 可用對話方式,或直接內嵌:/schedule daily PR review at 9am、/schedule clean up feature flag in one week;/schedule update 可設定 cron 運算式;/routines 是其別名。需要已啟用雲端工作階段的 claude.ai 登入,因此在使用 API 金鑰或雲端供應商登入時、在雲端工作階段內,以及 Owner 已關閉排程任務時,此指令會隱藏;從 CLI 新增 GitHub 觸發器需要 v2.1.225 或更新版本。自 v2.1.332 起,此指令、權限提示與 /loop 的雲端選項,在先前寫「routine」或「cloud schedule」(雲端排程)之處,改寫「cloud scheduled task」(雲端排程任務)。請參閱 Claude Code on the Web 下的 Cloud Scheduled Tasks279527
/plan [description] 進入規劃模式 從提示框進入規劃模式;附上描述時會立即開始處理該任務,例如 /plan fix the auth bug334
/ultraplan 已移除 請改用規劃模式334
/btw [question] 旁支提問 詢問與目前工作階段相關的問題,而不會加入對話;不帶問題時會顯示您最近一次的旁支提問334
/recap 一行工作階段摘要 依要求為目前的工作階段產生一行摘要334
/focus 切換專注檢視 只顯示您的最後一則提示、附有編輯 diffstat 的一行工具呼叫摘要,以及最終回應;僅限全螢幕渲染334
/tui [mode] 設定終端機 UI 渲染器 fullscreen(無閃爍的替代畫面渲染器)或 classic,即 v2.1.327 為非全螢幕渲染器取的名稱(default 仍可使用);會在保留對話的情況下重新啟動,不帶引數時會印出目前使用的渲染器334527
/autocompact [size] 設定自動壓縮視窗 上下文視窗要滿到什麼程度,Claude Code 才會自行壓縮:可設為 500k 之類的大小,或設為 auto 以使用針對您的模型調整的視窗;儲存至使用者設定(v2.1.221+)334
/keybindings 開啟您的快捷鍵檔案 建立或開啟 ~/.claude/keybindings.json334
/help 顯示說明與可用指令 334
/exit 結束 CLI 在已附加的背景工作階段中會分離,工作階段會繼續執行;/quit 為其別名334
/debug [description] 從除錯日誌進行疑難排解 內建 skill:從此刻起為工作階段開啟除錯記錄,並讀取工作階段的除錯日誌;描述問題可讓分析更聚焦334
/insights 用量報告 針對您在這台機器上的近期工作階段產生 HTML 報告:專案、您使用 Claude Code 的方式、哪些地方出錯、值得嘗試的功能。雲端工作階段中無法使用334
/upgrade 開啟升級頁面 在瀏覽器中開啟切換至更高方案層級的頁面334
/review /code-review 的別名 審查目前的 diff,或您傳入的 PR 編號、分支或路徑(/review 1234),可使用相同的 effort 等級與旗標334
/ultrareview [PR or branch] 深度雲端審查 /code-review ultra 的別名,後者為建議寫法:在雲端沙箱中進行多 agent 審查。Pro、Max 與 Ultra 可免費執行 3 次,之後使用用量額度334
/verify 檢查變更是否有效 內建 skill:建置專案的應用程式、執行並觀察結果,而不是依賴測試或型別檢查334
/run 啟動並操作您的應用程式 內建 skill:啟動專案的應用程式,實際看到變更運作,而不只是通過測試334
/workflows 工作流程進度檢視 監看、暫停、恢復或儲存執行中與已完成的工作流程334
/background [prompt] 將工作階段分離到背景 釋放終端機,並讓工作階段以背景 agent 的形式繼續執行,可用 claude agents 監看;/bg 為其別名。若要改為複製對話,請使用 /fork334
/stop 停止背景工作階段 停止您所附加的背景工作階段;逐字稿與任何 worktree 都會保留。若要分離而不停止,請使用 /exit334
/list-agents 列出 Claude 可傳送訊息的 agents Subagents、隊友以及您的其他 Claude Code 工作階段,並列出每個對象要使用的名稱;/peers 為其別名。僅在已啟用跨工作階段訊息傳遞時可用334
/remote-control 將此工作階段提供給 Remote Control 讓工作階段可從 claude.ai 使用;需要 claude.ai 訂閱。/rc 為其別名334
/teleport 將雲端工作階段拉進此終端機 開啟選擇器,然後擷取分支與對話;/tp 為其別名。需要 claude.ai 訂閱334
/desktop 在桌面應用程式中繼續 將目前的工作階段移至 Claude Code Desktop 應用程式(macOS 或 x64 Windows,需 Claude 訂閱);/app 為其別名334
/mobile 取得行動版應用程式 顯示 Claude 行動版應用程式的 QR code;/ios 與 /android 為其別名334
/autofix-pr [prompt] 修正您 PR 的雲端工作階段 監看目前分支的 PR,並在 CI 失敗或審查者留言時推送修正;需要 gh CLI 以及雲端工作階段的使用權限334
/artifacts 列出您的 artifacts 列出您擁有或與您共用的 artifacts;可將其附加到工作階段、在瀏覽器中開啟,或複製其連結334
/chrome 設定 Claude in Chrome 334
/install-github-app 安裝 Claude GitHub App 引導您選擇儲存庫,並可選擇設定 GitHub Actions 工作流程與密鑰;僅限 github.com 儲存庫334
/install-slack-app 安裝 Claude Slack 應用程式 開啟瀏覽器以完成 OAuth 流程334
/reload-skills 重新掃描 skills 與指令 讓工作階段期間在磁碟上新增或變更的 skills 不必重新啟動即可使用,並回報新增或移除了多少項334
/design-login 為 /design-sync 登入 以您的 claude.ai 帳號授權存取設計系統,適用於最遲將於2026年12月14日關閉的獨立 claude.ai/design 網站334
/design-sync [hint] 上傳您的設計系統 內建 skill:轉換您儲存庫中的 React 設計系統並上傳至 Claude Design;其目標是最遲將於2026年12月14日關閉的獨立 claude.ai/design 網站334
/setup-bedrock Amazon Bedrock 設定精靈 設定驗證、區域與模型固定設定;在設定 CLAUDE_CODE_USE_BEDROCK=1 之前不會出現在選單中,因此請完整輸入334
/setup-vertex Google Cloud Agent Platform 設定精靈 設定驗證、專案、區域與模型固定設定;在設定 CLAUDE_CODE_USE_VERTEX=1 之前不會出現在選單中334
/privacy-settings 檢視與更新隱私權設定 僅限 Pro、Max 與 Ultra 訂閱者334
/vim 已於 v2.1.92 移除 若要在 Vim 與 Normal 編輯模式之間切換,請使用 /config 及其 Editor mode(編輯器模式)列334
/buddy 已移除(2026年4月1日的功能) CHANGELOG 以「/buddy 在4月1日登場」介紹它:一隻由您孵化、會看著您寫程式的小生物。2026年11月25日讀取的指令參考文件中未列出此指令334553

建立自訂指令

在 .claude/commands/(專案層級)或 ~/.claude/commands/(個人層級)建立可重複使用的指令:

---
description: Security-focused code review
allowed-tools: Read, Grep, Glob
disallowed-tools: Bash, Edit, Write
model: sonnet
---

Review this code for security vulnerabilities:

1. Injection attacks (SQL, command, XSS)
2. Authentication and authorization flaws
3. Sensitive data exposure
4. Insecure dependencies

Focus on actionable findings with specific line references.

儲存為 .claude/commands/sec-review.md,再以 /sec-review 呼叫。(若檔案命名為 security-review.md,在本機終端機工作階段中會取代內建的 /security-review。)allowed-tools 只會預先核准這些讀取工具;真正讓這項審查無法執行 Bash 或編輯檔案的是 disallowed-tools。330

指令 Frontmatter 選項

---
description: Brief description for /help
allowed-tools: Read, Edit, Bash(npm:*)
model: opus
argument-hint: [arg1] [arg2]
disable-model-invocation: false
---
選項 用途
description 說明文字與自動委派比對
allowed-tools 在呼叫此指令的那個回合中,Claude 可不經權限提示就使用的工具。它不會限制其他工具330
disallowed-tools 指令啟用期間從 Claude 可用工具中移除的工具,效力持續到您的下一則訊息。要限制工具請使用這個欄位330
model 覆寫此指令使用的模型。在互動式工作階段中生效(v2.1.259+);在 auto 模式下,若 frontmatter 指定的模型是該工作階段無法使用的,將不再以該模型執行該回合:工作階段會維持原本的模型208
argument-hint 說明預期的引數
disable-model-invocation 設為 true 可阻止 Claude 自行呼叫此指令;您仍可自行輸入330

引數插值

所有引數合併為單一字串:

---
description: Fix GitHub issue
argument-hint: [issue-number]
---

Fix GitHub issue #$ARGUMENTS following our coding standards.

用法:/fix-issue 123

編號引數:

---
description: Create component
argument-hint: [name] [type]
---

Create a new $1 component named $0 in src/components/.

用法:/create-component Button functional

$0 是第一個引數,$1 是第二個引數($N 是 $ARGUMENTS[N] 的簡寫)。330

內嵌 Bash 執行

在指令提示詞中執行 bash 指令:

---
description: Git status summary
allowed-tools: Bash(git:*)
---

Current branch: !`git branch --show-current`
Recent commits: !`git log --oneline -5`
Changed files: !`git status --short`

Summarize the current state of this repository.

檔案參照

在指令中引入檔案內容:

---
description: Compare implementations
---

Compare these files:
@src/v1/handler.ts
@src/v2/handler.ts

Which implementation is more maintainable?

指令命名空間

以子資料夾整理指令:

.claude/commands/
├── backend/
│   ├── test.md
│   └── deploy.md
├── frontend/
│   ├── test.md
│   └── build.md
└── review.md

子目錄中的指令會以子目錄名稱作為前綴:.claude/commands/backend/test.md 是 /backend:test,.claude/commands/frontend/test.md 則是 /frontend:test。330


參考資料


  1. Claude Code CHANGELOG,2.0.74 章節,擷取於2026年11月11日:「Added LSP (Language Server Protocol) tool for code intelligence features like go-to-definition, find references, and hover documentation」;「Added /terminal-setup support for Kitty, Alacritty, Zed, and Warp terminals」。 ↩

  2. GitHub Releases。v2.1.63(2月28日):內建的 /simplify 與 /batch 斜線指令、worktree 共用的專案設定與自動記憶、ENABLE_CLAUDEAI_MCP_SERVERS=false 停用選項、HTTP hooks 的 type: http 處理器、/copy 的「一律複製完整回應」選項、VSCode 工作階段重新命名/移除、/clear 重設 skill 快取、多項記憶體洩漏修正、REPL bridge 競態條件修正。2026年2月28日。 ↩↩

  3. Claude Code CHANGELOG,擷取於2026年11月11日。2.1.68:「Opus 4.6 now defaults to medium effort for Max and Team subscribers.」;「Re-introduced the “ultrathink” keyword to enable high effort for the next turn」;「Removed Opus 4 and 4.1 from Claude Code on the first-party API」。2.1.70:「Fixed /security-review command failing with unknown option merge-base on older git versions」;VS Code 方面為「Added spark icon in VS Code activity bar that lists all Claude Code sessions, with sessions opening as full editors」、「Added full markdown document view for plans in VS Code, with support for adding comments to provide feedback」與「Added native MCP server management dialog」。 ↩

  4. GitHub Releases。v2.1.69:/claude-api skill、InstructionsLoaded hook 事件、hook 事件中的 agent_id/agent_type/worktree、${CLAUDE_SKILL_DIR}、/reload-plugins、sandbox.enableWeakerNetworkIsolation、includeGitInstructions 設定、remote-control 自訂名稱、Voice STT 新增 10 種語言(共 20 種)、effort 層級顯示、Ctrl+U 退出 bash、數字鍵盤支援、Sonnet 4.5→4.6 自動遷移。70 多項錯誤修正。2026年3月5日。 ↩↩

  5. Claude Code rolls out a voice mode capability,TechCrunch,2026年3月3日,擷取於2026年11月11日:「語音模式現已開放給約 5% 的使用者,並計畫在未來幾週擴大推出」;「若要啟用,請輸入 /voice 將其開啟」。Anthropic adding voice mode to Claude Code in gradual rollout,9to5Mac,2026年3月3日,同次擷取:「在 Claude Code 中,按住空白鍵說話即可啟用語音模式,放開後即送出輸入」。 ↩

  6. Claude Code CHANGELOG,2.1.71 章節,擷取於2026年11月11日:「Added /loop command to run a prompt or slash command on a recurring interval (e.g. /loop 5m check the deploy)」;「Added voice:pushToTalk keybinding to make the voice activation key rebindable in keybindings.json (default: space)」;「Added fmt, comm, cmp, numfmt, expr, test, printf, getconf, seq, tsort, and pr to the bash auto-approval allowlist」;「Fixed stdin freeze in long-running sessions where keystrokes stop being processed but the process stays alive」。 ↩

  7. GitHub Releases。v2.1.72:搭配 ANTHROPIC_BASE_URL 的工具搜尋、/copy 中以 w 鍵寫入檔案、/plan 描述引數、ExitWorktree 工具、CLAUDE_CODE_DISABLE_CRON、擴充的 bash 允許清單(lsof/pgrep/tput/ss/fd/fdfind)、Agent 工具恢復 model 參數、簡化的 effort 符號(○/◐/●)、/config 導覽改善、bundle 大小減少 510KB、VSCode URI 處理器。2026年3月10日。 ↩

  8. GitHub Releases。v2.1.73:用於自訂供應商模型 ID(Bedrock/Vertex/Foundry)的 modelOverrides 設定。/output-style 已棄用(改用 /config)。Bedrock/Vertex/Foundry 上的預設 Opus 改為 4.6。中斷後按上方向鍵可還原提示並倒帶。/effort 可在回應期間使用。SSL 憑證錯誤指引。錯誤修正:CPU 凍結、死結、SessionStart hooks 觸發兩次。2026年3月11日。 ↩

  9. GitHub Releases。v2.1.74:/context 可採取行動的建議。autoMemoryDirectory 設定。--plugin-dir 覆寫行為變更。CLAUDE_CODE_SESSIONEND_HOOKS_TIMEOUT_MS 可設定的逾時。受管理政策強制執行修正(ask 規則被使用者 allow 繞過)。記憶體洩漏修正(串流緩衝區)。RTL 文字算繪修正。MCP OAuth 修正。2026年3月12日。 ↩

  10. Claude Code CHANGELOG,2.1.75 章節(2026年3月13日),擷取於2026年11月11日:「Added 1M context window for Opus 4.6 by default for Max, Team, and Enterprise plans (previously required extra usage)」;「Added /color command for all users to set a prompt-bar color for your session」;「Added session name display on the prompt bar when using /rename」;「Added last-modified timestamps to memory files, helping Claude reason about which memories are fresh vs. stale」;「Added hook source display (settings/plugin/skill) in permission prompts when a hook requires confirmation」;「Breaking change: Removed deprecated Windows managed settings fallback at C:\ProgramData\ClaudeCode\managed-settings.json」。 ↩

  11. GitHub CHANGELOG。v2.1.77:Opus 4.6 的預設最大輸出 token 提高至 64K,Opus 4.6 與 Sonnet 4.6 的上限提高至 128K。allowRead 沙箱檔案系統設定。/copy N 複製倒數第 N 則回應。/fork 更名為 /branch。移除 Agent 工具的 resume 參數(改用 SendMessage)。SendMessage 會自動恢復已停止的代理。工作階段依計畫自動命名。背景 bash 任務在 5GB 時終止。claude plugin validate 檢查 frontmatter 與 hooks。macOS 啟動快約 60ms,--resume 快 45% 且記憶體減少約 100-150MB。安全性:PreToolUse allow 不再繞過 deny 規則。25 項以上錯誤修正。2026年3月17日。 ↩↩

  12. GitHub Releases v2.1.90。v2.1.90:/powerup 互動式課程、auto mode 尊重使用者明確設定的界線、--resume 提示快取退化修正、PreToolUse JSON stdout exit-2 修正、PostToolUse 儲存時格式化修正、PowerShell 安全強化(4 種向量)、SSE 線性時間串流、逐字稿寫入效能、DNS 快取隱私。2026年4月1日。 ↩

  13. GitHub Releases v2.1.92。v2.1.92:forceRemoteSettingsRefresh 失敗即封閉政策、互動式 Bedrock 設定精靈、依模型與快取命中區分的 /cost 明細、/release-notes 互動式選擇器、Remote Control 主機名稱前綴、提示快取到期的頁尾提示、移除 /tag 與 /vim、Linux 沙箱 apply-seccomp 輔助程式、Write 工具處理大型檔案的 diff 快 60%。2026年4月4日。 ↩↩

  14. GitHub Releases v2.1.94。v2.1.94:透過 Mantle 使用 Bedrock(CLAUDE_CODE_USE_MANTLE=1),API/Bedrock/Vertex/Foundry/Team/Enterprise 的預設努力等級由 medium 改為 high,精簡版 Slack MCP 標頭,UserPromptSubmit hooks 的 hookSpecificOutput.sessionTitle,plugin skill 名稱取自 frontmatter,429 速率限制訊息顯示,macOS keychain 登入修正,plugin hook 修正,捲動緩衝區/渲染修正。2026年4月7日。v2.1.96(4月8日):Bedrock 驗證迴歸問題的緊急修正。 ↩

  15. GitHub Releases v2.1.101。v2.1.101:/team-onboarding 指令,預設信任作業系統的 CA 憑證存放區(可用 CLAUDE_CODE_CERT_STORE=bundled 覆寫),/ultraplan 自動建立雲端環境,改進的 brief 模式重試,改進的 focus 模式摘要,速率限制重試會顯示觸及的是哪個限制及重設時間,對無法辨識的 hook 事件提供設定容錯。2026年4月10日。 ↩

  16. Claude Code CHANGELOG,綜合參考 v2.1.116(2026年4月20日)、v2.1.117(2026年4月22日)、v2.1.118(2026年4月23日)與 v2.1.119(2026年4月23日)。v2.1.116:/resume 在 40MB 以上的工作階段快了 67%;多個 stdio 伺服器時 MCP 啟動更快(resources/templates/list 延後至首次 @ 提及時才載入);內嵌思考旋轉指示器(「still thinking」、「thinking more」、「almost done thinking」);/config 搜尋現在也會比對選項值;/doctor 可在回合進行中開啟;plugin 自動安裝缺少的相依套件;Bash 工具會顯示 gh GitHub API 速率限制提示;設定的 Usage 分頁立即顯示,且在用量端點受速率限制時仍可運作;透過 --agent 以主執行緒 agent 執行時,agent frontmatter 的 hooks: 會觸發;安全性修正:沙箱自動允許不再繞過針對 /、$HOME 或其他關鍵根目錄的 rm/rmdir 危險路徑檢查。(v2.1.116 所還原的 4月16日系統提示冗長度限制,記載於 150 的事後檢討中,而非 v2.1.116 的版本說明。)

    v2.1.117:外部建置可用 CLAUDE_CODE_FORK_SUBAGENT=1 啟用分叉 subagents;透過 --agent 的主執行緒 agent 工作階段會載入 agent frontmatter 的 mcpServers;即使專案釘選了不同模型,/model 的選擇仍會在重新啟動後保留,且啟動標頭會顯示釘選來源;/resume 提供過期工作階段摘要;預設並行啟動 MCP(本機與 claude.ai);plugin 安裝/更新/重新整理/自動更新時強制執行 blockedMarketplaces/strictKnownMarketplaces;Advisor Tool 實驗性功能,附有標籤、深入了解連結,以及啟用時的啟動通知;cleanupPeriodDays 保留期清理涵蓋 ~/.claude/tasks/、~/.claude/shell-snapshots/、~/.claude/backups/;OTel user_prompt 事件包含 command_name/command_source(自訂與 MCP 名稱預設遮蔽,除非設定 OTEL_LOG_TOOL_DETAILS=1);cost.usage/token.usage/api_request/api_error 包含 effort 屬性;原生 macOS/Linux 建置以內嵌的 bfs/ugrep 經由 Bash 工具取代 Glob/Grep;Pro/Max 在 Sonnet 4.6 與 Opus 4.6 上的預設 effort 現為 high(原為 medium);修正:Opus 4.7 工作階段原本以 200K 視窗而非原生 1M 計算 /context,導致過早自動壓縮。v2.1.118:vim 視覺模式(v)與視覺行模式(V),支援選取、運算子與視覺回饋;/cost 與 /stats 合併為 /usage(保留輸入捷徑);透過 /theme 或 ~/.claude/themes/*.json 使用具名主題(plugins 可隨附 themes/ 目錄);hooks 可透過 type: "mcp_tool" 直接呼叫 MCP 工具;DISABLE_UPDATES 環境變數封鎖所有更新路徑,包括手動的 claude update(比 DISABLE_AUTOUPDATER 更嚴格);WSL 透過 wslInheritsWindowsSettings 原則繼承 Windows 端的受管設定;autoMode.allow/soft_deny/environment 中的 $defaults 哨兵值可在內建清單之外加入自訂規則;「不再詢問」的 auto mode 選擇加入;claude plugin tag 建立發行 git 標籤並驗證版本。

    v2.1.119:/config 設定(主題、編輯器模式、詳細輸出)會保存至 ~/.claude/settings.json,並遵循專案/本機/原則的優先順序;prUrlTemplate 設定可讓頁尾的 PR 標記指向自訂的程式碼審查 URL,而非 github.com;CLAUDE_CODE_HIDE_CWD 在啟動標誌中隱藏工作目錄;--from-pr 接受 GitLab MR、Bitbucket PR 與 GitHub Enterprise PR 的 URL;--print 遵循 agent 的 tools:/disallowedTools: frontmatter;--agent <name> 對內建 agents 遵循 permissionMode;PowerShell 工具命令在權限模式下自動核准(與 Bash 一致);PostToolUse/PostToolUseFailure hook 輸入包含 duration_ms(工具執行時間,不含權限提示與 PreToolUse hooks);subagent 與 SDK 的 MCP 伺服器重新設定會並行連線伺服器;安全性:blockedMarketplaces 正確強制執行 hostPattern 與 pathPattern 項目;OTel tool_result 與 tool_decision 事件包含 tool_use_id;tool_result 包含 tool_input_size_bytes;狀態列 stdin JSON 包含 effort.level 與 thinking.enabled;Vertex AI 上預設停用工具搜尋(以 ENABLE_TOOL_SEARCH 選擇加入)。 ↩↩

  17. 近期Claude Code品質問題報告的最新說明。Anthropic工程事後檢討,2026年4月23日。涵蓋三項各自獨立的品質退化問題,均於4月20日(v2.1.116)解決,並於4月23日為所有訂閱者重設用量上限:(1)推理強度預設值:2026年3月4日由 high 改為 medium,以減少讓 UI 看似凍結的極長延遲;4月7日回復,因為使用者表示寧可預設使用較高的智慧,並在處理簡單任務時自行選擇較低的 effort。影響Sonnet 4.6與Opus 4.6。(2)Prompt cache 思考清除錯誤:一項原本旨在對閒置超過一小時的工作階段清除一次較舊思考內容的變更,卻變成在該工作階段其後的每一輪都清除,導致健忘、重複,以及用量上限消耗加快。影響期間為3月26日至4月10日,於v2.1.101修復。影響Sonnet 4.6與Opus 4.6。(3)系統提示詞的簡潔性限制:4月16日加入,用以處理 Opus 4.7 過於多話的問題;該文章指出「其中一項評估顯示 Opus 4.6 與 4.7 都下滑了 3%」以及「這影響了 Sonnet 4.6、Opus 4.6 與 Opus 4.7」;於4月20日在 v2.1.116 中回復。Anthropic 聲明的改善措施:讓更多內部員工使用與公開版完全相同的建置、改進其內部使用的 Code Review 工具、更嚴格管控系統提示的變更並為每項變更執行一套廣泛的逐模型評估,以及對任何可能犧牲智慧表現的變更採取「浸泡測試期、更廣泛的評估套件與漸進式推出」。擷取於2026年11月11日。 

  18. Claude Code版本說明,為v2.1.121(2026年4月28日,00:31 UTC)與v2.1.122(2026年4月28日,22:05 UTC)的綜合參考。v2.1.121:alwaysLoad MCP伺服器設定選項(略過工具搜尋延遲載入);MCP啟動時自動重試3次;claude plugin prune與--prune連鎖清理;/skills支援輸入即篩選;PostToolUse的hookSpecificOutput.updatedToolOutput從僅限MCP擴展至所有工具;.claude/skills/、.claude/agents/、.claude/commands/不再觸發--dangerously-skip-permissions提示;Vertex AI以X.509憑證為基礎的Workload Identity Federation(mTLS ADC);SDK mcp_authenticate redirectUri;OTel在LLM請求span中新增stop_reason、gen_ai.response.finish_reasons與user_system_prompt(須透過OTEL_LOG_USER_PROMPTS啟用);/terminal-setup啟用iTerm2剪貼簿存取,讓/copy可在tmux中使用;分頁標題遵循language設定;CLAUDE_CODE_FORK_SUBAGENT=1擴展至非互動式的claude -p;升級後啟動更快(版本說明啟動畫面移除了Recent Activity面板);claude.ai連接器針對相同上游URL去除重複。v2.1.122:ANTHROPIC_BEDROCK_SERVICE_TIER環境變數(default/flex/priority)以X-Amzn-Bedrock-Service-Tier傳送;/resume可依PR URL搜尋,涵蓋GitHub、GHE、GitLab、Bitbucket;/mcp顯示隱藏的連接器並附上移除重複項的提示,同時釐清瀏覽器授權後的未授權訊息;OTel新增claude_code.at_mention記錄事件,用於@提及的解析;api_request/api_error的數值屬性以數字輸出(先前為字串)。兩個版本中的重要修正:/usage約2GB的記憶體洩漏、圖片密集工作階段的RSS成長達數GB、--resume略過損毀的逐字稿行並修正大型外部建置工作階段當機、CWD被刪除或移動時的Bash復原、Bedrock在application inference profile上的thinking修正、Vertex/Bedrock在結構化輸出時對output_config額外輸入的拒絕、ToolSearch遺漏工作階段開始後才連線的非阻塞MCP工具、較新模型的圖片縮放上限由2576改為2000 px、bash模式中的!exit/!quit不再終止CLI、tmux/GNOME/Windows Terminal/Konsole上的回捲重複,以及格式錯誤的hooks項目不再使整個settings.json失效。 ↩

  19. Claude Code v2.1.141 版本說明。2026年5月13日。新增 hook JSON 輸出中的 terminalSequence,用於桌面通知、視窗標題與提示音;CLAUDE_CODE_PLUGIN_PREFER_HTTPS,可改以 HTTPS 複製 plugin 來源;ANTHROPIC_WORKSPACE_ID,用於工作負載身分聯合的工作區範圍設定;claude agents --cwd <path>,可依目錄篩選 Agent View;以及 /feedback 可附加最近 24 小時或 7 天工作階段的選項。擷取於2026年5月14日。 ↩

  20. Claude Code v2.1.147 版本說明 與 Claude Code CHANGELOG。2026年5月21日。新增預設關閉的 Workflow 工具,用於確定性的多代理協調(CLAUDE_CODE_WORKFLOWS=1)、可釘選的 Agent View 背景工作階段,以及取代 /simplify 的 /code-review [effort] --comment。此版本強化了 REPL 與 Workflow 沙箱;改善自動更新程式的診斷、大型 diff 的呈現與提示歷史的去重;並修正企業登入限制、PowerShell 輸出與規則、MCP 分頁的 resources/list、resources/templates/list 與 prompts/list、Agent View 的 CJK 列呈現、貼上文字的傳遞、plugin 元件計數、hook 條件比對、headless/SDK 模式下的未知斜線指令,以及圖片被移除後的迴圈問題。擷取於2026年5月21日。2026年11月11日重新讀取:v2.1.147 的版本說明與 CHANGELOG 章節都沒有任何一行提及工作流程,CLAUDE_CODE_WORKFLOWS 也既不在 CHANGELOG 中,也不在環境變數參考文件中;關於目前如何開啟與關閉工作流程,請參閱 474。 ↩

  21. Claude Code v2.1.174 版本說明、Claude Code v2.1.175 版本說明、Claude Code v2.1.176 版本說明 與 Claude Code Changelog(正式版)。2026年6月12日。v2.1.174:wheelScrollAccelerationEnabled 設定(在全螢幕模式下停用滑鼠滾輪捲動加速);/model 選擇器會將 Default 實際解析到的模型系列獨立顯示為一列(Max/Team Premium/Enterprise 與隨用隨付 API 為 Opus,Pro/Team 為 Sonnet);當 ANTHROPIC_DEFAULT_SONNET_MODEL 釘選了不同的 Sonnet 時,/model 選擇器不再顯示寫死的 Sonnet 標籤;VSCode 的「Account & usage」對話框(/usage)新增歸因資訊,顯示快取未命中、長脈絡、subagents,以及過去 24 小時或 7 天內依 skill/agent/plugin/MCP 的細項;修正 Bedrock GovCloud(us-gov-*)推論設定檔前綴被推導為 global 而非 us-gov、背景工作階段繼承其他工作階段的 ANTHROPIC_* 供應商環境變數、git commit 共同作者的模型名稱歸屬、/advisor 預先選取被封鎖的 advisor 模型、skill 熱重載重新傳送整份清單,以及企業用量計費帳戶出現 Fable 5「consuming usage credits」橫幅等問題。

    v2.1.175:enforceAvailableModels 受管設定:啟用後,availableModels 允許清單也會約束 Default 模型(若 Default 解析到不允許的模型,會改用第一個允許的模型),且使用者/專案設定再也無法擴大受管的 availableModels 清單。v2.1.176:工作階段標題會以您對話所用的語言產生(設定 language 可釘選特定語言);footerLinksRegexes 設定可在頁尾列顯示以正規表示式比對的連結徽章(使用者或受管設定);來自 awsCredentialExport 的 Bedrock 憑證會快取至其 Expiration 為止,而非固定一小時;availableModels 的強制執行已強化,別名選擇無法再透過 ANTHROPIC_DEFAULT_*_MODEL 轉向被封鎖的模型,且 /fast 會拒絕切換到允許清單之外的模型;對於沒有 Opus 4.8 的組織,auto 模式會從 Fable 5 退回到可用的最佳 Opus;針對 Read/Edit/Write 工具路徑的 hook if 條件(Edit(src/**)、Read(~/.ssh/**)、Read(.env))現在可正確比對;修正 Linux 沙箱在設定檔為符號連結時的啟動問題;/copy 與滑鼠選取複製可在透過 SSH 連線的 tmux 中送達系統剪貼簿;/cd 與 worktree 切換不再回報前一個目錄的 git 分支;另有多項 Remote Control、claude agents 與背景工作階段的修正。擷取於2026年6月15日。 ↩

  22. Claude Code v2.1.206 版本說明。2026年7月。v2.1.206: /login 支援透過 Anthropic 營運的公開閘道端點進行驗證;/commit-push-pr 自動允許 git push 至儲存庫設定的推送遠端(若有設定則為 remote.pushDefault,否則為唯一的遠端),而非僅限 origin。擷取於2026年7月17日。 ↩↩

  23. Claude Code v2.1.212 版本說明。2026年7月。v2.1.212: /fork 現在會將對話複製到一個新的背景工作階段,並在 claude agents 中擁有自己的一列,先前的工作階段內分支行為則改名為 /subtask;新增 claude auto-mode reset 子命令,可搭配 --yes 略過確認;每個工作階段的預算:WebSearch 呼叫與 subagent 產生次數各預設為每個工作階段 200 次,分別透過 CLAUDE_CODE_MAX_WEB_SEARCHES_PER_SESSION 與 CLAUDE_CODE_MAX_SUBAGENTS_PER_SESSION 調整,/clear 會重設 subagent 預算;執行超過 2 分鐘的 MCP 工具呼叫會自動移至背景,門檻可透過 CLAUDE_CODE_MCP_AUTO_BACKGROUND_MS 設定;Task 工具的 mode 參數已棄用並被忽略,subagent 會繼承父工作階段的權限模式;企業版 forceLoginMethod 設定現在也對 VS Code 擴充功能、SDK、claude setup-token 與 /install-github-app 強制生效(先前僅限終端機)。擷取於2026年7月17日。 ↩↩

  24. Claude Code CHANGELOG,v2.1.215 條目。2026年7月。v2.1.215(單一變更):Claude 不再自行執行 /verify 與 /code-review skills,需要時請以 /verify 或 /code-review 呼叫。擷取於2026年7月21日。 ↩

  25. Claude Code CHANGELOG,v2.1.218 條目。2026年7月。v2.1.218: /code-review 改以背景子代理程式執行,審查工作不再佔據對話內容,堆疊的斜線指令仍是其審查目標;設定 context: fork 的 skills 預設在背景執行,可透過新的 background: false frontmatter 鍵逐一停用;危險 rm、背景 & 與可疑 Windows 路徑檢查不再開啟權限對話框,改由 auto 模式分類器裁決;在 auto 模式下的 plan 模式,對於靜態分析器無法證明為唯讀的 Bash 指令也不再提示;agent frontmatter hooks 須待 agent 檔案所在資料夾本身已接受工作區信任後才會執行;/deep-research 僅在手動呼叫時啟動。另有:左方向鍵捨棄確認,以及 Esc 從 agent 檢視返回;伺服器管理的無害功能/成本切換略過設定核准提示;拒絕含 : 的 agent 名稱;skill 與 plugin frontmatter 的布林值接受 yes/no/on/off/1/0;信任對話框會標明儲存庫根目錄;改善 IDE 互動的沙箱限制;Ctrl+B 背景 shell 上限;Bedrock ARN 支出計量;headless/SDK 工作階段在壓縮後保留 fork 工作階段的沿革;修正 Windows \u 路徑損壞;修正遠端工作階段的殭屍心跳。擷取於2026年7月24日,當時 v2.1.218(發布於 2026-07-22T21:24Z)為 npm latest。(歸屬更正,2026年7月25日:claude mcp list//mcp 顯示 HTTP 狀態與錯誤文字一項,以及 MCP 隱藏空白字元警告,原列於此處的 v2.1.218 之下;原始 changelog 將兩者皆置於 v2.1.219 條目。已移至 193。) ↩↩

  26. Claude Code CHANGELOG,v2.1.219 與 v2.1.220 條目。2026年7月。v2.1.219(7月24日): 新增 Claude Opus 5(claude-opus-5)作為新的預設 Opus 模型,具 1M 脈絡視窗,fast 模式定價為每 MTok $10/$50;新增 sandbox.network.strictAllowlist 設定,讓沙箱指令在不提示的情況下直接拒絕未列入允許清單的主機;新增 DirectoryAdded hook,在 /add-dir 或 SDK 的 register_repo_root 控制請求於工作階段中途登錄新工作目錄後觸發;在 headless stream-json 的 init 事件中新增 mcp_server_errors,列出因設定驗證而略過的 --mcp-config 項目(終端機執行時會印出啟動警告);新增 workflowSizeGuideline 設定鍵,讓建議性的 Dynamic workflow size 準則可由任一設定檔設定,設定後 /config 中對應的列會隱藏;stream-json 新增巢狀子代理程式轉送,設定 --forward-subagent-text 時,深度 2 以上產生的子代理程式也會出現,並以產生它們的 Agent tool_use id 作為鍵;動態工作流程改為預設採用中型規模準則(目標少於 15 個代理程式);將 Opus 4.7 自 fast 模式移除,/fast 現在適用於 Opus 5 與 Opus 4.8;子代理程式現在預設可產生最深達第 3 層的巢狀子代理程式(原為 1);設定 CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH=1 可停用巢狀;更新 claude-api skill,預設改為 Claude Opus 5,並提供自 Opus 4.8 的遷移路徑;伺服器連線失敗時,claude mcp list 與 /mcp 會顯示 HTTP 狀態與錯誤文字,並對含隱藏前導或尾端空白字元的 MCP 設定值提出警告;

    受管理的 MCP 允許清單/拒絕清單中的 ${VAR} 項目改由啟動環境與受管理設定的 env 解析,不再使用設定檔的 env;在執行中工作流程的狀態列加入目前的預設工作流程規模;修正下列問題:claude -p 文字輸出在回合因串流中途的 API 錯誤而中止時遺失已產生的回答、Fable 列顯示過時的「Requires usage credits」標籤、/model 選擇器將合併後的 Opus 列顯示為單純的「Opus」而非「Opus (1M context)」、新版本醒目標示範圍超出最新模型名稱、GNU screen 選取即複製時印出 base64、Remote Control 用戶端在模型切換/重新連線/組織檢查失敗後仍保留過時的 fast 模式狀態、Windows 上的 CLAUDE_CODE_GIT_BASH_PATH 在路徑並非 bash/sh 二進位檔時直接結束或被當作 bash 使用(現在會忽略並顯示警告)、Vim 模式在空白提示下按 ← 無法從 NORMAL 模式返回 agent 檢視,以及螢幕閱讀器模式在每次按鍵時重寫整行輸入;改善「Remote Control is only available via api.anthropic.com」錯誤訊息,使其指出造成此情況的設定,並讓 claude --teleport 在不符時顯示目前 checkout 指向的儲存庫。v2.1.220(7月25日): 僅有錯誤修正與可靠性改善,沒有面向使用者的功能、設定、指令或定價變更。擷取於2026年7月25日。 ↩

  27. Fast mode(研究預覽),Anthropic 平台文件。擷取於2026年7月25日。「Fast 模式以溢價定價,讓 Claude Opus 5 與 Claude Opus 4.8 的每秒輸出 token 數最高提升至 2.5 倍。在請求中設定 speed: "fast" 並附上 fast-mode-2026-02-01 beta 標頭即可啟用。」支援的模型:Claude Opus 5(claude-opus-5)與 Claude Opus 4.8(claude-opus-4-8),每 MTok 輸入 $10 美元、每 MTok 輸出 $50 美元,「以標準費率的倍數計價,涵蓋整個脈絡視窗,包含輸入超過 200k token 的請求」。僅於 Claude API(含 Claude Managed Agents)上提供研究預覽:「不適用於 Amazon Bedrock、Google Cloud 或 Microsoft Foundry」,也不適用於 AWS 上的 Claude Platform、Batch API,或搭配 Priority Tier 承諾的情況。關於 Opus 4.7:「Fast 模式不適用於 Claude Opus 4.7。對 claude-opus-4-7 送出含 speed: "fast" 的請求會回傳錯誤;與 Claude Opus 4.6 不同……這些請求不會退回標準速度。」關於 Opus 4.6:請求「不會回傳錯誤:它們以標準速度執行並按標準費率計費……且回應會回報 usage.speed: "standard"」。權重與行為與標準速度相同;提升之處在於每秒輸出 token 數,而非首個 token 的回應時間。具備專屬速率限制與 anthropic-fast-*-tokens-* 標頭;「在 fast 與標準速度之間切換會使提示快取失效」。 ↩

  28. Claude Code v2.1.223 版本說明,2026年8月6日。新增 "owner/*" 萬用字元項目至 strictKnownMarketplaces 與 blockedMarketplaces;將 /review 設為 /code-review 的別名,並記住上次輸入的工作量等級(/code-review ultra 進行深度雲端審查);擴大 CLAUDE_CODE_DISABLE_1M_CONTEXT 的範圍,讓所有原生 1M 模型透過自動壓縮維持在 200K 並於啟動時顯示警告,另新增 CLAUDE_CODE_DISABLE_UNKNOWN_MODEL_WINDOW_ENFORCEMENT 以處理無法辨識的模型 ID;安全修正涵蓋精心構造命令的 Bash 權限繞過、核准對話框中的不可見 Unicode 命令填充、workflow 指令碼動態 import() 的沙箱逃逸,以及 agent 定義的 bypassPermissions 忽略組織停用政策的問題。擷取於2026年8月6日。 ↩

  29. Claude Code 版本說明 v2.1.239(8月21日)、v2.1.240 與 v2.1.241(8月22日與23日,兩者原文均為「錯誤修正與可靠性改進」),以及2026年8月24日的正式 CHANGELOG.md(最新標題:2.1.241;npm latest 為 2.1.241)。v2.1.239 原文:「成本估算(/cost、狀態列、--max-budget-usd)現在納入資料駐留工作區的 1.1 倍美國限定推論加價」;「新增 /claude-api upgrade,可將 Python 專案從 anthropic 0.x 遷移至 1.x」;「Windows:跨工作階段訊息現已可用」;plugin「現在顯示為 name@synced … 且絕不會覆蓋您已安裝的同名 plugin」;「ListAgents 現在會告知工作階段其自身名稱」;readline 字詞按鍵「Alt+F 與 Ctrl/Option+→ 停在字詞結尾,Alt+D 刪除至該處(Ctrl+Y 可貼回)」。/design 與 Remote Control 的狀態出自第 34 週摘要:「/design skill 將 Claude Design 的畫板工作流程帶入 CLI 與 Claude Code Desktop,建構於 artifacts 之上 … 適用於 Pro、Max、Team 與 Enterprise。需要 v2.1.233 或更新版本」;「Remote Control 也已結束研究預覽階段。」兩者均於2026年8月24日直接擷取。 ↩

  30. Claude Code CHANGELOG,2.1.248、2.1.250 與 2.1.251 各節,擷取於2026年8月30日。npm 於2026年8月27日 20:35 UTC 發布 2.1.248,同日 22:27 UTC 發布 2.1.250(其章節內容僅為逐字的「Bug fixes and reliability improvements」),並於2026年8月28日 15:34 UTC 發布 2.1.251(dist-tag latest:2.1.251);2.1.249 從未在 npm 上發布。2.1.248 原文:「Added --restricted (or CLAUDE_CODE_RESTRICTED=1): removes the built-in tools that run commands or code and WebFetch (unless named in --tools), keeps file tools inside the working directory, refuses bypassPermissions, and ignores user, project and local settings files」;「Added experimental.cacheTtl ("5m" or "1h") to agent frontmatter: a per-agent prompt cache TTL used when no subagent TTL setting is configured」;「Added claude self-hosted-runner --client-label <label> (or SELF_HOSTED_RUNNER_CLIENT_LABEL) to override the label the runner registers with (default: hostname)」;「Added server-managed settings diagnostics: a startup warning when the settings fail to load, and a /doctor and /status line explaining a load failure or why they weren’t fetched (Bedrock/Vertex/third-party provider, custom ANTHROPIC_BASE_URL)」;「Added /usage-credits for Enterprise organizations billed through AWS Marketplace, self-serve Enterprise, and Enterprise trials, so members can request a higher usage limit from their admin」;

    「Added cross-session messaging (SendMessage / ListAgents) between sessions on the same machine on Bedrock, Vertex, and Foundry, and when telemetry is disabled」;桌面版保留期修正:「the transcript cleanup now keeps desktop-written sessions while they are in the app (unless org policy manages retention); the new desktopSessionCleanupPeriodDays setting caps the exemption」;「Improved managed settings: client-side timeout, MCP startup-mode, and stream-watchdog env vars no longer trigger the settings-approval prompt」;「Changed /loop: self-paced dynamic mode and the no-prompt autonomous default are now always available, including on Bedrock/Vertex/Foundry」;「Improved the Workflow tool’s prompt footprint: its description is now about 1k tokens instead of 5.7k, with the script-writing reference moved into a bundled workflow-authoring skill」;以及上傳修正:「Fixed /ultrareview and locally seeded cloud sessions uploading uncommitted edits to prod.env-style and *.tfvars files, or to editor swap, temp, and backup copies of credential files (e.g. key.pem.tmp, id_rsa.swo); they now stay on your machine」。

    2.1.251 原文:「Added PreModelSwitch and PostModelSwitch hook events (block, confirm, or annotate a model switch); SessionStart resume hooks now receive session staleness and the estimated re-cache cost」;「Added live streaming of a foreground subagent’s tool calls and results to Remote Control clients (background subagents, the default, still show status only)」;「Added a Spend limit bar to /usage and a rate_limits.spend_limit status line field for developers behind a Claude apps gateway with spend limits」;「Added a per-session prompt-cache line to /cost (hit ratio, misses, tokens re-cached, warm/cold) and a matching prompt_cache object for status line scripts」;「Added attach, logs, stop, respawn, and rm to claude --help; the --resume message for a running background session now names the exact claude attach <id> command」;「Changed Claude in Chrome so browser actions always go through Claude Code’s permission checks, including in sessions with telemetry disabled, which previously used the Chrome extension’s own prompts」;「Changed CLAUDE_CODE_SUBAGENT_MODEL to set the default subagent model rather than override everything: an agent definition’s model: and an explicit per-spawn model now take precedence over it」;「Changed the default model for seat-based Enterprise subscriptions to Opus 5, matching other premium plans」;「Changed /effort to save your default effort level per model, so each model keeps its own setting when you switch」;

    「Changed server-managed settings that terminate sandbox TLS, route sandbox traffic through your own proxy, inject credentials, or weaken sandbox isolation to require approval before they apply」;「Changed ANTHROPIC_CUSTOM_HEADERS from managed or project settings to require approval when it sets a credential, org/tenant, routing, or API-behavior header (e.g. Authorization, Host)」;「Changed project-level .claude/settings.json env to no longer set CLAUDE_CONFIG_DIR, CLAUDE_CODE_TMPDIR, or TMPDIR/TMP/TEMP; set them in your shell, user, or managed settings instead」;「Fixed /usage-credits for Team and Enterprise members whose admin set the org’s usage-credit limit to $0: it now offers to ask the admin instead of saying a cap was reached」;安全性修正原文:「Fixed file tools (Read, Write, Edit) following a symlink swapped inside the working directory after the permission check, which could read or write outside the approved location」;「Fixed plugin commands declared in a marketplace entry being able to point outside the plugin directory; such paths are now rejected with a path-traversal error」;「Fixed Bash permission checks auto-approving commands that assign an arithmetic expression to an integer shell variable (e.g. OPTIND=1/0, RANDOM=2+2); these now prompt for approval」;「Fixed Grep and Glob not applying Read(...) deny rules to files reached through a symlinked search path」。 ↩↩↩↩↩

  31. 狀態列與CLI 參考,於2026年8月30日擷取。狀態列,rate_limits.spend_limit.used_percentage / resets_at:「在 Claude apps gateway 之後,您的支出上限已使用了多少,以及其週期何時重設……需要 Claude Code v2.1.251 或更新版本」;「每個視窗(five_hour、seven_day、spend_limit)都可能各自缺席,且 Claude Code 會在某個視窗的 resets_at 時間過後將其移除。」prompt_cache:「此物件會在主要對話的第一個 API 回應之後出現。Claude Code 不會將 subagent 的請求計入這些統計。需要 Claude Code v2.1.251 或更新版本」;「Claude Code 根據 API 回應中的快取 token 數量計算,因此在每個供應商上都能運作」;「Claude Code 會在終端機中顯示相同的統計數據,位於 /usage 指令的 Prompt cache (main) 列。」CLI 參考,--restricted:「當評估框架在共用機器上驅動 claude,且 Claude Code 不得執行指令或讀取該機器的使用者與專案設定時使用。Claude Code 會移除會執行指令或程式碼的內建工具以及 WebFetch,除非您在 --tools 中逐一指名,而非透過 default 預設集。它也會將內建檔案工具限制在工作目錄內、只載入受管設定與 --settings、拒絕 bypassPermissions,並拒絕建立雲端工作階段。需要 Claude Code v2.1.248 或更新版本。」2026年11月25日重新讀取;措辭已有變動的引文,改以當日的措辭呈現。 ↩

  32. Claude Code 版本說明 v2.1.257 與 v2.1.258(皆為2026年9月1日)及 v2.1.259(2026年9月2日),以及2026年9月3日的正式 CHANGELOG。當日的 npm dist-tags:latest 與 next 皆為 2.1.259,stable 為 2.1.236;npm 已發佈的版本從 2.1.252 直接跳到 2.1.257——2.1.253 至 2.1.256 從未發佈,CHANGELOG 中也沒有對應章節(與 2.1.244/2.1.249 的模式相同)——因此 2.1.258 說明中的「2.1.255 引入的回歸」指的是未發佈的內部建置,而 v2.1.257 是第一個可安裝且支援 Fable 5.1 的版本。v2.1.257 各項目的來源:Fable 5.1 支援及閘道警語(在 Claude apps 閘道工作階段中,fable 與 best 別名目前仍解析為 Fable 5,因為尚未針對 Fable 5.1 設定的閘道會拒絕它——請改在 /model 中選取);timeFormat/timeZone;自動模式的「Containment Escape」規則(雲端中繼資料憑證擷取、出口規避與跨租戶存取不會自動核准,除非環境將其標記為預期行為);CLAUDE_CODE_SUBAGENT_MODEL_FORCE;第一次讀取工作目錄之外的檔案前的一次性提示,加上 permissions.blockReadsOutsideWorkingDirectories;/effort s 與以工作階段為範圍的 --effort;專案/本機的 defaultMode: "bypassPermissions" 會被忽略;managedSourcesBehavior: "merge" 的細部調整(sandbox.credentials.awsPairs 與 sandbox.ripgrep 會整體從設定它們的最高層來源讀取);Bash Read()/Edit() 拒絕規則涵蓋 < file 輸入重新導向以及 tac、egrep 等讀取指令;以及 --add-dir、/add-dir 與 additionalDirectories 對網路路徑(UNC 共用、/net/<host> 自動掛載)的拒絕。

    v2.1.258 修正的來源:未發佈的 2.1.255 所引入的 macOS 12 啟動回歸,以及遠端/排程工作階段在需要非空內容的請求上失敗。v2.1.259 各項目的來源:managedMcpServers;allowedMcpServers 的範圍改為僅限使用者新增的伺服器;--permission-prompts none(任何原本會提示的操作都會自動拒絕,而目前的權限模式仍持續做決定);無法解析的受管設定會拒絕啟動並指出來源;自訂指令與 skills 的 frontmatter model: 在互動式工作階段中會被採用,而自動模式會保留工作階段模型,不會在不支援的 frontmatter 模型上執行回合;claude plugin validate --json;以及 Bash Read() 拒絕涵蓋範圍延伸至選項值/運算元(--ignore-revs-file=.env、-f.env、@file 引數、git diff/git grep 運算元、cd DIR && cat FILE 複合指令,以及對含有遭拒檔案的目錄執行 grep -r/cp -r 現在會詢問)。設定文件尚未記載 timeFormat/timeZone 或 managedMcpServers,CLI 參考也尚未列出 --permission-prompts;截至2026年9月3日,CHANGELOG 是這些項目的來源。 ↩↩↩

  33. Claude Code v2.1.260 版本資訊,發布於2026年9月3日 23:48 UTC(太平洋時間下午4:48;npm 發布早於此,為 22:32 UTC),以及當晚的正式 CHANGELOG。當晚的 npm dist-tags:latest 與 next 皆為 2.1.260,stable 為 2.1.236。還原說明原文:”Reverted the 2.1.259 change applying Read() deny rules to Bash arguments; it denied npm run build under a Read(./**/build/**) rule in every mode and made cd … && grep prompt even in auto mode” – v2.1.257 的重新導向與讀取類命令涵蓋範圍未在此次還原中提及,仍然有效。本註為下列內容的來源:/diff 全螢幕差異面板(”Added a diff panel that opens beside the conversation in fullscreen mode and shows your uncommitted changes as Claude edits; toggle it with /diff“);含括號路徑的權限修正(路徑含括號的規則「被視為無效而捨棄,或被 Bash 沙箱忽略,導致『唯讀』資料夾實際可寫」;無法編譯的模式,例如未閉合的 [,不再「讓每次檔案編輯都以 Invalid regular expression 失敗」,此類拒絕規則現在會保護其字面拼寫的路徑;針對 Edit(C:\dir\(name)\**) 改進的設定錯誤訊息,其中 \( 被解讀為跳脫的括號而非路徑分隔符號;尾端帶有多餘文字的規則如 Bash(ls) x 會回報為無效設定);

    四項 Fable 5.1 上市叢集修正(/model 選擇器對可使用 Fable 5.1 的組織顯示該模型,先前「只接受以 /model claude-fable-5-1 輸入」;提示快取在修正前未涵蓋「工具結果之後附加的上下文,因此每次工具呼叫回合都以未快取輸入重新送出」;工作階段中途變更 /effort 不再使提示快取失效;model: fable 代理程式會遵循 ANTHROPIC_DEFAULT_FABLE_MODEL 釘選上的 [1m] 標籤,而非「默默地以 200K 上下文視窗執行」);自動壓縮改進(”Opus and Fable sessions now compact shortly before the 1M-token limit, and recovery compaction on very large contexts no longer times out at 10 minutes”);加入 /cost 與狀態列 prompt_cache 欄位的可能未命中原因說明(”e.g. tool definitions or system prompt changed, idle past the TTL”);! bash 模式的例外處理(”Changed commands typed at the ! bash-mode prompt to run outside the sandbox even when strict sandbox mode (sandbox.allowUnsandboxedCommands: false) is on, like typing into your own terminal”);受管理 CLAUDE.md 的變更(”a managed CLAUDE.md (claudeMd) no longer triggers the security approval dialog; hooks, shell-command, sandbox, and unsafe env settings still require approval”);以及 Claude in Chrome 遵循「your organization’s Claude in Chrome admin setting; when an admin turns it off, --chrome, /chrome and the browser tools are unavailable」。嚴格沙箱模式的語意(allowUnsandboxedCommands: false 會完全忽略 dangerouslyDisableSandbox,每個命令都必須在沙箱中執行或列於 excludedCommands,且 /sandbox 的 Overrides 分頁將此狀態標示為 Strict sandbox mode)取自沙箱文件,於2026年9月3日擷取。 ↩

  34. Claude Code v2.1.261 版本資訊,發布於2026年9月4日 19:58 UTC,以及同日的正式 CHANGELOG。當日的 npm dist-tags:latest 與 next 皆為 2.1.261,stable 為 2.1.236。按鍵綁定變更原文:”Changed the prompt’s word-editing keys to match Bash: Ctrl+W deletes back to whitespace, Alt+F and Alt+D stop at word end, punctuation separates words; keybindingFlavor no longer has any effect.” 本註為下列內容的來源:/skill-doctor,可顯示哪些已載入的 skills 未被使用及其佔用的上下文成本,方便您加以精簡;bashOutputMaxChars 與 taskOutputMaxChars 設定,可提高 Claude 在輸出儲存至檔案前以內嵌方式接收的命令輸出與背景任務輸出量,上限為 128K 字元(此機制與 BASH_MAX_OUTPUT_LENGTH 不同,後者依工具參考文件的定義,是從命令工作輸出檔案讀回的視窗,原文:它 “sets how many characters of output Claude Code reads back from the working file into a command’s result: 30,000 by default, up to a hard ceiling of 150,000”);auto 模式將把內容封裝進公開圖表渲染服務 URL 的連結(mermaid.live 類型,資料直接編碼於 URL 本身)視為上傳行為,除非您主動要求,否則不再自動核准;以及 forceLoginMethod: "gateway" 會清除殘留的憑證,因此釘選至 gateway 的機器會忽略殘留的 API 金鑰或 claude.ai 登入並要求 /login,而 Bedrock、Vertex AI 與 Foundry 工作階段不受影響。 ↩

  35. Claude Code v2.1.265 版本資訊,發布於2026年9月8日 20:37 UTC,以及同日的正式 CHANGELOG(發布內文與 CHANGELOG 章節完全相同)。當日的 npm dist-tags:latest 與 next 皆為 2.1.265,stable 為 2.1.236;npm 已發布版本從 2.1.261 跳至 2.1.263 再到 2.1.265 – 2.1.262 與 2.1.264 從未發布(與 2.1.244/2.1.249/2.1.253-256 相同的模式)– 而 2.1.263(9月6日發布)僅載明 “Bug fixes and reliability improvements”。本註為下列內容的來源:--plugin-dir 指向含多個 plugins 的資料夾(”each child folder with a manifest loads, and children added or removed while running are picked up”);兩項提示快取前綴修正,原文:”Fixed resuming a foreground-spawned subagent changing its tool list and system prompt prefix, which broke prompt-cache reuse for that agent” 以及 “Fixed agent teammates and resumed subagents moving SubagentStart hook context and preloaded skills out of the prompt prefix on later turns, which broke prompt-cache reuse”;非互動式工作階段(搭配 stream-json 輸入的 -p、Agent SDK、雲端工作階段)不再於每則新使用者訊息時重設 shell 工作目錄,因此 cd 可跨回合保留;

    設定為 http 但僅支援舊版 HTTP+SSE 傳輸的 MCP 伺服器,現在會依 MCP 規範所述回退至 SSE;儲存至磁碟的工具結果設有 1 GB 上限,且對話內預覽會註明已儲存的檔案是否遭截斷;受管理設定中含 forceLoginGatewayUrl 的機器自啟動起即為 Claude apps gateway 工作階段,如同 forceLoginMethod: "gateway",殘留的 claude.ai 登入或 API 金鑰不會被使用;Claude apps gateway 工作階段會將 OpenTelemetry 直接匯出至 gateway 受管理設定在 OTEL_EXPORTER_OTLP_ENDPOINT 中指定的收集器,而非透過 gateway 的中繼(未指定收集器的工作階段仍使用中繼),且 Claude Desktop 與 Cowork 透過 Claude apps gateway 傳送的遙測資料新增了 user.email 與 user.groups,與終端機工作階段一致;雙鍵鍵盤快捷鍵會等待第二個按鍵 3 秒,逾時則顯示通知,先前若第二個按鍵在超過一秒後才到達(如在 tmux 內的情況)會默默取消;以及在提示中途輸入的斜線命令會以清單顯示相符項目(非全螢幕時以 Tab 開啟),而非僅顯示單一建議,且 plugin skill 可用其簡短名稱找到。 ↩

  36. Claude Code 版本說明 v2.1.266(2026年9月8日)、v2.1.267(9月9日)、v2.1.268(9月10日)、v2.1.269(9月11日)、v2.1.270(9月12日)、v2.1.271(9月14日)及 v2.1.272(npm 於9月14日發布,GitHub 版本於9月15日 00:42 UTC 發布),以及2026年9月15日的正式 CHANGELOG – 七個版本的說明內容與其 CHANGELOG 章節完全一致。9月15日(約 13:15 PT)的 npm dist-tags:latest 2.1.272、next 2.1.273、stable 2.1.236;2.1.273(9月15日 18:06 UTC 發布)沒有 GitHub 版本,也沒有 CHANGELOG 章節,因此其內容未收錄於此;2.1.263 仍只寫著「Bug fixes and reliability improvements」– 從未補上任何說明。以下內容的出處(引述處皆為原文):/output-style 的回歸(”Added /output-style [name] to list and switch output styles, including over Remote Control and in cloud and other headless sessions”,v2.1.269);claude plugin eval(”run a plugin’s eval suite against Claude Code and get scored, reproducible results (JSON + HTML report)”,v2.1.269);Claude Code Remote 工作階段中的 fast mode(”cloud and self-hosted runners: the host’s fast-mode setting or /fast typed in the session applies where your organization allows it”,v2.1.271)以及 /fast off 的修正;

    maxEffortLevel 設定(”top-level or per model under modelSettings: caps the effort level on every provider, including Bedrock, Vertex and Foundry; users can still pick a lower level”,v2.1.267);--system-prompt-snapshot off(v2.1.267);v2.1.267 的 prompt-cache 穩定性修正批次(恢復工作階段時的工具清單、工具描述與 MCP 宣告文字的改寫;/model 切換時重新傳送每一個工具定義,署名文字改為對話備註;--system-prompt/--append-system-prompt 工作階段只記錄一次提示詞與工具定義;工作階段中途加入的 MCP 與 plugin 工具改為延遲載入的定義);固定預設 effort 模型(Opus 4.7、Opus 4.8、Fable 5;v2.1.267)上 effort: frontmatter 的修正;marketplace 反斜線隔離修正(v2.1.267);任務追蹤工具的允許清單(「Changed the task-tracking tools (TaskCreate/Get/Update/List, TodoWrite) to be offered only on」Claude 3.x、Opus 4.0 至 4.7、Sonnet 4.0 至 4.6 與 Haiku 4.5,並附「set CLAUDE_CODE_ENABLE_TODO_TOOLS=1 elsewhere」,v2.1.268);符號連結目錄與 env -C/eval 拒絕規則的修正(v2.1.268);WebFetch 與 Artifact 規則的拆分(”Changed plain WebFetch deny and ask rules to no longer apply to Artifact tool reads and updates; use an Artifact rule (or WebFetch(domain:claude.ai)) to block or gate them”,v2.1.268);/plugin 變更於選單關閉時生效(v2.1.268);WebFetch 的 300 秒期限與 CLAUDE_CODE_WEBFETCH_DEADLINE_MS(v2.1.268);gatewayInternalNetworks、空白 allow_cidrs 的警告,以及 gateway pricing: 費率同步(v2.1.268),再加上 multiplier 可高於 1 並最高至 10(v2.1.271);

    ${VAR} 與 git URL 的機密防護修正(v2.1.268);claude auth status --json 中的 configDirectory(v2.1.268);第三方 ANTHROPIC_BASE_URL HTTP 400 迴歸問題的修正(v2.1.268);bashEditDiffEnabled(v2.1.269);署名提醒的修正(”Fixed the attribution reminder overriding a CLAUDE.md or memory rule against commit and pull request attribution; lines set by managed settings still apply”,v2.1.269);環境變數 OTEL_METRICS_INCLUDE_REPOSITORY、CLAUDE_CODE_WORKFLOW_MAX_CONCURRENT_AGENTS(1-256)、CLAUDE_CODE_GATEWAY_MODEL_DISCOVERY_TIMEOUT_MS(預設 3 秒)及 CLAUDE_CODE_BG_TASKS_REPORT_RUNNING(v2.1.269);v2.1.247 鍵盤迴歸問題的修正,以及透過 SSH 的 kitty 查詢鍵盤支援(v2.1.269);Edit()/tee、Bash(tee:*) 與開頭 ! 的範圍判定修正(v2.1.269);啟用沙箱的 auto mode 下,Bash、PowerShell 與 Monitor 的逐命令 allowed_domains(v2.1.271);omitClaudeMd agent frontmatter 與 --agents JSON(v2.1.271);auto mode 的行內 ! 與 subagent 交還機制的變更(v2.1.271);claude plugin install/update 的 --accept-command <sha256>(v2.1.271);--resume 在不同模型系列間保留 [1m](v2.1.271);無法讀取的 managed-mcp.json 改為預設拒絕(v2.1.271);fmt/column、萬用字元展開、變數宣告旗標與 blockReadsOutsideWorkingDirectories 檢查器的修正(v2.1.271);以及 Markdown artifacts 改以具樣式的文件頁面呈現,artifact 監看數提高至 10(v2.1.271)。v2.1.266 只有一行(CLAUDE_CODE_USE_GATEWAY 迴歸問題的修正),v2.1.270 只有一行(v2.1.269 git 提示迴歸問題的修正),而 v2.1.272 僅寫著「Bug fixes and reliability improvements」。 ↩↩↩

  37. Claude Code v2.1.273 版本說明,發布於2026年9月15日 20:23 UTC,以及2026年9月16日的正式 CHANGELOG:版本說明內文與 CHANGELOG 章節完全相同,各為 64 行。9月16日(約太平洋時間 10:00)的 npm dist-tags:latest 為 2.1.273、next 為 2.1.273、stable 為 2.1.267,這是 stable 標籤首次離開 2.1.236。以下項目的來源,引用處皆為原文:deny 規則回退(”回退了 2.1.268 的一項變更,該變更會對權限檢查器無法分析的 Bash 指令行(eval、env -C)檢查 Read 與 Edit 的 deny 規則;像 time -p make build 這類指令現在會再次提示,而不是被拒絕”);無法分析的指令與子 shell 修正(”修正了權限檢查器無法完整分析的 Bash 指令在 permissions.blockReadsOutsideWorkingDirectories 下跳過提示的問題,以及在 bypass 模式中子 shell 藏匿危險 rm 的問題”);記憶目錄修正(”修正了 permissions.blockReadsOutsideWorkingDirectories:由儲存庫設定所選定的記憶目錄,不再被載入提示、召回、建立索引,或供記憶擷取使用”);閘道分類器預設值(”將 Bedrock、Vertex 與 Foundry 上的 auto 模式暫時改為預設使用本機分類器;設定 CLAUDE_CODE_AUTO_MODE_SERVER=1 即可改用平台的伺服器端分類器”);提示標頭(”為 LLM 閘道新增了 x-claude-code-request-class、x-claude-code-agent-type、x-claude-code-prev-tool-durations、x-claude-code-compaction 與 x-claude-code-context-compacted 請求標頭;以 CLAUDE_CODE_GATEWAY_HINT_HEADERS=1 選擇啟用”);

    受管設定優先順序修正(”修正了透過 MDM 或 managed-settings.json 設定的 allowManagedMcpServersOnly、deniedMcpServers 與 disableClaudeAiConnectors 在同時存在伺服器管理設定時被忽略的問題”);context 計量修正(”修正了 context 計量與自動壓縮將 advisor 工具回合計為實際 context 大小約兩倍的問題,這導致自動壓縮在實際視窗約一半時就觸發”);提示快取修正(”修正了 /login、/upgrade 與 /extra-usage 捨棄對話中先前思考內容的問題,該問題會迫使下一次請求完整重寫提示快取”);遙測變更(”變更 OTEL_LOG_TOOL_DETAILS=1,使其在成本與 token 指標上也包含實際的 agent、skill、plugin 與 MCP 伺服器名稱”);/bug//feedback 資料最小化(”變更 /bug 與 /feedback 回報,使其僅包含最後一次 API 請求的模型行為參數(模型、系統提示、工具),省略請求中繼資料與 CLAUDE_CODE_EXTRA_BODY 欄位”);登入變更(”變更以 Claude 帳號登入的流程,使其同時請求存取您的 claude.ai plugins”);Remote Control 分支(”新增從 Claude 應用程式分支以 claude --remote-control 或 /remote-control 啟動的工作階段;分支會在您的電腦上以背景工作階段執行”);以及 stream-json 修正(”修正了 SDK 與 --output-format stream-json 輸出在 subagent 於執行中途被移至背景(例如透過 CLAUDE_AUTO_BACKGROUND_TASKS)後,遺漏其剩餘訊息與最終報告的問題”)。 ↩↩

  38. Claude Code 版本說明 v2.1.274(發布於 2026年9月17日 00:12 UTC,108 個項目)、v2.1.275(9月17日 22:33 UTC,96 個項目)與 v2.1.276(9月18日 02:12 UTC,一行),以及2026年9月17日的正式 CHANGELOG:三份版本說明內文與其 CHANGELOG 章節逐位元組相同。9月17日(約太平洋時間 22:08)的 npm dist-tags:latest 與 next 皆為 2.1.276,stable 為 2.1.267。以下項目的來源,引用處皆為原文:claude.ai 同步(”新增將您 claude.ai 帳號上啟用的 skills 與 plugins 同步至以該帳號登入的終端機工作階段;以 syncClaudeAiSkills: false 或 syncClaudeAiPlugins: false 選擇停用”,v2.1.275);立即送出鍵(”新增立即送出鍵(ctrl+enter,或 ctrl+x ctrl+s),可中斷目前回合並一次送出所有排隊中的訊息;已送出與排隊中的訊息會以灰色顯示,直到模型接收為止”,v2.1.275);/plugin install <plugin> --marketplace <source>(”會在安裝 plugin 前主動提議加入該 marketplace”,v2.1.275);npm plugin 來源強化(”變更從 npm 來源安裝的 plugins,改以 npm pack --ignore-scripts 取得並驗證完整性,因此套件的安裝指令碼不再執行”,v2.1.275);同步帳號 skills 的 Write/Edit 結果(”現在會說明變更未儲存至您的帳號,以及如何儲存”,v2.1.275);分頁圖示變更(”變更 Artifact 工具,首次發布時改為要求一個單字的分頁圖示,而非 emoji favicon”,v2.1.275);

    CLAUDE_CODE_MCP_STARTUP_WAIT_MS(”用於限制第一個非互動式回合等待 MCP 伺服器連線的時間(0 = 不等待)”,v2.1.274);MCP 用戶端預設值(”變更 Bedrock、Vertex、Foundry 與停用遙測的安裝,預設改用 v2 MCP 用戶端,並與直接 HTTP 伺服器採用 MCP 2026-07-28 協商,與其他安裝一致(選擇停用:MCP_SDK_GENERATION=v1 或 MCP_PROTOCOL_NEGOTIATION=legacy)”,v2.1.274);舊版 HTTP+SSE 4xx 修正(”修正了設定為 http 且僅支援舊版 HTTP+SSE 的 MCP 伺服器,在以 422 或其他 4xx 錯誤回應第一個請求時無法連線的問題”,v2.1.274);"type": "sdk" 略過(”變更 .mcp.json、設定、plugins 與 agent 檔案中的 "type": "sdk" MCP 項目,改為略過並顯示警告:只有 SDK 宿主應用程式才能註冊行程內伺服器”,v2.1.274);命名變更(”變更 /status 的 GitHub 行文字為 "Cloud sessions",並將 /web-setup、/ultrareview 與 teleport 訊息改為顯示 "cloud session" 而非 "Claude Code on the web"“,v2.1.274);artifact 監看(”變更本機工作階段中的 artifact 監看:在其他地方發布的新版本不再啟動回合;Claude 會從之後的 Artifact 工具結果得知”,v2.1.274);以及 v2.1.276 的回歸修正(”修正了當 ANTHROPIC_BASE_URL 指向 proxy 或閘道時,每個請求都以 400 … Input tag 'advisor_20260301' 失敗的問題(2.1.275 回歸)”)。 ↩↩

  39. Claude Code 版本說明 v2.1.277(npm 發布於 2026年9月18日 16:22 UTC;GitHub release 為 18:06 UTC)與 v2.1.278(npm 為 9月19日 01:48 UTC;GitHub release 為 03:10 UTC),以及2026年9月21日的正式 CHANGELOG。本指南中所有 v2.1.277 與 v2.1.278 項目的來源。關鍵引文:”新增 AGENTS.md 支援:在沒有 CLAUDE.md 的專案中,Claude Code 會改為讀取 AGENTS.md;可在 /config 的 "Project instructions" 下變更(Bedrock、Vertex 或 Foundry 尚未支援)”;”變更 Claude API 與 Enterprise 使用者,以及 Bedrock、Vertex、Foundry 與閘道上的 auto 模式,預設改用伺服器端分類器,該分類器不收取分類器額外費用”;”在 /status 新增 Auto mode server 列,顯示此工作階段的 auto 模式分類器是否在伺服器上執行”。於 2026年9月21日取得的佐證文件:Memory,AGENTS.md 章節(載入矩陣、Project instructions 的值、agents-md@builtin 的 pluginConfigs 位置、不會讀取的檔案)與 Auto 模式分類器請求費用(備援通知文字與送達方式、/status 列的值、閘道直通,以及該變數的暫時性狀態)。 ↩

  40. Claude Code 文件,擷取於2026年9月23日:模型設定、Fast mode、記憶、權限模式、Auto mode 分類器請求費用與MCP。以下內容的資料來源:依內容判定的備援機制(「biology-flagged requests re-run on Opus 5, and cybersecurity-flagged requests re-run on Opus 4.8」,適用於 Fable 5.1、Fable 5 與 Opus 5.5);effort 預設值(Opus 5.5 為 medium,頂層的 effortLevel 無法影響它);「You can’t turn thinking off on Opus 5.5 or the Fable models」;Opus 4.8 及之後版本在 Bedrock、Agent Platform 與 Foundry 上的 200K 視窗,以及 Foundry 的 opus 解析為 Opus 4.6;fast mode 的模型支援,以及自 v2.1.280 起 Opus 5.5 成為 fast mode 預設;AGENTS.md 差異表格、首次工作階段的注意事項,以及 v2.1.280 之前 /memory 與 /context 不會列出直接讀取的 AGENTS.md 這項說明;內建起始模式表格(Pro、Max 與 Team 為 auto;Enterprise、Console API 金鑰與第三方供應商為 Manual);伺服器端檢查清單,其中包含 Claude Platform on AWS;以及 Tool Search 在工作階段開始時僅載入工具名稱與伺服器指示。 ↩

  41. Claude Code v2.1.281 版本說明(npm 於2026年9月23日 17:01 UTC 發布;GitHub 發布版本為 19:19 UTC;176 個條目,與正式 CHANGELOG 的 2.1.281 章節完全一致,擷取於2026年9月24日,該檔案從 2.1.280 連續涵蓋至 2.1.281,沒有缺漏)。本指南中每一項 v2.1.281 內容的資料來源。9月24日的 npm dist-tags:latest 與 next 為 2.1.281,stable 為 2.1.273。關鍵引文:「Changed send now (ctrl+enter or ctrl+x ctrl+s) to move running tools to the background instead of cancelling the turn」;「Changed CLAUDE_CODE_AUTO_MODE_SERVER to also apply on a direct Anthropic API connection: 0 opts out of the server-side auto mode classifier (the local classifier then counts toward usage), 1 opts in」;「Changed the dangerous rm prompt in --dangerously-skip-permissions and auto mode to wait 2 minutes for an answer, then deny the command with a rewrite hint」;「Added "attribution": false in settings.json to hide all commit and PR attribution」。移除 /agents 精靈一事出自同一份 CHANGELOG 的 2.1.198 章節:「Removed the /agents wizard; ask Claude to create or manage subagents, or edit .claude/agents/ directly.」auto mode 分類器計費文件,擷取於2026年9月24日,當時仍寫著「The variable isn’t read on a direct connection to the Anthropic API」;到了9月26日,該頁面已改為「On a direct connection to the Anthropic API, the variable requires Claude Code v2.1.281 or later.」同日的設定參考記載了 attribution 物件,並將 includeCoAuthoredBy 標示為已棄用;到了9月26日也一併記載了 false 這個值。 ↩

  42. Claude Code v2.1.283 版本說明(npm 於 2026年9月25日 18:46 UTC 發布;GitHub 發行於 21:50 UTC;共 94 條項目,與正式 CHANGELOG 的 2.1.283 章節完全一致,2026年9月26日擷取,該紀錄從 2.1.281 到 2.1.283 連續無缺漏)。本指南中所有 v2.1.283 項目的來源。9月26日的 npm dist-tags:latest 與 next 為 2.1.283,stable 為 2.1.274。重點引文:”Changed interactive sessions on third-party providers or with telemetry off to start in auto mode when no permission mode is configured; permissions.defaultMode still overrides it”;”Added deniedModels managed setting to block specific models, even when availableModels allows them”;”Added /doctor prompt-audit (also /checkup prompt-audit) to audit your CLAUDE.md files, skills, agents and commands for prompting patterns written for older models”;”Added x-claude-code-prompt-id to the gateway hint headers”;”Changed the /model picker’s Opus row and the Default model’s name to drop ‘(1M context)’ where Opus already has a 1M context window”;”Reverted the 2.1.282 reservation of the claude-ai name”。 ↩

  43. Claude Code v2.1.284 版本說明(npm 於 2026年9月28日 17:11 UTC 發布;GitHub 發行於 18:02 UTC;共 100 條項目,與正式 CHANGELOG 的 2.1.284 章節完全一致,2026年9月29日擷取,該紀錄從 2.1.283 到 2.1.285 連續無缺漏)。本指南中所有 v2.1.284 項目的來源。重點引文:”Added Claude Sonnet 5.5 (claude-sonnet-5-5), now the default Sonnet model on the Anthropic API”;”Changed interactive terminal and VS Code sessions to start in auto mode when no permission mode is configured, on every plan and provider; permissions.defaultMode still overrides it”;”Changed Ultracode into its own toggle in /effort (Tab, or /effort ultracode [on|off]): it no longer forces xhigh effort and stays on at any effort level”;”Added /mcp reconnect all in the interactive terminal to retry every MCP server that failed to connect or needs authentication at once”;”Added a ‘Yes, but ask again next time’ answer to auto mode’s prompt before a read outside the working directories”;”Added effortSlider:decreaseEffort, increaseEffort and toggleUltracode keybinding actions”。 ↩↩

  44. Claude Code v2.1.286 版本說明(npm 於 2026年9月30日 17:14 UTC 發布;GitHub 發行於 19:10 UTC;共 88 條項目,與正式 CHANGELOG 的 2.1.286 章節完全一致,2026年10月1日擷取,該紀錄從 2.1.285 到 2.1.287 連續無缺漏)。本指南中所有 v2.1.286 項目的來源。重點引文:”Changed --bare to connect only the MCP servers named on the command line, send the model no system reminders, and start no background tasks”;”Fixed every turn failing when the Anthropic API refuses the model your default or a model alias resolves to: Claude Code now retries once on the previous model of the same tier”;”Changed /hooks to open on one list of your configured hooks grouped by event”;”Fixed claude auth status reporting a Console sign-in’s stored API key as claude.ai; it now reports api_key“;”Changed plugin installs to refuse npm sources that are git repositories or folders, and to install plugin dependencies only from registry packages”;”Changed how failed API requests are retried: one limit now covers a whole model call, so with the default retry settings a failing call sends at most 14 requests”。 ↩

  45. Claude Code 正式 CHANGELOG 的 2.1.288 章節,於 2026年10月6日擷取,以及同日讀取的 @anthropic-ai/claude-code npm 登錄檔中繼資料:2.1.288 於 2026年10月2日 18:30 UTC 發布,2.1.289 於 10月3日 20:12 UTC,2.1.290 於 10月5日 18:12 UTC,2.1.291 於 10月6日 03:32 UTC,2.1.292 於 10月6日 17:10 UTC;dist-tags 的 latest 與 next 為 2.1.292,stable 為 2.1.285。CHANGELOG 從 2.1.287 到 2.1.292 連續無缺漏。本指南中所有 v2.1.288 項目的來源。重點引述:「Changed claude project purge to claude purge; the old name still works and prints a notice」;「Changed the background command time limit to apply only in unattended sessions (-p, Agent SDK, CI, cloud); terminal, desktop app and VS Code sessions have no limit」;「Added --max-findings <n>|all to /code-review」;「added CLAUDE_CODE_DISABLE_STRUCTURED_OUTPUTS to turn structured outputs off」;「Changed the client-side auto mode classifier to ignore an ANTHROPIC_DEFAULT_SONNET_MODEL pin that names Claude Sonnet 5.5 or Opus 5.5 and use Claude Sonnet 5 instead」;「requests now time out after 60s (per-server requestTimeout)」。 ↩

  46. Claude Code CHANGELOG,2.1.247 章節,擷取於2026年8月27日。npm 於2026年8月26日 18:02 UTC 發布 2.1.247(dist-tag latest:2.1.247;2.1.244 仍未發布),GitHub 發行版 v2.1.247 隨後於 23:06 UTC 發布,而正式文件變更日誌將此版本的日期標為2026年8月26日。原文照錄:「Added the SendFeedback tool: when something goes wrong in a session, Claude can draft a feedback report for you to review and send from /feedback (turn off with the feedbackDrafts setting)」;「Added {id, text, cooldownSessions, priority} entries, tipsFile, and label to spinnerTipsOverride, so organizations can rotate their own tips alongside the built-in ones」;「Added a tip on Bash permission prompts pointing to auto mode, with a one-keystroke ‘Yes, and switch to auto mode’ option」;「Added /claude-api cost-optimize to profile an existing project’s Claude API spend and work through cost levers (caching, token hygiene, batch, effort, model choice) one measured change at a time」;「Updated the /claude-api skill with Admin API coverage (organization members, invites, workspaces, API keys, rate limit reports, workload identity federation, CMEK)」;「Changed Sonnet 5’s default auto-compact window to its full 1M context, so sessions on the 1M window now auto-compact at about 967K tokens instead of about 934K」;「Changed cross-session peer messages to collapse by default to a one-line Message from @<sender>: <first line> preview; Ctrl+O expands the full body」。設定參考尚未記載 feedbackDrafts 或新的 spinnerTipsOverride 鍵;截至2026年8月27日,CHANGELOG 是它們唯一的來源。 ↩↩

  47. Claude Code 發行說明 v2.1.235(8月18日)、v2.1.236(8月19日)、v2.1.237 與 v2.1.238(8月20日),以及2026年8月20日的正式 CHANGELOG.md(最新標題:2.1.238)。以下行為引自說明原文:spellcheck「using your installed aspell, hunspell, or ispell」;ANTHROPIC_DEFAULT_MODEL「sets the model new sessions start on, while a /model pick still overrides it and persists across restarts (unlike ANTHROPIC_MODEL)」;Concise「leads with results and skips preamble and narration, while doing the work just as thoroughly」;keybindingFlavor "readline"「Ctrl+W in the prompt delete back to the previous whitespace, as in Bash」;headersHelper「runs a command that mints HTTP headers (e.g. a short-lived token)」,目錄項目僅在安裝/更新時執行,專案/外掛/agent 範圍則會剝除憑證環境變數;auto 模式「Monitor allow rules are now set aside while auto mode is active」;macOS sandbox「wildcard read-deny rules (e.g. **/.env) now take precedence inside allowed read regions… and can’t be bypassed by renaming the denied file.」 ↩

  48. Claude Code 文件,擷取於2026年8月26日。模型設定,effort 表格:「Fable 5 | low, medium, high, xhigh, max」與「Opus 5、Sonnet 5、Opus 4.8 與 Opus 4.7 | low, medium, high, xhigh, max」(不存在 min 層級);「/effort 選單亦提供 ultracode。Ultracode 是 Claude Code 的設定,而非模型的 effort 層級:它會將 xhigh 送給模型,並額外讓 Claude 為實質性任務協調動態工作流程」;「將 ultracode 傳給 --effort 旗標或 Agent SDK 的 effortLevel 值,需要 Claude Code v2.1.203 或更新版本」;「持久化的 effortLevel 設定與 CLAUDE_CODE_EFFORT_LEVEL 環境變數不接受 ultracode。」Auto mode 設定:「在 CLI 中執行 /permissions 並選擇 Auto mode 分頁。該分頁需要 Claude Code v2.1.246 或更新版本,且僅在您的工作階段可使用 auto mode 時才會出現」;「Claude Code 會將來自受管設定或 --settings 旗標的項目顯示為唯讀,並將您在該分頁所做的每項變更儲存到 ~/.claude/settings.json」;「當您在某個區段新增第一條規則時,Claude Code 也會插入 "$defaults",讓內建規則持續生效。」2026年11月25日重新讀取;措辭已有變動的引文,改以當日的措辭呈現。

    權限:「請將 * 放在子命令之後。在 git log --oneline main 中,git 是程式,log 是子命令……Bash(git log *) 僅允許 git log 命令,而 Bash(git *) 允許所有 git 命令。對於 * 位於子命令之前的允許規則(例如 Bash(git * main)),Claude Code 會在啟動時發出警告。」錯誤:「Bash(git * main) 也會核准 git -c core.fsmonitor=<script> diff main,其中 -c 會讓 git 執行該命令所指定的程式」;修正方式:「將子命令之前的 * 替換為您實際想要的確切值:以 Bash(git checkout main) 取代 Bash(git * main)。」網頁版 Claude Code:「網頁版 Claude Code 目前為研究預覽版,開放給 Pro、Max 與 Team 使用者,以及擁有進階席次或 Chat + Claude Code 席次的 Enterprise 使用者」;「在終端機執行 /web-setup,將本機的 gh CLI 權杖同步到您的 Claude 帳戶」;「Team 與 Enterprise 的擁有者可透過 claude.ai/admin-settings/claude-code 的 Quick web setup 開關停用 /web-setup」;「啟用零資料保留的組織無法使用 /web-setup 或其他雲端工作階段功能。」

    (這四則雲端工作階段引文是該頁面在2026年8月26日的內容。2026年11月10日,該頁面寫著「雲端工作階段開放給 Pro、Max、Ultra 與 Team 方案,以及擁有進階席次或 Chat + Claude Code 席次的 Enterprise 使用者」、「在終端機中執行 /web-setup,將本機的 gh CLI token 傳送到您的 Claude 帳號」,以及關於 Quick setup 開關的「在 Team 與 Enterprise 方案上預設為關閉」。)費用,/usage:「Loops:近期執行過、最耗資源的 /loop 或其他排程任務各佔一列,依總 token 數排序,並附上其餘任務的數量。Claude Code 會回報每項任務的觸發頻率、執行次數、總 token 數與每次執行的 token 數,以及最後一次執行的時間。Claude Code 以任務的提示作為每列的鍵值,因此停止後重新建立的 loop 仍維持同一列。需要 Claude Code v2.1.242 或更新版本。」 ↩↩↩

  49. Claude Code CHANGELOG,2.1.246 與 2.1.245 區段,擷取於2026年8月26日;npm 於2026年8月25日 04:45 UTC 發布 2.1.245,並於 19:17 UTC 發布 2.1.246,每個版本皆有對應的 GitHub 發行版。2.1.246 原文:「新增啟動警告,針對萬用字元位於子命令之前的 Bash 允許規則(例如 Bash(git * main)),因為這類規則也會比對到插入於子命令之前的選項」;「在 /permissions 新增 Auto mode 分頁,用於檢視與編輯 auto mode 分類器規則」;「改進 /cd:新目錄的專案設定、hooks、.mcp.json 伺服器(仍須經過一般的核准提示)、skills 與 agents 現在會在移動後立即生效,而非等到 --resume」;「改進 subagent 結果:在 maxTurns 限制處停止的 subagent,現在會將其輸出標示為部分完成,並附上透過 SendMessage 繼續的提示,而非看起來像已完成」;「/goal:閒置的工作階段改為每個 goal 最多對長時間執行的背景工作發起三次確認;您的下一則訊息會再允許三次」;「修正 Bash 權限檢查,對於結尾有懸空 && 或 || 運算子的格式錯誤命令,一律要求核准」;「修正送往 Anthropic 的遙測與指標請求夾帶為第三方閘道(ANTHROPIC_BASE_URL)設定的 API 金鑰的問題;憑證現在只會送往其所屬的主機」;「在回合結束的持續時間行末尾新增該回合的完成時間」。2.1.245 原文:「修正在搭載 glibc 2.44 的 Linux 發行版(例如 Arch Linux、CachyOS 與 Fedora Rawhide)上啟動時當機的問題」。 ↩↩↩

  50. Claude Code CHANGELOG,2.1.243 章節,擷取於2026年8月26日。npm 於2026年8月24日 19:16 UTC 發布 2.1.242,並於 23:10 UTC 發布 2.1.243;2.1.242 沒有 CHANGELOG 章節,2.1.244 從未發布,而官方文件將 modelPicker、promptCacheTtl 以及 /usage 的 Loops 列的最低版本訂為 v2.1.242。原文如下:”Added a Loops breakdown to /usage: per-loop run count, total tokens, tokens per run, and last run, so runaway or chatty /loop tasks are easy to spot”;”Added modelPicker setting: curate the /model picker with an ordered, labeled list of models (any id spelling, including Vertex/Bedrock ids), appended to or replacing the built-in lineup”;”Added promptCacheTtl and subagentPromptCacheTtl settings so API-key and cloud-provider users can keep a 1-hour prompt cache on the main conversation while subagents stay at 5 minutes”;”Added modelPricing managed setting so an organization’s contracted per-model rates and discount multiplier are used for /cost, the status line, and telemetry cost figures instead of list price”;”Added a keyless sign-in under /login → Anthropic Console: ‘Sign in with your Console account’ (recommended) alongside creating an API key, so organizations that don’t allow API keys can sign in”;

    “Added a Skipped sources line to /status that lists managed settings sources (for example managed-settings.json) present but not applied because a higher-precedence managed source is active”;”Added a managed marker in /mcp and /plugins on claude.ai connectors whose authentication is managed by your organization”;”Added a tip pointing claude.ai users who haven’t connected GitHub for Claude Code on the web to /web-setup“;”Added a /status line showing whether GitHub is connected for Claude Code on the web (Pro/Max), pointing to /web-setup when it isn’t”;”Added the model (and effort level) each subagent ran on to /tasks and the agent detail dialogs”;”Improved /loop: consecutive wake-ups where Claude has nothing to do now fold into a single line in the terminal instead of printing each one”;”Fixed /web-setup repeatedly asking you to log in when an older GitHub CLI (without gh auth token) was already authenticated”;”Improved native install and auto-update download size: the binary is now zstd-compressed (about 75 MB instead of 340 MB on Linux x64)”;”Changed the cross-session messaging inbox socket to close connections that send no complete line within 30 seconds; scripts posting to it should connect once their data is ready”。 ↩↩↩↩↩↩

  51. Claude Code v2.1.234 版本資訊,2026年8月17日。新增:claude.ai 用量上限重設時自動延續工作階段(可透過 /config → “Continue automatically at usage limit” 關閉)、CLAUDE_CODE_PROJECT_DIR_NAME、CLAUDE_CODE_GOAL_CHECKIN_MINUTES(預設 30;設為 0 則停用),且 /goal 遇到無法復原的錯誤時會自行清除;回合進行中可使用 /permissions 與 /add-dir;GitLab MR 頁尾徽章;selection:clear;claude-api skill 的脈絡從約 200k 縮減至約 25k;在預先核准的檔案存取中一律拒絕 NT 命名空間(\??\)路徑;以及 Remote Control 的帳號切換與 effort 同步修正。擷取於2026年8月17日。 ↩

  52. Claude Code v2.1.229 版本說明,2026年8月12日。新增 claude remote-control --continue、供自架執行器使用的伺服器端提供 hooks、閘道串流的 SSE keepalive ping、具 mode: "link" 的 plugin 市集 command 來源、ListAgents 的 offline/cloud 標籤、工作流程扇出前綴錯開(CLAUDE_CODE_WORKFLOW_PREFIX_STAGGER_MS=0 可停用)、加括號 IPv6 位址的沙箱網域清單改為失敗即封閉、/commit-push-pr 對危險旗標的提示、Windows 上的 --base-dir 必填要求、VSCode 工作階段群組,以及可調整大小的 /btw。修正項目包括串流重複、窄終端機的 RangeError 當機、\\?\/UNC 路徑當機、自動模式歸屬標頭失效、閘道拒絕 1M /model、MCP OAuth 的 127.0.0.1 重新導向、GitHub Action 審查發布,以及 IDE 診斷停滯。擷取於2026年8月12日。 ↩

  53. Claude Code v2.1.169 版本說明與 Claude Code 變更日誌(正式版)。2026年6月8日。新增 --safe-mode 旗標與 CLAUDE_CODE_SAFE_MODE 環境變數(啟動時停用 CLAUDE.md、plugins、skills、hooks 與 MCP 伺服器,以便排除問題)、/cd 指令(將工作階段移至新的工作目錄而不破壞提示快取),以及 disableBundledSkills 設定與 CLAUDE_CODE_DISABLE_BUNDLED_SKILLS 環境變數(對模型隱藏內建 skills、工作流程與內建斜線指令)。另有約 20 項修正:換行列的上下鍵導覽、重新連線與 IDE 輸入設定上的企業 MCP 政策強制執行、使用 claude.ai 憑證時 macOS 介面 30 至 50ms 的停滯、claude -p 在 Windows 上的效能、Remote Control 重新連線、Windows Git Credential Manager 彈出視窗、自訂狀態列的頁尾提示、過時的遠端工作階段提示、claude agents --json 遺漏遭封鎖的工作階段、TaskCreate 輸入自動修復、較低的串流 CPU 用量、還原 Vertex/Foundry 閒置逾時、skill 標籤對比度,以及背景工作階段旗標在 retire→wake 之間的保留。擷取於2026年6月9日。 ↩

  54. Claude Code的正式CHANGELOG,2.1.299章節,擷取於2026年10月14日,以及同日讀取的@anthropic-ai/claude-code之npm registry中繼資料:2.1.299於2026年10月14日00:23 UTC發布,2.1.300於14:27 UTC發布;dist-tags為latest 2.1.299、next 2.1.300、stable 2.1.287;npm上沒有2.1.297或2.1.298,CHANGELOG也沒有這兩版或2.1.300的章節。GitHub發行版(02:49 UTC)包含190條項目,與CHANGELOG完全相同。本指南中所有v2.1.299項目的來源。重點引述:「終端機新增閒置壓縮:超過200K token的對話若閒置約54分鐘,會在其一小時提示快取過期前先行壓縮,讓您的下一則訊息不必重新處理全部內容」;「新增CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS以變更閒置壓縮的200K token下限;在settings.json中設定"idleCompaction": false可將其關閉。兩者皆需v2.1.290或更新版本」;「新增CLAUDE_CODE_DISABLE_FILE_MENTIONS環境變數:Claude只會取得@檔案提及的路徑,再以其檔案工具讀取,而非直接取得檔案內容」;「MCP允許規則現在只涵蓋其指名的伺服器:mcp__a不再允許名為a__b或a_的伺服器;請以伺服器完整的正規化名稱寫成mcp__<server>__*」;

    「agent的tools:清單現在只納入指名MCP伺服器的工具;名稱含有__的伺服器請寫成mcp__<whole name>__*」;「來自Anthropic位於api.anthropic.com的第一方MCP伺服器之MCP工具描述與伺服器指示,現在會完整送達Claude,而不再於4,096個字元處截斷」;「雲端工作階段與Remote Control的MCP連接器,在未擷取任何旗標的安裝上,現在預設協商MCP協定版本2026-07-28;可透過MCP_PROTOCOL_NEGOTIATION=legacy選擇退出」;「UserPromptSubmit hooks現在會在skill或自訂斜線命令展開之前執行,因此封鎖提示的hook現在也會一併阻止其內嵌的shell命令」;「turn.start mod hook現在也會收到subagents與隊友的回合,而不只是主迴圈的回合;可透過e.agentId區分(主迴圈上不存在此欄位)」;「修正了對不執行rm的shell -c指令碼仍跳出rm提示的問題。在Claude Code無法讀取的指令碼中於執行期組成的rm,不再觸發提示,除非設定CLAUDE_CODE_STRICT_INLINE_SHELL_RM_PROMPT=1」;

    「為claude self-hosted-runner orchestrator新增--shutdown-drain-sec:收到SIGTERM時停止輪詢,並給予進行中的輪詢與執行中的spawn hooks至多該秒數的時間完成」;「為claude plugin eval新增--disallow-tools與disallowed_tools案例欄位,可將Agent等特定內建工具排除在eval執行之外」;「新增關閉Claude Desktop的Code分頁中署名區塊的支援:在Claude apps gateway的code政策之env中設定CLAUDE_CODE_ATTRIBUTION_HEADER=0」;「在agent檢視中新增/effort與/fast,用於設定新工作階段的起始值;在該處單獨輸入/model、/effort或/fast現在會開啟選擇器」;「當plugin hook無法接收動作或無法回傳其判定時,該hook可封鎖的動作現在會被拒絕而非放行;已執行的工具,其結果會被扣留」;「修正2.1.296的回歸問題:雲端與無頭工作階段在重新啟動後恢復時,若恰好有新訊息抵達,可能會將已核准的工具呼叫執行兩次」;「網路安全防護通知不再要求使用者申請Cyber Verification Program」。 ↩

  55. Claude Code 文件,擷取於2026年10月14日。使用 advisor 工具升級困難決策:「advisor 工具屬於實驗性功能,需要 Anthropic API、AWS 上的 Claude Platform,或 Claude Models on Google Cloud (Anthropic managed)。在 AWS 上的 Claude Platform 或 Claude Models on Google Cloud (Anthropic managed) 上,需要 Claude Code v2.1.300 或更新版本。在 Amazon Bedrock、Google Cloud 的 Agent Platform 或 Microsoft Foundry 上無法使用」;「advisor 會收到完整的對話,包括每一次工具呼叫與結果,並回傳指引,由 Claude 在繼續之前套用」;「以伺服器工具的形式在 Anthropic 的基礎設施上於伺服器端執行,訂閱帳戶與以 API 計費的帳戶皆可使用」;「沒有任何設定可以限制或強制 advisor 呼叫」;三種啟用方式:「/advisor 命令」、「advisorModel 設定」、「--advisor 旗標」;/advisor 的文字形式「需要 Claude Code v2.1.260 或更新版本」;「claude --help 中並未列出 --advisor」;配對列「Opus 4.7 或 Opus 4.8 | Fable、Opus 4.7 或更新版本、Sonnet 5.5」、「Sonnet 5.5 | Fable、Opus 5 或更新版本、Sonnet 5.5」、「Opus 5 或 Opus 5.5 | Fable、Opus 5 或更新版本」、「Fable 5.1 | Fable 5.2 或 Fable 5.1」;「Haiku 4.5 可以呼叫 advisor,但無法擔任 advisor」;「子代理會繼承設定好的 advisor,並依其自身的模型套用相同的配對檢查」;「若 API 拒絕 Claude Code 所附加之 advisor 的配對,Claude Code 會在不附加 advisor 的情況下重新傳送該請求。對話會在沒有 advisor 的狀態下繼續,因此您不會看到錯誤,也不會有任何 advisor 呼叫」;2026年11月25日重新讀取;措辭已有變動的引文,改以當日的措辭呈現。

    費用:「advisor token 依 advisor 模型的輸入與輸出費率計費」、「advisor 用量會計入您方案的用量上限,但 Fable advisor 會以用量點數計費」;「切換 /advisor 會保留快取的前綴」;「advisor 模型自身讀取對話的部分不會被快取」;需求包括「功能旗標擷取」,因此若設定 DISABLE_TELEMETRY,「advisor 會保持關閉」;CLAUDE_CODE_DISABLE_ADVISOR_TOOL=1:「/advisor 命令將無法使用,任何已設定的 advisorModel 都會被忽略。--advisor 旗標會被接受但沒有作用」;逐字稿狀態「Reviewed」、「Declined」、「Unavailable」。CLI 參考:--advisor <model>「為此工作階段啟用伺服器端 advisor 工具,可使用模型別名 fable、opus 或 sonnet,或完整的模型 ID。在此工作階段中優先於 advisorModel 設定」。設定參考:advisorModel「選擇 Claude 詢問 advisor 工具時由哪個模型回答」。環境變數:CLAUDE_CODE_DISABLE_ADVISOR_TOOL,以及 CLAUDE_CODE_GZIP_REQUEST_BODIES「設為 0 可關閉傳送至 api.anthropic.com 的 Claude API、遙測與成品發布請求本文的 gzip 壓縮」。Mods 參考:仍然標示「截至 v2.1.290」;沒有 virtualText、$.ui.view 或 prompt.change 的條目。2026年11月10日重新讀取:該頁面現在寫著「advisor 工具屬於實驗性功能,需要 Anthropic API 或 AWS 上的 Claude Platform。在 AWS 上的 Claude Platform 上,需要 Claude Code v2.1.300 或更新版本。在 Amazon Bedrock、Google Cloud 的 Agent Platform 或 Microsoft Foundry 上無法使用」,且配對表格新增了幾列(請參閱 284)。 ↩

  56. Claude Code 正式 CHANGELOG,2.1.301 與 2.1.302 兩節,擷取於2026年10月17日(太平洋時間 15:40),以及同時讀取的 @anthropic-ai/claude-code npm registry 中繼資料:2.1.301 於10月15日 14:34 UTC 發布,2.1.302 於10月16日 16:48 UTC 發布;dist-tags latest 為 2.1.302、next 為 2.1.302、stable 為 2.1.292。GitHub 發行版 v2.1.301(19:22 UTC,51 項)與 v2.1.302(20:53 UTC,63 項)與 CHANGELOG 完全一致。本指南中所有 v2.1.301 與 v2.1.302 項目的來源。重點引文,2.1.302:”Changed claude -p and Agent SDK sessions with no permission mode to start in default mode on third-party providers, with telemetry off or on a fresh install; --permission-mode auto keeps auto”;”Changed fork subagents (subagent_type: "fork") to be on by default in claude -p, the Agent SDK, the desktop app and VS Code, as they already are in the terminal; CLAUDE_CODE_FORK_SUBAGENT=0 turns them off, and claude mcp serve never offers them”;”Changed the desktop app and VS Code to always run the main conversation’s subagents in the background, as the terminal does, rather than let Claude choose; a subagent’s own Agent calls in claude -p, the Agent SDK, the desktop app and VS Code now run in the foreground by default”;

    “Changed prompt and agent hooks so that at most 12 of one event run at a time; the rest wait their turn”;”Added CLAUDE_CODE_AUTO_MODE_MODEL to choose the model the client-side auto mode classifier uses; it does not change the model for server-side auto mode”;”Added an Idle compaction row to /config for turning idle compaction off or back on; the notices shown after an idle compaction now say how to turn it off”;”Added a notice to /design-sync and /design-login that standalone Claude Design (claude.ai/design) closes by December 14, 2026”;”Fixed the Read tool loading an image file of any size, or a pipe or device named like an image, entirely into memory; image sources over 128 MB are now refused”;”Improved auto mode with the server-side classifier: a conversation too long for the safety check is now compacted, instead of every checked tool call being denied”。

    2.1.301:”Added CLAUDE_CODE_RETRY_WATCHDOG_MAX_USAGE_LIMIT_WAIT_MS so unattended retry mode (CLAUDE_CODE_RETRY_WATCHDOG) ends a request at a usage limit that resets too far away instead of waiting”;”Added the % motion to vim mode: jump to the matching bracket, alone or with d/c/y”;”Added rows to a mod’s Input: a text field of several lines in the terminal, where Enter submits and Shift+Enter or a backslash before Enter starts a new line”;”Added classifier_verdict and permission_mode to OpenTelemetry tool_decision events, so auto mode classifier decisions can be told apart from permission rules”;”Added classifier_category to OpenTelemetry tool_decision events, naming the built-in rule a classifier block matched, when OTEL_LOG_TOOL_DETAILS=1“;”Fixed the fable (and best) model alias erroring on the Anthropic API when the newest Fable model is not available to your organization: Claude Code now retries once on the previous Fable model”;”Improved switching to a model with a smaller context window: a conversation too long for the new model is now summarized by the previous model first”;”Changed a mod hook’s .catch handler to run only when the hook throws or times out; events raised beneath the hook’s own calls now skip that hook without asking its .catch“;”Changed a mod’s $.env.set to resolve with {} once the variable is set or unset, or with { deny } saying why when the write is not made”。 ↩

  57. Claude Code 正式 CHANGELOG,2.1.303 至 2.1.310 各節,擷取日期為2026年10月23日(太平洋時間17:20),以及同時讀取的 @anthropic-ai/claude-code npm 登錄檔中繼資料:2.1.303 於10月18日 21:15 UTC 發布,2.1.304 於10月19日 19:47 UTC,2.1.305 於10月20日 19:29 UTC,2.1.306 於10月21日 02:28 UTC,2.1.307 於10月21日 20:47 UTC,2.1.308 於10月22日 04:19 UTC,2.1.309 於10月22日 20:34 UTC,2.1.310 於10月23日 21:20 UTC;dist-tags 為 latest 2.1.310、next 2.1.310、stable 2.1.308。GitHub 各版本分別包含 1、76、38、2、43、1、79 與 26 個條目,與 CHANGELOG 一致。本指南中所有 v2.1.303 至 v2.1.310 項目的來源。

    重要引文,2.1.304:「Added /auto-mode-setup: a guided setup that reads your project and recent sessions to teach auto mode about your environment, now also available on Bedrock, Vertex, Foundry, Claude apps gateway and telemetry-disabled sessions」;「Added decider: "person" to a mod’s tool.check answer: only the permission dialog or a host’s callback can approve the ask, and it is refused with the mod’s reason where nobody can be asked」;「Added a warning on Pro and Max plans when resuming an inactive conversation would use a noticeable share of your 5-hour usage limit」;「Changed tool search to be on by default behind a custom ANTHROPIC_BASE_URL; a 400 or 422 from the gateway is retried without it」;「Changed mods’ settings.read hooks to receive each settings layer and rewrite the merged settings, so a managed mod can make an organization’s setting a ceiling」;「Changed skill hooks: the skills of one source (a repo, your own folder, or a plugin) can register at most 1,024 hooks and 16,384 matcher characters per session」。

    2.1.305:「Added sandbox.allowNestedUserNamespaces so sandboxed commands on Linux can create user namespaces (Chromium, rootless podman); this lets them get around the sandbox’s file protections」;「Added CLAUDE_CODE_RETRY_WATCHDOG_USAGE_LIMIT_RECHECK_MS so unattended retry mode (CLAUDE_CODE_RETRY_WATCHDOG) notices a usage limit that was lifted before its reset」;「Fixed every request failing on Vertex, Bedrock and other providers when the endpoint or a gateway rejects tool search, and behind gateways with ToolSearch disallowed or left out of --tools (a 2.1.304 regression): Claude Code now retries without it」;「Improved /usage: each warning is now a one-line fix that names its source, and f applies the fixes; the same fixes appear in VS Code and /doctor」;「Changed allowedMcpServers to stop filtering managed-mcp.json stdio servers that use ${VAR} only in env: one your allowlist left out now loads on upgrade; use deniedMcpServers to keep it off」。

    2.1.307:「Added /claude-api api-version to move Claude API code to API version 2026-10-21」;「Added the claude_code.safety_event OpenTelemetry event for each tool call a permission rule, auto mode, a safety check, a hook or the sandbox stopped, prompted or sent back」;「Improved fork subagents launched together: each is now told which launch is its own, so forks are much less likely to try to start each other’s work」;「[Code Review] Added @claude review stop (also off and pause) to Code Review, ending an @claude review always subscription on a pull request without starting a new review」。2.1.309:「Fixed sandboxed Bash commands on macOS and Linux running the shell’s startup files outside the sandbox before each command」;「Changed sed -i to get the standard Bash prompt and run as written, not a simulated file-edit preview; like other Bash edits, it is no longer restored by /rewind」;「Changed claude ultrareview to require workspace trust: it asks on a terminal, else refuses; scripts pass --trust-workspace, which takes no value (put a PR number or base branch before it), or set CLAUDE_CODE_DISABLE_ULTRAREVIEW_TRUST_CHECK=1」;「Fixed sessions compacting repeatedly after reading files under a very large nested CLAUDE.md; a nested CLAUDE.md over the size limit now loads only its start」;「Changed worktree creation and reuse so git no longer fetches objects on demand, in ordinary clones and in partial clones with a Bash sandbox configured; such a partial clone fetches them first」。

    2.1.310:「Added the Monitor tool and plugin monitors on Bedrock, Vertex, and Foundry, and when telemetry or nonessential traffic is disabled; long foreground sleeps are now blocked there too」;「Fixed requests failing behind some gateways and compatible servers that reject the effort-2025-11-24 beta value or mid-conversation system messages; Claude Code now retries without them」;「Linux: Improved /sandbox and the sandbox startup warning to name Ubuntu’s AppArmor restriction on user namespaces, and how to lift it, when it keeps bubblewrap from starting the sandbox」。 ↩↩↩↩

  58. Claude Code 文件,擷取於2026年10月23日。現已正式記載:環境變數列出 CLAUDE_CODE_RETRY_WATCHDOG_USAGE_LIMIT_RECHECK_MS、CLAUDE_CODE_DISABLE_ULTRAREVIEW_TRUST_CHECK(「請在啟動 Claude Code 的環境中設定,而非設定檔的 env」)、CLAUDE_CODE_AUTO_COMPACT_WINDOW(「200k 這類帶後綴的值需要 v2.1.304 或更新版本」)以及 CLAUDE_CODE_AUTO_MODE_MODEL(「請使用完整的模型 ID」),並改稱 CLAUDE_CODE_FORK_SUBAGENT「控制 fork 模式,該模式預設開啟」;設定參考列出 sandbox.allowNestedUserNamespaces(「使用者或受管」);auto mode 設定頁面寫有「使用 /auto-mode-setup 產生環境項目」;費用頁面:「當 /usage 頁尾顯示 f to fix 2 of 3 這類提示時,按下 f 即可讓 Claude Code 執行它能處理的建議。f 快捷鍵需要 Claude Code v2.1.305 或更新版本」;斜線指令列出 /claude-api api-version(「v2.1.307 或更新版本」)與 managed-agents-secure [<agent-id>];監控列出 safety_event 與 classifier_verdict(「需要 Claude Code v2.1.301 或更新版本」);

    ultrareview頁面記載了 --trust-workspace(「不接受任何值:請將 PR 編號或基底分支放在它前面」)以及 Error: Workspace not trusted 的結束狀態;程式碼審查頁面列出 Quick、Standard 與 Deep 三個層級;hooks載有 1,024 個 hook 與 16,384 字元的上限;mods 參考將 e.isReadOnly 標註為「v2.1.304 或更新版本」;沙箱頁面載有 Ubuntu AppArmor 設定檔;而權限模式表格現在寫為「claude -p 或 Agent SDK | default」,與 v2.1.302 一致。仍僅見於發行說明的有:decider: "person"、settings.read 層級、@claude review stop、sed -i 的變更、自訂 base URL 下的工具搜尋預設行為、Pro 與 Max 方案的工作階段恢復警告、--checkout-hook-timeout-min、multiagent_20261001、CLAUDE_CODE_RETRY_WATCHDOG_MAX_USAGE_LIMIT_WAIT_MS、Claude Design 的結束日期,以及 mod 新增的 $.env.set、virtualText、$.ui.view 與 prompt.change;advisor頁面仍寫著該工具「無法在 Amazon Bedrock、AWS 上的 Claude Platform、Google Cloud 的 Agent Platform 或 Microsoft Foundry 使用」。 ↩↩

  59. 使用排程任務自動化工作,Claude Code 文件,擷取於2026年10月26日:「建立排程任務(前身為 routines),可依排程、在 API 呼叫時或在 GitHub 事件發生時於雲端執行」;「排程任務目前處於研究預覽階段」;「執行頻率高於每小時一次的運算式會被拒絕」;每小時上限表格(每個帳戶每小時 100 次排程執行;Run now、API 觸發與重新執行一次性任務則為每個任務每小時 30 次);「/schedule 的 /routines 別名」;「從 CLI 新增需要 Claude Code v2.1.225 或更新版本」;Scheduled tasks (Was Routines) 切換開關。在 Claude Code Desktop 排程週期性任務,同次擷取:「僅在應用程式開啟且電腦處於喚醒狀態時觸發」,以及 Cloud、Desktop 與 /loop 的比較表格。 ↩

  60. Claude Code CHANGELOG,v2.1.311 至 v2.1.317(提交時間為 2026-10-26T21:51Z、10-27T20:23Z、10-30T01:06Z、10-31T01:01Z 與 11-03T01:25Z),以及對應的 GitHub 發行版本 v2.1.311(2026-10-26T21:51:23Z)、v2.1.312(10-27T20:24:20Z)、v2.1.314(10-30T01:06:26Z)、v2.1.316(10-31T01:01:35Z)與 v2.1.317(11-03T01:25:46Z),各版內容均與其 CHANGELOG 章節完全相同;npm 發布時間取自 npm view @anthropic-ai/claude-code time:2.1.311 為 2026-10-26T19:47:57Z、2.1.312 為 10-27T18:36:10Z、2.1.314 為 10-30T00:12:56Z、2.1.315 為 10-30T21:05:24Z(無 CHANGELOG 條目,亦無 GitHub 發行版本)、2.1.316 為 10-31T00:42:05Z、2.1.317 為 11-02T23:57:53Z;2026-11-02 當日的 dist-tags:latest 與 next 為 2.1.317,stable 為 2.1.311。原文摘錄,2.1.311:「將互動式終端機中的 ultrathink 改為透過 Anthropic 的 API,在 Opus 5.5、Sonnet 5.5、Haiku 5.5 與 Fable 5.1 上以 xhigh 強度等級執行該輪;若在 Claude 工作期間輸入,則提升該輪剩餘部分的強度」。2.1.316:「自2026年10月30日起棄用 Opus 4.8 的快速模式;將於2026年11月30日移除。移除後,Opus 4.8 上的快速模式請求會回傳錯誤,且不會回退至標準 Opus 4.8。請遷移至 Opus 5.5 以保留加速效果」。2.1.314:「新增 permissions.blockWritesOutsideWorkingDirectories:在所有權限模式下,Write、Edit 與 NotebookEdit 均拒絕工作目錄以外的路徑」。2.1.312:「將 prompt 與 agent hooks 改為每個工作階段最多同時執行 24 個(含 subagents),其中等待時間超過其事件逾時的最多 12 個;timeout 低於 1 秒者現在以 1 秒計」;「Claude Code 不再傳送 claude_code.safety_event OpenTelemetry 事件」。2.1.317:「在 OTel 指標、事件與 span 中新增 anthropic.plan、anthropic.seat_type、anthropic.provider 與 anthropic.custom_base_url」。 ↩

  61. Claude Code CHANGELOG,v2.1.318 至 v2.1.322(提交時間為 2026-11-04T00:00Z、11-06T17:03Z、11-09T19:22Z 與 11-10T02:29Z),以及對應的 GitHub 發行版本 v2.1.318(2026-11-04T00:01:03Z)、v2.1.319(11-06T17:04:01Z)、v2.1.321(11-09T19:22:30Z)與 v2.1.322(11-10T02:29:43Z),各版內容均與其 CHANGELOG 章節完全一致(分別為 84、146、118 與 1 條項目);v2.1.320 沒有任何標籤、發行版本或 CHANGELOG 章節。npm 發布時間取自 npm view @anthropic-ai/claude-code time:2.1.318 為 2026-11-03T21:55:17Z、2.1.319 為 2026-11-06T00:58:56Z、2.1.321 為 2026-11-09T19:02:47Z、2.1.322 為 2026-11-10T01:58:41Z;2026-11-10 時的 dist-tags:latest 為 2.1.322、next 為 2.1.322、stable 為 2.1.311。2.1.321 原文:「Added Claude Fable 5.2 (claude-fable-5-2), now the default Fable model」,並附「1M context, $8/$40 per Mtok with $0.20/Mtok cache reads」;「Changed saved Fable 5.1 model picks to move to fable: on Pro and Max plans at once, on Team and Enterprise plans once your organization allows it; use /model claude-fable-5-1 to switch back」;「Added --settings <file> to claude remote-control, which applies a settings file to every session it starts」;「Changed mods Claude writes to turn on without asking in auto and bypass modes … and not to load in dontAsk mode」;「Changed mods’ own tool calls ($.tool.call, $.mcp.call) to raise no permission prompt」。2.1.322:「Added fast mode on Vertex in the global, us and eu regions, falling back to standard speed if Vertex refuses it」。

    2.1.319:「Changed auto mode with telemetry or feature flags off, including behind LLM gateways: calls the server can’t check are asked about or denied, with no fallback to the built-in classifier; set CLAUDE_CODE_AUTO_MODE_SERVER=0 to keep using it (Bedrock, Vertex and Foundry are unchanged)」;「Added support for MCP tasks in the terminal」;「Added permissions.denyInsteadOfPrompting setting: a tool call that would wait on a permission prompt is denied and the turn continues, in terminal sessions, subagents and teammates」;「Added the CLAUDE_CODE_DISABLE_FEATURE_FLAGS environment variable, which stops feature-flag fetching without turning off telemetry」;「Changed MCP tasks to work in the terminal without feature-flag fetching (Bedrock, Vertex, Foundry, LLM gateways, DISABLE_TELEMETRY); set CLAUDE_CODE_DISABLE_MCP_TASKS=1 to turn them off」;「Changed self-paced /loop to end when a turn finishes without rescheduling … set CLAUDE_CODE_LOOP_KEEPALIVE=1 to keep the old behavior」;「Removed shortcuts_list and shortcuts_execute … from Claude Code’s built-in Claude in Chrome tools」。2.1.318:「Added the date a stored claude.ai sign-in ends to claude auth status (loginExpiresAt) and to claude -p JSON results (credential_expires_at)」;「Changed Claude Code to no longer install or update the IDE extension when started in an IDE terminal」;「Changed background subagents to move a shell command to the background after 3 minutes on all providers」。 ↩↩↩↩

  62. Anthropic 文件,擷取於2026年11月10日。Claude Fable 5.2 模型總覽:「2026年11月9日發布」;「上下文視窗:1M token · 最大輸出:128K token · 輸入定價:$8 / MTok · 輸出定價:$40 / MTok」;定價表格(5 分鐘快取寫入 $10、1 小時快取寫入 $16、快取讀取 $0.20);「預設 effort | high」;「可靠知識截止日期 | 2026年6月」;「需要 30 天的資料保留,除非經 Anthropic 明確授權,否則無法在 Zero Data Retention 下使用」;Mythos 5.2「與 Claude Fable 5.2 共用相同的規格與定價」。定價:Fable 5.2 這一列($8 / $10 / $16 / $0.20 / $40)、Fable 5.1 這一列($10 / $12.50 / $20 / $0.25 / $50)、「Claude Fable 5.2、Claude Mythos 5.2、Claude Fable 5.1 與 Claude Mythos 5.1 的快取命中與重新整理按基礎輸入價格的 0.025 倍計價」、快速模式表格(「Claude Fable 5.2 | $16 USD / MTok | $80 USD / MTok」),以及「Claude Fable 5.2 的快速模式也可在 Claude Models on Google Cloud 上使用」。推出 Claude Fable 5.2 與 Claude Mythos 5.2。

    模型設定:「best | 使用與 opus 相同的模型」(Wayback Machine 於11月2日、6日與9日對同一頁面的存檔寫的是「在可使用 Fable 的環境中,使用 fable 別名所解析的模型」);「fable 別名在 Claude apps gateway 工作階段中解析為 Fable 5,在其他所有環境中解析為 Fable 5.2」;「在任何方案或供應商上,都沒有任何 Fable 模型是帳號類型的預設模型」;「在 Pro、Max、Ultra、Team 與 Enterprise 方案上,儲存在使用者設定中的 claude-fable-5-1 模型會改為 fable 別名」;「Fable 5.2 需要 Claude Code v2.1.321 或更新版本」;「Fable 5.2、Opus 5.5、Sonnet 5.5 與 Haiku 5.5 預設為 medium,Opus 4.7 則預設為 xhigh」。快速模式:「Claude Fable 5.2 與 Claude Opus 5.5 的快速模式已可使用。Claude Opus 5 與 Claude Opus 4.8 的快速模式處於研究預覽階段」;「Fable 5.2 為 $16/$80,Opus 5.5 為 $8/$40,Opus 5 與 Opus 4.8 為 $10/$50」;「Fable 5.2 上的快速模式需要 Claude Code v2.1.321 或更新版本」;「在 Fable 5.2 上,只有在您使用 Fable 5.2 時開啟的快速模式才會保留」;Agent Platform 章節(「需要 Claude Code v2.1.322 或更新版本」、「export VERTEX_REGION_CLAUDE_FABLE_5_2=global」、「Fast mode needs Vertex region global, us or eu」(快速模式需要 Vertex 區域為 global、us 或 eu)、「Using standard speed on Fable 5.2 · fast mode wasn’t available」(以標準速度使用 Fable 5.2 · 無法使用快速模式))。所有設定:「permissions.denyInsteadOfPrompting … 需要 Claude Code v2.1.319 或更新版本」;「範圍:使用者或受管,以及 --settings。儲存庫無法替您設定此項」;「denyInsteadOfPrompting 還會阻止哪些操作」清單。

    環境變數:CLAUDE_CODE_DISABLE_FEATURE_FLAGS(「需要 Claude Code v2.1.319 或更新版本 … 舊名稱 DISABLE_GROWTHBOOK 仍可使用,而且 v2.1.124 至 v2.1.318 只會讀取這個名稱」)、CLAUDE_CODE_DISABLE_MCP_TASK_BACKGROUND(「需要 Claude Code v2.1.304 或更新版本」)。MCP:「MCP 任務在 Claude Code CLI 中處於公開測試階段,需要 Claude Code v2.1.304 或更新版本」;「呼叫要成為 MCP 任務需要什麼」清單;「單次的 claude -p "<prompt>" 執行不會取得 MCP 任務」。費用:「訂閱方案定價(Pro、Max、Ultra、Team、Enterprise)」;claude.com/pricing:「Free、Pro、Max、Ultra、Team 與 Enterprise 等方案層級」。使用 advisor 工具升級困難決策,依主模型列出可接受的 advisor:「Haiku 4.5 | Fable、Opus、Sonnet、Haiku 5.5」、「Sonnet 4.6 | Fable、Opus、Sonnet、Haiku 5.5」、「Opus 4.6 | Fable、Opus、Sonnet 5 或更新版本、Haiku 5.5」、「Sonnet 5 或 Haiku 5.5 | Fable、Opus 4.7 或更新版本、Sonnet 5 或更新版本、Haiku 5.5」、「Opus 4.7 或 Opus 4.8 | Fable、Opus 4.7 或更新版本、Sonnet 5.5」、「Sonnet 5.5 | Fable、Opus 5 或更新版本、Sonnet 5.5」、「Opus 5 或 Opus 5.5 | Fable、Opus 5 或更新版本」、「Fable 5 | Fable 5.2、Fable 5.1 或 Fable 5」、「Fable 5.1 | Fable 5.2 或 Fable 5.1」、「Fable 5.2 | Fable 5.2」;「Fable 5.2 需要 Claude Code v2.1.321 或更新版本,Fable 5.1 則需要 v2.1.257 或更新版本」。 ↩

  63. 使用 skills 擴充 Claude,Claude Code 文件,擷取於2026年11月10日:「自訂指令已併入 skills。您現有的 .claude/commands/ 檔案仍可繼續使用。」以及術語表中的「位於 .claude/commands/deploy.md 的檔案與位於 .claude/skills/deploy/SKILL.md 的檔案都會建立 /deploy,運作方式相同;現有的指令檔案仍可繼續使用。」;「每個 skill 都需要一個 SKILL.md 檔案」;「在 skill 清單中,description 與 when_to_use 合併後的文字會在 1,536 個字元處截斷」;「allowed-tools 欄位會在呼叫該 skill 的回合中,授予所列工具的權限 … 它不會限制哪些工具可用」;「若要在 skill 啟用期間將工具從 Claude 的可用工具中移除,請將它們列在 disallowed-tools 中」;$N 是「$ARGUMENTS[N] 的簡寫,例如 $0 代表第一個引數,$1 代表第二個」;位於 .claude/commands/ 子目錄中的檔案,會以「相對於 commands/ 的子目錄路徑,並將每個 / 替換為 :」命名,例如 /frontend:component;「在本機終端機工作階段中,您的 skill 會取代內建指令,但不會取代其別名」;disable-model-invocation:「設為 true 可防止 Claude 自動載入此 skill。」2026年11月25日重新讀取;措辭已有變動的引文,改以當日的措辭呈現。 ↩↩↩↩↩↩↩

  64. 模型設定與互動模式,Claude Code 文件,擷取於2026年11月10日。模型設定:「Fable 模型、Sonnet 5 及之後的版本、Haiku 5.5,以及 Opus 4.7 及之後的版本一律使用自適應推理。固定思考預算模式與 CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING 不適用於這些模型」;「在 Opus 5.5、Sonnet 5.5、Haiku 5.5 或 Fable 模型上無法關閉思考。工作階段開關與 /config 中的那一列會顯示 Thinking can't be turned off」;effort 表格(Fable 模型以及「Opus 5.5、Sonnet 5.5、Haiku 5.5、Opus 5、Sonnet 5、Opus 4.8 與 Opus 4.7」:low、medium、high、xhigh、max;Opus 4.6 與 Sonnet 4.6:low、medium、high、max);「Fable 5.2、Opus 5.5、Sonnet 5.5 與 Haiku 5.5 預設為 medium,Opus 4.7 則預設為 xhigh。effort 等級表格中的其他模型預設為 high」;ultrathink 適用於「Opus 5.5、Sonnet 5.5、Haiku 5.5、Fable 5.2 或 Fable 5.1 模型」;「所有產生的思考 token 都會計費,即使已摺疊或遮蔽也是如此。」互動模式:「Option+T(macOS)或 Alt+T(Windows/Linux)」可切換延伸思考,且「對 Opus 5.5、Sonnet 5.5、Haiku 5.5 或 Fable 模型沒有作用」。 ↩

  65. 指令,Claude Code 文件,擷取於2026年11月10日(120 個指令)。引用此頁的每一列皆以此為來源;例如 /memory:「編輯 CLAUDE.md 檔案、啟用或停用自動記憶,以及檢視自動記憶的項目」;/tasks:「檢視並管理目前工作階段中的背景工作,包括已完成的 subagents。也可透過 /bashes 使用」;/loop [interval] [prompt]:「省略間隔時,Claude 會在每次迭代之間自行定步」;/simplify [target]:「此審查不會尋找正確性錯誤。若要找出錯誤,請使用 /code-review」;/passes:「與朋友分享一週免費的 Claude Code。僅在您的帳號符合資格時顯示」;/ultraplan:「已移除。請改用規劃模式」;/vim:「已於 v2.1.92 移除」。該頁面沒有 /buddy 這一列;同次擷取的 CHANGELOG 載有它唯一的一行第一方說明「/buddy is here for April 1st」,以及 2.1.154 條目「/simplify now runs a cleanup-only review (reuse, simplification, efficiency, altitude) and applies the fixes」。Ctrl+T 的說明取自互動模式:「切換程式碼區塊的語法醒目提示 … 僅在 /theme 選擇器選單中有效」;按鍵綁定的路徑取自自訂快捷鍵:「執行 /keybindings 以建立或開啟位於 ~/.claude/keybindings.json 的設定檔。」 ↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩↩

  66. 以 artifacts 分享工作階段輸出,Claude Code 文件,擷取於2026年11月10日:「Artifacts 適用於 Pro、Max、Ultra、Team 與 Enterprise 方案」;「在 Team 與 Enterprise 方案上,則為您的組織所開啟的範本。」;「若您以 /design 指令啟動 Design 範本,則需要 Claude Code v2.1.265 或更新版本」;指令,/slides:「需要 Claude Code v2.1.265 或更新版本、可使用 artifacts 的工作階段,以及可使用 Slides 範本的帳號;否則此指令不會出現。」。2026年11月25日重新讀取;措辭已有變動的引文,改以當日的措辭呈現。 ↩↩

  67. Claude Code Docs,「所有設定」;Claude Code Docs,「驗證」;Claude Code CHANGELOG;以及 @anthropic-ai/claude-code 的 npm registry 紀錄。擷取於2026年11月11日。設定參考中的 modelPricing 項目:「Claude Code 不會從您的合約或 Claude Console 讀取它們。需要 Claude Code v2.1.242 或更新版本。」驗證頁面中關於不使用 API 金鑰登入的說明:「在 /login 提示中選擇 Anthropic Console 帳號後,Claude Code 會詢問您要以何種方式登入。需要 Claude Code v2.1.242 或更新版本。」CHANGELOG 有 2.1.243 章節與 2.1.241 章節,但沒有 2.1.242 章節;它在 2.1.243 之下列出「Added modelPricing managed setting so an organization’s contracted per-model rates and discount multiplier are used for /cost, the status line, and telemetry cost figures instead of list price」與「Added a keyless sign-in under /login → Anthropic Console」。registry 的 time 欄位將 2.1.242 的時間記為 2026-08-24T19:16:14.767Z,2.1.243 記為 2026-08-24T23:10:45.498Z。 ↩

  68. 指令,Claude Code 文件,擷取於2026年11月11日。/usage:「顯示工作階段費用、方案用量上限與活動統計。在 Pro、Max、Ultra、Team 或 Enterprise 方案上,會包含計入方案上限之項目的明細。」;「/cost 與 /stats 是別名」。/skill-doctor:「需要 Claude Code v2.1.252 或更新版本,以及擷取功能旗標」。CHANGELOG,同次擷取:2.1.149,「/diff detail view can now be scrolled with the keyboard」;2.1.222,「to use raw git blob content, ignoring workspace-configured diff drivers and textconv」;2.1.243,「Added a Loops breakdown to /usage: per-loop run count, total tokens, tokens per run, and last run」;2.1.305,「each warning is now a one-line fix that names its source, and f applies the fixes; the same fixes appear in VS Code and /doctor」。 ↩↩↩

  69. 指令,Claude Code 文件,擷取於2026年11月11日:指令表格中沒有 /commit-push-pr 這一列。安裝與管理 plugins,同次擷取:Anthropic 官方市集中的 commit-commands plugin「新增用於提交、推送與開啟 pull request 的指令」,以 /plugin install commit-commands@claude-plugins-official 安裝。該 plugin 的 README,同日,關於 /commit-push-pr:「完整的工作流程指令,一步完成提交、推送並建立 pull request。」 ↩

  70. Claude Code Docs,「環境變數」,以及 Claude Code Docs,「所有設定」。擷取於2026年11月11日。CLAUDE_CODE_DISABLE_WORKFLOWS:「等同於 disableWorkflows 設定」。disableWorkflows 項目:「CLAUDE_CODE_DISABLE_WORKFLOWS 會在單一工作階段中關閉工作流程;兩者之中任一個將其關閉後,另一個都無法再將其開啟」。enableWorkflows 項目:「在 /config 中顯示為 Dynamic workflows,會將此鍵寫入您的使用者設定」以及「未設定,因此除非您使用 Pro 方案(該方案預設關閉),否則工作流程皆為開啟」。MAX_THINKING_TOKENS:「未設定且已啟用思考時,具備自適應推理的模型會自行選擇思考深度,其他模型則使用該上限。」;「設為 0 可在 Anthropic API 上停用思考,但 Opus 5.5、Sonnet 5.5、Haiku 5.5 與 Fable 模型除外,這些模型無法關閉思考。在第三方供應商上,0 則會改為省略 thinking 參數。」;「若為正值,在採用自適應推理的模型上,Claude Code 會忽略該數值本身,除非 CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING 關閉了自適應推理」。CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING:「設為 1 可在 Opus 4.6 與 Sonnet 4.6 上停用自適應推理,並退回由 MAX_THINKING_TOKENS 控制的固定思考預算。對 Fable 模型、Sonnet 5 及之後的版本、Haiku 5.5,或 Opus 4.7 及之後的版本沒有作用,這些模型一律使用自適應推理」。 

  71. 指令,Claude Code 文件,擷取於2026年11月11日。/resume [session]:「依 ID 或名稱恢復對話,或開啟工作階段選擇器。」;「別名:/continue」。 ↩

  72. 以快速模式加快回應,Claude Code 文件,擷取於2026年11月11日:「快速模式是適用於支援模型的高速設定,能讓模型最高快 2.5 倍,但每 token 的費用較高。」定價,Claude Platform 文件,同次擷取:「以溢價定價提供最高 2.5 倍的每秒輸出 token 數」。 ↩

  73. Claude Code CHANGELOG,v2.1.323 至 v2.1.332,擷取於2026年11月25日(2.1.323、2.1.325、2.1.326、2.1.327、2.1.328、2.1.329、2.1.330、2.1.331 與 2.1.332 分別有 294、139、367、173、144、130、142、135 與 150 條最上層項目;沒有 2.1.324 章節),以及 GitHub 發行版本 v2.1.323(2026-11-12T22:12:13Z)、v2.1.325(11-13T20:40:01Z)、v2.1.326(11-16T22:11:05Z)、v2.1.327(11-17T23:17:45Z)、v2.1.328(11-19T01:14:04Z)、v2.1.329(11-19T22:14:41Z)、v2.1.330(11-20T22:32:56Z)、v2.1.331(11-23T21:34:41Z)與 v2.1.332(11-25T01:32:14Z);不存在 v2.1.324 發行版本。npm 發布時間取自 npm view @anthropic-ai/claude-code time:2.1.323 為 2026-11-12T20:29:28Z、2.1.324 為 11-13T18:42:36Z、2.1.325 為 11-13T20:07:25Z、2.1.326 為 11-16T18:43:39Z、2.1.327 為 11-17T20:33:19Z、2.1.328 為 11-18T23:09:39Z、2.1.329 為 11-19T18:40:25Z、2.1.330 為 11-20T19:16:01Z、2.1.331 為 11-23T18:36:26Z、2.1.332 為 11-24T22:06:38Z;2026-11-25 當日的 dist-tags:latest 2.1.332、next 2.1.332、stable 2.1.326。2.1.332 原文:「Changed the default model on Microsoft Foundry to Sonnet 5.5: deploy claude-sonnet-5-5, or set ANTHROPIC_DEFAULT_SONNET_MODEL to a model you have deployed」;「Changed the sonnet model alias on Google Cloud’s Agent Platform and Microsoft Foundry to Sonnet 5.5, and Foundry’s opus alias to Opus 5.5; sonnet on Amazon Bedrock stays at Sonnet 4.5」;「Added a PreSkillShellCommand hook event that can refuse a skill or command’s inline shell commands as it loads; on 2.1.331 and older, a settings file naming it opens a dialog at start」;「Added skills from MCP servers (beta). They show as server:skill in the / menu; other skills keep their names」;「Changed /schedule, permission prompts and /loop’s cloud offer to say “cloud scheduled task” instead of “routine” or “cloud schedule”; /routines still works」。2.1.330:「Changed recurring scheduled tasks and /loop to run up to 30 days instead of 7 while their session keeps running, and say when they end; tasks made before this release still end at 7 days」。2.1.328:「Added auto mode for Claude Opus 4.6 and Sonnet 4.6 on Amazon Bedrock, Google Cloud’s Agent Platform, Microsoft Foundry and Claude apps gateway; interactive sessions with no permission mode start in it」。2.1.325:「Changed sandboxed Bash commands to follow the normal permission flow by default; set sandbox.autoAllowBashIfSandboxed: true to keep running them without prompts」。2.1.323:「Added Code Mode, an experimental opt-in in which Claude writes JavaScript to call its tools」;「Removed the subagentStatusLine setting: subagent rows always use the default look, and settings files that still hold the key load as before」;「Changed the context window assumed for a model ID that Claude Code doesn’t recognize from 200K to 1M; use /autocompact to compact earlier, or CLAUDE_CODE_DISABLE_1M_CONTEXT=1 to keep 200K」;「Changed MCP_SDK_GENERATION=v1 to run the v2 MCP client in a compatibility mode (earlier handshake, relaxed OAuth sign-in checks), because the v1 MCP client is removed」。 ↩↩↩↩↩↩↩↩

  74. 依排程執行提示,Claude Code 文件,擷取於2026年11月25日:「週期性任務會在建立後 30 天自動到期。該任務會最後觸發一次,然後自行刪除。這限制了被遺忘的迴圈能執行多久。在 v2.1.330 之前,上限為 7 天,而在這些版本上以 CronCreate 建立的週期性任務仍沿用該上限。」;「在其到期前取消並重新建立,或使用雲端排程任務或 Desktop 排程任務來進行持久的排程」。 ↩

  75. 使用 /ship 與 /steward 讓 pull request 準備就緒 與 Claude Ship,Claude Code 文件,擷取於2026年11月25日(兩個頁面的首次 Wayback Machine 存檔均為 2026-11-23)。「/ship 是一個 Claude Code 指令,若您的分支尚無 pull request,它會為您的變更開啟一個 GitHub pull request。Claude 會審查您的變更,並處理意見回饋與失敗的檢查,協助它準備好合併。」;「請在儲存庫的本機 clone 中,從終端機裡的 Claude Code CLI 執行這兩個指令。雲端工作階段沒有這兩個指令。」;「pull request 準備就緒後,請自行合併」;先決條件:「Claude Code v2.1.330 或更新版本」與「GitHub CLI 2.63 或更新版本」;「在 bypassPermissions 模式下,不會啟動看顧。」;「您也可以將 CLAUDE_CODE_DISABLE_SHIP 設為 1,例如設在受管設定的 env 之下。需要 Claude Code v2.1.331 或更新版本。」Claude Ship:「一組協助您團隊的 GitHub pull requests 準備好合併的 agents」(Code Review、PR Steward、Claude Approvals);「Claude Ship 適用於 Team 與 Enterprise 方案的組織。」;「Code Review 已正式推出。PR Steward 與 Claude Approvals 為公開測試版。」Claude Code CHANGELOG 未提及 /ship 或 /steward。 ↩↩

  76. Claude Code 文件,擷取於2026年11月25日。透過 MCP 將 Claude Code 連接至工具,「首次連線失敗」:「當 HTTP 或 SSE 伺服器的首次連線因暫時性錯誤(例如 5xx 回應、連線遭拒或逾時)而失敗時,Claude Code 最多會重試三次。若連線仍然失敗,Claude Code 會將該伺服器標記為失敗。」;「這些重試不適用於下列情況」:「stdio 伺服器的首次連線」、「WebSocket 伺服器的首次連線」,以及「驗證錯誤或找不到資源的錯誤,因為這類錯誤需要變更設定才能解決。」設定 auto mode:「在 Pro、Max、Ultra 或 Team 方案上,您需要 v2.1.228 或更新版本,在原生 Windows 上則需要 v2.1.233 或更新版本。在 Enterprise 方案上或使用 Claude Console API 金鑰時,您需要 v2.1.283 或更新版本。」;「遙測關閉、第三方供應商或 Claude apps gateway:在 v2.1.304 之前,此指令在未擷取功能旗標的工作階段中無法使用。」 ↩

  77. Claude Code 文件,2026年11月25日重新讀取,針對11月10日與11日擷取之後有所變動的段落。透過 MCP 將 Claude Code 連接至工具:「終端機 CLI 工作階段、Agent SDK 工作階段與 GitHub Actions 執行在 v2.1.304 或更新版本上具備它們」;「若擷取功能旗標已關閉,例如在 Amazon Bedrock 上或已關閉遙測時,您需要 Claude Code v2.1.317 或更新版本上的互動式終端機工作階段」;「由主對話啟動的非 fork subagent,位於會擷取功能旗標的互動式終端機工作階段中,且版本為 v2.1.331 或更新版本。該伺服器不能是定義在 subagent 自身檔案中的伺服器」;「MCP 任務可以在 VS Code 擴充功能與本機桌面應用程式工作階段中運作。這兩者都需要 Claude Code v2.1.331 或更新版本,以及會擷取功能旗標的工作階段。」;「來自 subagents 的呼叫,雲端中的 MCP 任務除外」。為 Claude Code 設定終端機:「Ghostty、Kitty、iTerm2、WezTerm、Warp、Windows Terminal 1.25 或更新版本 | 無需設定即可使用」;「gnome-terminal、Windows Terminal 1.25 之前的版本、PyCharm 與 Android Studio 等 JetBrains IDE | 無法使用;請使用 Ctrl+J 或 \ 後接 Enter」;「/terminal-setup 與首次執行時的終端機設定提示,只會在 macOS 26 及更早版本上啟用此設定。兩者也都會關閉您設定檔的提示音。」指令:「/voice [hold\|tap\|off] | 切換語音聽寫,或以特定模式開啟。需要 Claude.ai 帳號」;/code-review 這一列:「傳入 --fix 可讓 Claude 套用審查結果,傳入 --comment 可將結果張貼到 GitHub PR 或 GitLab merge request,傳入 ultra 則可執行深度雲端審查。」;該頁面沒有 /buddy 這一列。Hooks 參考:「Setup 只支援 command hooks。SessionStart 只支援 command 與 mcp_tool hooks」。使用 advisor 工具升級困難決策:「advisor 工具屬於實驗性功能,需要 Anthropic API、AWS 上的 Claude Platform,或 Claude Models on Google Cloud (Anthropic managed)。在 AWS 上的 Claude Platform 或 Claude Models on Google Cloud (Anthropic managed) 上,需要 Claude Code v2.1.300 或更新版本。在 Amazon Bedrock、Google Cloud 的 Agent Platform 或 Microsoft Foundry 上無法使用。」建立自訂 subagents:「web-fetch | Haiku;無法使用 Haiku 時,則為啟動它的對話所用的模型」;「Claude Code 會在幾秒內偵測到變更,下一次委派就會使用更新後的定義,不需要重新啟動。」;「Claude Code 不會監看以 --add-dir 或 /add-dir 加入之目錄中的 .claude/agents/」;「以 --disable-slash-commands 啟動的工作階段完全不會監看這些目錄。」協調多個 Claude Code 工作階段組成的團隊:「分割窗格需要 tmux 或 iTerm2:預設的 in-process 模式可在任何終端機中運作。」;「產生時無法為個別隊友指定權限模式」。設定沙箱化的 Bash 工具:「沙箱可在 macOS、Linux 與 WSL2 上執行。在原生 Windows 上,Claude Code 會在沙箱外執行指令。」指令,/batch <instruction>:「在程式碼庫中平行協調大規模變更。研究程式碼庫,將工作拆解為 5 至 30 個獨立單元,並提出計畫。核准後,為每個單元在隔離的 worktree 中產生一個背景 subagent。每個 subagent 實作其單元、執行測試,並開啟 PR 或回報結果。需要 git 儲存庫,或一個會建立 worktrees 的 WorktreeCreate hook。在 git 儲存庫之外,/batch 需要 Claude Code v2.1.281 或更新版本。」協調多個 Claude Code 工作階段組成的團隊,權限:「新隊友會以主導者的模式啟動」;「若主導者處於 dontAsk 模式,隊友則會改以 Manual 模式啟動。」環境變數:CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS,「在 Agent 工具拒絕產生另一個之前,可在單一工作階段中同時執行(預設值:20)」;CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH,「允許位於主對話之下(預設值:3)」;CLAUDE_CODE_MAX_SUBAGENTS_PER_SESSION,「已於 v2.1.224 移除,現已無作用。」開始使用 Claude Code on the web:「雲端工作階段開放給 Pro、Max、Ultra 與 Team 方案,以及擁有進階席次或 Chat + Claude Code 席次的 Enterprise 使用者。」 ↩↩↩↩↩↩

  78. 在雲端使用 Claude Code 與讓 Claude 透過 Projects 協調進行中的工作,Claude Code 文件,擷取於2026年11月25日。網頁版:「在終端機中執行 /web-setup,將本機的 gh CLI token 傳送到您的 Claude 帳號」;「啟用 Zero Data Retention 的組織,或已套用 HIPAA 設定的組織,無法使用 /web-setup 或其他雲端工作階段功能。」;「Quick setup 是一項組織設定,可為成員省去 GitHub 與環境設定中的部分步驟。在 Team 與 Enterprise 方案上預設為關閉。」;「成員可以使用 /web-setup 連接 GitHub。此設定關閉時,該指令會隱藏」。Projects:「新建的專案中,每個執行緒都在 Opus 上以 medium effort 執行」。 ↩

  79. 指令,Claude Code 文件,擷取於2026年11月28日(共 127 個指令列)。/whiteboard [brief]:「依您的需求說明建立新的白板」,形式為 Claude Whiteboards artifact;「需要 Claude Code v2.1.323 或更新版本」,以及可使用 artifacts 的工作階段;「當您的組織關閉了該範本時,此指令不會出現」。/motion [brief]:「依您的需求說明建立新的動畫」,形式為 Claude Motion artifact;「不適用於終端機或 IDE 擴充功能」;「需要 Claude Code v2.1.323 或更新版本,以及 Team 或 Enterprise 帳號」,且該帳號可使用 Motion 範本。/claude-approvals [what to change or explain]:「編輯、說明或調校」Claude Approvals「政策檔案或分類器。需要 Claude Code v2.1.331 或更新版本,以及」擷取功能旗標。該頁面將 /ship:review 列為 /code-review 的「別名」,在 /steward 一列的結尾寫上「別名:/ship:steward」,並將這兩個指令寫成 /ship [level] [pr] [+bot] 與 /steward [pr] [+bot]。同日讀取的 Claude Code CHANGELOG 中,這些名稱一個也沒有出現。 ↩↩↩↩