Claude Code Changelog

v2.1.72

2026年3月10日 GitHub で見る

📝 概要

v2.1.72では、ワークツリー機能、計画モード改善、バグ修正多数、そしてパフォーマンス最適化が実施されました。

🔄 主な変更点

新機能

  • ExitWorktreeツール追加 - EnterWorktreeセッションから退出可能に
  • /planコマンドに説明引数を追加(例:/plan fix the auth bug)で即座に計画モード開始
  • /copywキーを使用してクリップボードを経由せず直接ファイルに書き込み可能(SSH接続時に便利)
  • 音声入力の精度向上(リポジトリ名や開発用語に対応)

改善

  • 作業量レベルを3段階(低/中/高)に簡素化、新しいシンボル(○ ◐ ●)を採用
  • /configの操作性向上 - Escでキャンセル、Enterで保存、Spaceで設定切替
  • bashコマンド解析をネイティブモジュールに切り替え - 高速化とメモリリーク修正
  • 誤検知による許可プロンプトを削減 - tree-sitterパーサーが複雑なコマンドパターンに対応
  • バンドルサイズを約510KB削減

バグ修正

  • エージェントタスクの進行状況が"Initializing..."で停止する問題を修正
  • 音声モード関連の複数の問題を修正(入力遅延、誤った"音声検出なし"エラーなど)
  • プラグインインストールの各種問題を修正(Windows/OneDriveでのエラーなど)
  • 並列ツール呼び出しでRead/WebFetch/Globの失敗が他のタスクをキャンセルする問題を修正
  • SDK query()呼び出しでのプロンプトキャッシュ無効化を修正 - 入力トークンコストを最大12倍削減

💡 解説・活用案

今回のリリースでは、特に開発効率とコスト削減に焦点が当てられています。プロンプトキャッシュの修正による最大12倍のトークンコスト削減は、APIを頻繁に使用する開発者にとって大きなメリットです。また、bashコマンド解析の改善により、誤った許可プロンプトが減少し、よりスムーズな開発体験が得られます。SSH経由での作業が多い場合は、新しい/copywキー機能が特に役立つでしょう。

🌐 日本語訳

