Claude Code v2.1.183 の変更点
Claude Code v2.1.18 は、破壊的 Git コマンドやインフラ削除コマンドの自動実行を厳格に制限し、UI の不具合を多数修正することで、AI エージェントによるコード操作の安全性と信頼性を大幅に向上させました。
キーポイント
破壊的コマンドの実行ブロック強化
ユーザーが明示的に要求しない限り、git reset --hard や terraform destroy などの破壊的な Git/インフラコマンドの自動実行を完全にブロックする安全機能が実装されました。
UI およびターミナル不具合の修正
Windows Terminal でのフルスクリーン TUI の破損、vim モードでのカーソル位置の異常、およびサブエージェント起動時のエラーなど、実用性を阻害する複数の UI/UX バグが修正されました。
モデル警告と設定機能の拡充
非推奨モデルの使用や自動更新時に警告を表示する機能が追加され、セッション URL の表示制御や設定コマンドのヘルプ表示など、ユーザー体験を向上させる設定オプションが強化されました。
バックグラウンドタスクと認証のセキュリティ改善
スケジュールされたタスクが誤ってキーボード入力として扱われる問題を修正し、MCP サーバーの認証スタブツールがモデルに露出するリスクも解消されました。
影響分析・編集コメントを表示
影響分析
このアップデートは、AI エージェントが実際の開発環境で自律的に動作する際のリスク管理において決定的な一歩となります。特に破壊的コマンドの自動実行ブロックにより、開発者の意図しないコード破損やインフラ停止という重大事故を未然に防ぐ効果が期待され、企業レベルでの AI 導入における信頼性を高めます。また、複雑なターミナル環境での UI 不具合解消は、実務現場でのストレスを大幅に軽減し、ツールの実用性を底上げします。
編集コメント
AI エージェントが自律的にコードを修正・デプロイする時代において、この「安全装置」の強化は不可欠な進化です。特に破壊的コマンドのブロック機能は、開発現場での AI 導入障壁を下げる重要な要素と言えます。
変更点
- オートモードの安全性を向上:ローカル作業を破棄するよう指示していない場合、破壊的な git コマンド(git reset --hard, git checkout -- ., git clean -fd, git stash drop)がブロックされます。また、このセッションでエージェントによって作成されたコミットでない場合に git commit --amend がブロックされ、特定のスタックを指定して要求しない限り terraform destroy/pulumi destroy/cdk destroy もブロックされます。
- 要求されたモデルが非推奨である場合や、自動的に新しいモデルに更新される場合に警告を表示します。これは print モード(-p)では stderr に表示され、現在はエージェントの frontmatter で設定されたモデルにも適用されます。
- web および Remote Control セッションにおけるコミットおよび PR から claude.ai のセッションリンクを除外するための attribution.sessionUrl 設定を追加しました。
- /config --help を追加し、/config key=value 形式で利用可能なすべての短縮キーの一覧を表示できるようにしました。
- /config トグルの動作を変更:Enter キーと Space キーの両方で選択された設定が切り替わり、Esc キーは元に戻す代わりに保存して閉じるようになりました。
- ロゴ下の起動時の「セットアップの問題」行を削除しました。構成上の問題を確認するには /doctor を実行するか、--debug オプションを使用してください。
- thinking.disabled.display の不具合を修正:影響を受ける設定におけるサブエージェントの起動時やセッションタイトルの生成時に発生していた「追加の入力は許可されていません 400 エラー」を解消しました。
- サブエージェントにおいて WebSearch が空の結果を返す問題を修正しました。
- ネイティブカーソルが有効な状態で vim モード中に履歴をナビゲートした後、ターミナルのカーソルがプロンプトの上に残ってしまう不具合を修正しました。
- Windows Terminal で重いネストされたサブエージェント負荷下において発生していたフルスクリーン TUI の破損(ステータスラインが画面中央に表示される、スピナー行の重複、テキストの結合)を修正しました
- モデルから思考ブロックのみが返された場合に、見えない出力でターンが黙って完了してしまう不具合を修正しました。Claude は now 再プロンプトを実行します
- 複数のプラグインが有効になっている際に、ユーザーレベルのスキルがスラッシュコマンドの自動補完リストに複数回表示される問題を修正しました
- MCP サーバーで認証が必要な場合に、ヘッドレス/SDK モードで認証スタブツールがモデルに露出していた不具合を修正しました
- シェルの rc ファイル初期化が遅い場合に、tmux チームメイトのペインが起動しない問題と、エージェント生成中にタイプされたキー入力が新しい tmux ペインに漏れ出してリーダープロンプトに入力されない問題を修正しました
- チームメイトによって開始されたバックグラウンドタスクが、チームメイトがターンを終了した際に終了してしまう不具合を修正しました
- 定期タスクや Webhook トリガーの配信がキーボード入力として扱われていた問題を修正しました。これらは now タスク通知として分類され、自動モードで保留中のアクションを承認したりセッションタイトルを設定したりできなくなりました
- フォーカスモードで各レスポンスの下に「Ran N PostToolUse hooks」のタイミングラインが表示されていた不具合を修正しました
原文を表示
What's changed
- Improved auto mode safety: destructive git commands (git reset --hard, git checkout -- ., git clean -fd, git stash drop) are now blocked when you didn't ask to discard local work, git commit --amend is blocked when the commit wasn't made by the agent this session, and terraform destroy/pulumi destroy/cdk destroy are blocked unless you asked for the specific stack
- Added a warning when the requested model is deprecated or automatically updated to a newer model, shown on stderr in print mode (-p) and now also covering models set in agent frontmatter
- Added attribution.sessionUrl setting to omit the claude.ai session link from commits and PRs in web and Remote Control sessions
- Added /config --help to list all available shorthand keys for /config key=value
- Changed /config toggle behavior: Enter and Space both change the selected setting, and Esc now saves and closes instead of reverting
- Removed the startup "setup issues" line under the logo — run /doctor to see configuration issues or use --debug
- Fixed thinking.disabled.display: Extra inputs are not permitted 400 errors on subagent spawns and session-title generation for affected configurations
- Fixed WebSearch returning empty results in subagents
- Fixed the terminal cursor being stranded above the prompt after navigating history in vim mode with the native cursor enabled
- Fixed fullscreen TUI corruption (statusline mid-screen, duplicated spinner rows, merged text) in Windows Terminal under heavy nested-subagent load
- Fixed turns silently completing with no visible output when the model returned only a thinking block; Claude now re-prompts once
- Fixed user-level skills appearing multiple times in slash-command autocomplete when multiple plugins are enabled
- Fixed MCP servers requiring authentication exposing auth-stub tools to the model in headless/SDK mode
- Fixed tmux teammate panes failing to launch when the shell has slow rc-file initialization, and keystrokes typed during agent spawn leaking into the new tmux pane instead of the leader prompt
- Fixed background tasks started by a teammate being killed when the teammate finishes a turn
- Fixed scheduled task and webhook trigger deliveries being treated as keyboard input; they now classify as task notifications and can no longer approve a pending action or set the session title in auto mode
- Fixed focus mode showing "Ran N PostToolUse hooks" timing lines under each response
関連記事
今日のまとめ
AI日報で今日の重要ニュースをまとめ読み