v2.1.91
📝 概要
大容量ツール結果の保持、実行制御の強化、およびプラン管理・パフォーマンス改善を含む多数の修正
🔄 主な変更点
- MCP ツール結果の大容量化:
_meta["anthropic/maxResultSizeChars"]アノテーションで最大500Kまでの結果保持が可能に(DBスキーマなど大きなデータの切り捨て防止) - シェル実行の無効化設定:
disableSkillShellExecutionでスキル・カスタムコマンド・プラグインでのインライン実行を制御可能 - プラグインの実行ファイル対応:
bin/配下に実行ファイルを配置し、Bashツールから直接実行可能 - プラン管理の修正: リモートセッションでコンテナ再起動後にプランファイルを見失う問題を解消
- トランスクリプト履歴の保護:
--resume時の履歴喪失問題を修正 - パフォーマンス向上: Bunでの
stripAnsi高速化、Editツールの出力トークン削減
💡 解説・活用案
今回のアップデートでは、大規模データを扱うツール開発者にとって特に重要な500K文字までの結果保持が可能になりました。これによりデータベーススキーマの全体像やログファイルなどを切り捨てずにClaudeに渡せるため、より正確な分析・提案が期待できます。また、disableSkillShellExecution設定により、セキュリティが重要な環境でシェル実行を制限できるようになり、企業導入のハードルが下がります。プラン管理の安定性向上により、長時間のリモート開発セッションでも安心して作業を継続できるでしょう。
🌐 日本語訳
変更内容
- MCP ツール結果の永続化オーバーライドを
_meta["anthropic/maxResultSizeChars"]アノテーション経由で追加(最大500K文字)。これによりDBスキーマなどの大きな結果を切り捨てずに渡すことが可能になりました - スキル、カスタムスラッシュコマンド、プラグインコマンドでのインラインシェル実行を無効化する
disableSkillShellExecution設定を追加 claude-cli://open?q=ディープリンクで複数行プロンプトのサポートを追加(エンコードされた改行%0Aが拒否されなくなりました)- プラグインが
bin/配下に実行ファイルを配置し、Bash ツールから直接コマンドとして実行できるようになりました - 非同期トランスクリプト書き込みが静かに失敗した際に会話履歴を失う可能性があった
--resume時のトランスクリプトチェーン切断を修正 - iTerm2、kitty、WezTerm、Ghostty、Windows Terminal で
cmd+deleteが行頭まで削除しない問題を修正 - リモートセッションのプランモードで、コンテナ再起動後にプランファイルを見失う問題を修正。これによりプラン編集時の権限プロンプトや空のプラン承認モーダルが発生していた問題を解消
- settings.json の
permissions.defaultMode: "auto"に対する JSON スキーマ検証を修正 - Windows バージョンクリーンアップが、アクティブバージョンのロールバックコピーを保護するように修正
/feedbackが利用不可の理由を説明するようになりました(スラッシュメニューから消えるのではなく)/claude-apiスキルのガイダンスを改善。ツール設計の決定、コンテキスト管理、キャッシング戦略を含むエージェント設計パターンに関する内容を拡充- パフォーマンス改善: Bun で
Bun.stripANSIを経由することでstripAnsiの高速化を実現 - Edit ツールで短い
old_stringアンカーを使用するようになり、出力トークンを削減
原文(英語)を表示
What's changed
- Added MCP tool result persistence override via
_meta["anthropic/maxResultSizeChars"]annotation (up to 500K), allowing larger results like DB schemas to pass through without truncation - Added
disableSkillShellExecutionsetting to disable inline shell execution in skills, custom slash commands, and plugin commands - Added support for multi-line prompts in
claude-cli://open?q=deep links (encoded newlines%0Ano longer rejected) - Plugins can now ship executables under
bin/and invoke them as bare commands from the Bash tool - Fixed transcript chain breaks on
--resumethat could lose conversation history when async transcript writes fail silently - Fixed
cmd+deletenot deleting to start of line on iTerm2, kitty, WezTerm, Ghostty, and Windows Terminal - Fixed plan mode in remote sessions losing track of the plan file after a container restart, which caused permission prompts on plan edits and an empty plan-approval modal
- Fixed JSON schema validation for
permissions.defaultMode: "auto"in settings.json - Fixed Windows version cleanup not protecting the active version's rollback copy
/feedbacknow explains why it's unavailable instead of disappearing from the slash menu- Improved
/claude-apiskill guidance for agent design patterns including tool surface decisions, context management, and caching strategy - Improved performance: faster
stripAnsion Bun by routing throughBun.stripANSI - Edit tool now uses shorter
old_stringanchors, reducing output tokens