変更内容

  • 環境変数が設定されている場合、ツール検索がサードパーティプロキシゲートをバイパスするように変更(CLAUDE_CODE_PROXY_SUPPORTS_TOOL_REFERENCEを置き換え、削除)
  • /copywキーを追加 - フォーカスされた選択範囲をクリップボードを経由せず直接ファイルに書き込み可能(SSH接続時に便利)
  • /planにオプションの説明引数を追加(例:/plan fix the auth bug)- 計画モードに入り、即座に開始
  • claude pluginsclaude pluginのエイリアスとして追加
  • ExitWorktreeツールを追加 - EnterWorktreeセッションから退出可能
  • CLAUDE_CODE_DISABLE_CRON環境変数を追加 - セッション中にスケジュールされたcronジョブを即座に停止
  • lsofpgreptputssfdfdfindをbash自動承認許可リストに追加 - 一般的な読み取り専用操作の許可プロンプトを削減
  • .git接尾辞なしのマーケットプレイスgit URLをサポート(Azure DevOps、AWS CodeCommit)
  • Agentツールにmodelパラメータを復元 - 呼び出しごとのモデルオーバーライドが可能に
  • 作業量レベルを低/中/高に簡素化(最大を削除)、新しいシンボル(○ ◐ ●)と簡潔な通知を採用(持続的なアイコンの代わり)。/effort autoでデフォルトにリセット
  • /configを改善 - Escで変更をキャンセル、Enterで保存して閉じる、Spaceで設定を切り替え
  • 上矢印履歴を改善 - 複数の同時セッション実行時に現在のセッションのメッセージを最初に表示
  • 音声入力の文字起こし精度を改善 - リポジトリ名や一般的な開発用語(regex、OAuth、JSONなど)に対応
  • マーケットプレイスのクローン失敗メッセージを改善 - gitがstderrを出力しない場合でも診断情報を表示
  • claude plugin validateを改善 - marketplace.jsonのソースパスがリポジトリルートからの相対パスであることを説明し、../パスを拒否する際の理由を明確化
  • bashコマンド解析をネイティブモジュールに切り替え - 初期化の高速化とメモリリーク解消
  • bashの誤検知許可プロンプトを削減 - tree-sitterパーサーがfind -exec、変数代入、コマンド置換など、以前は不必要なプロンプトを引き起こしていた多くのパターンに対応。また、npmでインストールされたバージョンでtree-sitterが読み込まれない問題を修正
  • バンドルサイズを約510KB削減
  • CLAUDE.mdのHTMLコメント(<!-- ... -->)を、自動注入時にClaudeから隠すように変更。コメントはReadツールで読み取った際には表示される
  • バックグラウンドタスクやフックの応答が遅い場合の終了の遅さを修正
  • エージェントタスクの進行状況が"Initializing..."で止まる問題を修正
  • フックが有効なスキルがモデルによって呼び出された際に、スキルフックがイベントごとに2回発火する問題を修正
  • 音声モードの複数の問題を修正:時折発生する入力遅延、プッシュツートーク解除後の誤った"音声検出なし"エラー、送信後に古い文字起こしが再びプロンプトに入力される問題
  • --compact後に--continueが最新の地点から再開しない問題を修正
  • bashセキュリティ解析のエッジケースを修正
  • 複数のプラグイン問題を修正:OneDriveフォルダでのWindows上でのEEXISTエラーによるインストール失敗、プロジェクトスコープのインストールが存在する場合にマーケットプレイスがユーザースコープのインストールをブロックする問題、CLAUDE_CODE_PLUGIN_CACHE_DIRがリテラルの~ディレクトリを作成する問題、マーケットプレイス専用フィールドを含むplugin.jsonが読み込めない問題
  • フィードバック調査が長時間セッションで頻繁に表示される問題を修正
  • --effortCLIフラグが起動時の無関係な設定書き込みによってリセットされる問題を修正
  • Ctrl+Bでバックグラウンド化されたクエリが文字起こしを失う、または/clear後の新しい会話を破損する問題を修正
  • /clearがバックグラウンドのエージェント/bashタスクを終了する問題を修正 - フォアグラウンドタスクのみがクリアされるように変更
  • ワークツリー分離の問題を修正:Taskツールの再開がcwdを復元しない問題、バックグラウンドタスク通知でworktreePathworktreeBranchが欠落する問題
  • Claudeが作業中に/modelを実行した際に結果が表示されない問題を修正
  • 計画モードの許可プロンプトのテキスト入力で、数字キーが入力ではなくメニューオプションを選択する問題を修正
  • サンドボックス許可の問題を修正:特定のファイル書き込み操作がプロンプトなしで誤って許可される問題、許可リストディレクトリ(/tmp/claude/など)への出力リダイレクトが不必要にプロンプトする問題
  • 長時間セッションでのCPU使用率を改善
  • SDK query()呼び出しでのプロンプトキャッシュ無効化を修正 - 入力トークンコストを最大12倍削減
  • クエリキャンセル後にEscapeキーが応答しなくなる問題を修正
  • バックグラウンドエージェントやタスクが実行中の場合に、Ctrl+C二回で終了しない問題を修正
  • チームエージェントがリーダーのモデルを継承するように修正
  • "常に許可"が再度マッチしない許可ルールを保存する問題を修正
  • 複数のフック関連の問題を修正:再開/フォークされたセッションでtranscript_pathが間違ったディレクトリを指す問題、エージェントのpromptが設定書き込みごとにsettings.jsonから黙って削除される問題、PostToolUseのブロック理由が2回表示される問題、非同期フックがbashのread -rでstdinを受信しない問題、検証エラーメッセージが検証に失敗する例を表示する問題
  • Desktop/SDKで、U+2028/U+2029文字を含むファイルをReadが返した際にセッションがクラッシュする問題を修正
  • CLAUDE_CODE_DISABLE_TERMINAL_TITLEが設定されている場合でも、終了時にターミナルタイトルがクリアされる問題を修正
  • 複数の許可ルールマッチングの問題を修正:ワイルドカードルールがヒアドキュメント、埋め込み改行、または引数のないコマンドにマッチしない問題、sandbox.excludedCommandsが環境変数プレフィックスで失敗する問題、"常に許可"がネストされたCLIツールに対して過度に広範なプレフィックスを提案する問題、拒否ルールがすべてのコマンド形式に適用されない問題
  • Bashのdata-URL出力からの過大サイズおよび切り詰められた画像を修正
  • Bedrock APIエラーを含むセッションを再開する際のクラッシュを修正
  • Edit、Bash、GrepツールのインプットでのAn断続的な"expected boolean, received string"検証エラーを修正
  • 最初のメッセージに改行を含む会話からフォークした際の複数行セッションタイトルを修正
  • キューに入れられたメッセージが添付画像を表示しない問題、および↑キーでキュー済みメッセージを編集する際に画像が失われる問題を修正
  • 並列ツール呼び出しで、失敗したRead/WebFetch/Globがそのシブリングをキャンセルする問題を修正 - Bashエラーのみがカスケードするように変更
  • VSCode:統合ターミナルのスクロール速度がネイティブターミナルと一致しない問題を修正
  • VSCode:古いキーバインディングを使用しているユーザーでShift+Enterが改行ではなく入力を送信する問題を修正
  • VSCode:入力ボーダーに作業量レベルインジケータを追加
  • VSCode:vscode://anthropic.claude-code/open URIハンドラを追加 - プログラムで新しいClaude Codeタブを開くことが可能に、オプションでpromptsessionクエリパラメータを使用可能
原文(英語)を表示

What's changed

  • Changed tool search to bypass the third-party proxy gate when the environment variable is set (replaces CLAUDE_CODE_PROXY_SUPPORTS_TOOL_REFERENCE, now removed)
  • Added w key in /copy to write the focused selection directly to a file, bypassing the clipboard (useful over SSH)
  • Added optional description argument to /plan (e.g., /plan fix the auth bug) that enters plan mode and immediately starts
  • Added claude plugins as an alias for claude plugin
  • Added ExitWorktree tool to leave an EnterWorktree session
  • Added CLAUDE_CODE_DISABLE_CRON environment variable to immediately stop scheduled cron jobs mid-session
  • Added lsof, pgrep, tput, ss, fd, and fdfind to the bash auto-approval allowlist, reducing permission prompts for common read-only operations
  • Added support for marketplace git URLs without .git suffix (Azure DevOps, AWS CodeCommit)
  • Restored the model parameter on the Agent tool for per-invocation model overrides
  • Simplified effort levels to low/medium/high (removed max) with new symbols (○ ◐ ●) and a brief notification instead of a persistent icon. Use /effort auto to reset to default
  • Improved /config — Escape now cancels changes, Enter saves and closes, Space toggles settings
  • Improved up-arrow history to show current session's messages first when running multiple concurrent sessions
  • Improved voice input transcription accuracy for repo names and common dev terms (regex, OAuth, JSON)
  • Improved marketplace clone failure messages to show diagnostic info even when git produces no stderr
  • Improved claude plugin validate to explain that marketplace.json source paths are relative to the repo root when rejecting ../ paths
  • Improved bash command parsing by switching to a native module — faster initialization and no memory leak
  • Reduced false-positive bash permission prompts — tree-sitter parsing now handles find -exec, variable assignments, command substitutions, and many other patterns that previously triggered unnecessary prompts. Also fixed tree-sitter not loading in npm-installed versions
  • Reduced bundle size by ~510 KB
  • Changed CLAUDE.md HTML comments (<!-- ... -->) to be hidden from Claude when auto-injected. Comments remain visible when read with the Read tool
  • Fixed slow exits when background tasks or hooks were slow to respond
  • Fixed agent task progress stuck on "Initializing…"
  • Fixed skill hooks firing twice per event when a hooks-enabled skill is invoked by the model
  • Fixed several voice mode issues: occasional input lag, false "No speech detected" errors after releasing push-to-talk, and stale transcripts re-filling the prompt after submission
  • Fixed --continue not resuming from the most recent point after --compact
  • Fixed bash security parsing edge cases
  • Fixed several plugin issues: installation failing on Windows with EEXIST error in OneDrive folders, marketplace blocking user-scope installs when a project-scope install exists, CLAUDE_CODE_PLUGIN_CACHE_DIR creating literal ~ directories, and plugin.json with marketplace-only fields failing to load
  • Fixed feedback survey appearing too frequently in long sessions
  • Fixed --effort CLI flag being reset by unrelated settings writes on startup
  • Fixed backgrounded Ctrl+B queries losing their transcript or corrupting the new conversation after /clear
  • Fixed /clear killing background agent/bash tasks — only foreground tasks are now cleared
  • Fixed worktree isolation issues: Task tool resume not restoring cwd, and background task notifications missing worktreePath and worktreeBranch
  • Fixed /model not displaying results when run while Claude is working
  • Fixed digit keys selecting menu options instead of typing in plan mode permission prompt's text input
  • Fixed sandbox permission issues: certain file write operations incorrectly allowed without prompting, and output redirections to allowlisted directories (like /tmp/claude/) prompting unnecessarily
  • Improved CPU utilization in long sessions
  • Fixed prompt cache invalidation in SDK query() calls, reducing input token costs up to 12x
  • Fixed Escape key becoming unresponsive after cancelling a query
  • Fixed double Ctrl+C not exiting when background agents or tasks are running
  • Fixed team agents to inherit the leader's model
  • Fixed "Always Allow" saving permission rules that never match again
  • Fixed several hooks issues: transcript_path pointing to the wrong directory for resumed/forked sessions, agent prompt being silently deleted from settings.json on every settings write, PostToolUse block reason displaying twice, async hooks not receiving stdin with bash read -r, and validation error message showing an example that fails validation
  • Fixed session crashes in Desktop/SDK when Read returned files containing U+2028/U+2029 characters
  • Fixed terminal title being cleared on exit even when CLAUDE_CODE_DISABLE_TERMINAL_TITLE was set
  • Fixed several permission rule matching issues: wildcard rules not matching commands with heredocs, embedded newlines, or no arguments; sandbox.excludedCommands failing with env var prefixes; "always allow" suggesting overly broad prefixes for nested CLI tools; and deny rules not applying to all command forms
  • Fixed oversized and truncated images from Bash data-URL output
  • Fixed a crash when resuming sessions that contained Bedrock API errors
  • Fixed intermittent "expected boolean, received string" validation errors on Edit, Bash, and Grep tool inputs
  • Fixed multi-line session titles when forking from a conversation whose first message contained newlines
  • Fixed queued messages not showing attached images, and images being lost when pressing ↑ to edit a queued message
  • Fixed parallel tool calls where a failed Read/WebFetch/Glob would cancel its siblings — only Bash errors now cascade
  • VSCode: Fixed scroll speed in integrated terminals not matching native terminals
  • VSCode: Fixed Shift+Enter submitting input instead of inserting a newline for users with older keybindings
  • VSCode: Added effort level indicator on the input border
  • VSCode: Added vscode://anthropic.claude-code/open URI handler to open a new Claude Code tab programmatically, with optional prompt and session query parameters