Claude Code v2.1.59リリース - 自動メモリ機能とコピーコマンドを追加
Claude Code v2.1.59がリリースされた。コンテキストを自動保存するauto-memory機能、コードブロックを選択してコピーできる/copyコマンドが追加されている。
Anthropicは2月26日(現地時間)、Claude Code v2.1.59をリリースした。自動メモリ機能や/copyコマンドの追加、マルチエージェントセッションでのメモリ使用量改善など、複数の機能追加とバグ修正が含まれている。
自動メモリ機能の導入
本バージョンの目玉は、Claudeが有用なコンテキストをauto-memoryに自動保存する機能だ。これまで/memoryコマンドで手動管理していたメモリ情報が、セッション中に自動的に蓄積されるようになった。管理は引き続き/memoryコマンドから行える。
プロジェクト固有の設定やパターン、ユーザーの好みなどを自動的に記憶することで、セッションを跨いだコンテキスト維持が改善される。
/copyコマンドの追加
新たに/copyコマンドが追加された。レスポンス中にコードブロックが含まれている場合、インタラクティブなピッカーが表示され、個別のコードブロックまたはレスポンス全体を選択してコピーできる。
従来はターミナル上で手動選択する必要があったが、コードブロック単位で正確にコピーできるようになった。
Bash許可プレフィックスの改善
「always allow」のプレフィックス提案が改善された。cd /tmp && git fetch && git pushのような複合コマンドに対して、コマンド全体を1つのプレフィックスとして扱うのではなく、サブコマンドごとに適切なプレフィックスを計算するようになった。これにより、許可設定がより細かく、安全に管理できる。
マルチエージェントセッションのメモリ改善
マルチエージェントセッションにおいて、完了したサブエージェントのタスク状態を解放するようになった。長時間のマルチエージェントセッションでメモリ使用量が肥大化する問題が軽減される。
バグ修正
- MCP OAuthトークンのリフレッシュ処理で、複数のClaude Codeインスタンスを同時実行した際に発生するレースコンディションを修正
- 作業ディレクトリが削除された場合に、シェルコマンドが明確なエラーメッセージを表示しない問題を修正
その他の改善
- 短いタスクリストの並び順が改善された
アップデート方法
npm install -g @anthropic-ai/claude-code@latest
現在のバージョンは以下のコマンドで確認できる。
claude --version Related Articles
Claude Code v2.1.59 Ships Auto-Memory and a New /copy Command
Claude Code v2.1.59 introduces automatic context memory, a /copy command for selecting code blocks, smarter bash permission prefixes, and multi-agent memory improvements.
Claude Code v2.1.51/v2.1.52: Remote Control, Security Fixes, and Plugin Improvements
Claude Code v2.1.51 introduces the remote-control subcommand for external builds, patches two security vulnerabilities in hook execution, and optimizes context window usage. v2.1.52 fixes a VS Code crash on Windows.
Claude Code v2.1.53: UI Polish and a Batch of Windows Crash Fixes
Claude Code v2.1.53 addresses a UI flicker issue, improves bulk agent kill notifications, and fixes four separate crashes affecting Windows users.
Popular Articles
Claude Code v2.1.93 Released - Deferred Permission Decisions, Flicker-Free Rendering, and More
Anthropic releases Claude Code v2.1.93 with deferred permission decisions for PreToolUse hooks, flicker-free rendering option, PermissionDenied hook, and named subagent typeahead support.
Claude Code v2.1.92 Released - forceRemoteSettingsRefresh, Bedrock Setup Wizard, and More
Anthropic releases Claude Code v2.1.92 with forceRemoteSettingsRefresh policy setting, AWS Bedrock setup wizard, /cost command improvements, and numerous bug fixes.
Claude Code v2.1.84 Release - PowerShell Tool Preview and Environment Configuration Enhancements
Claude Code v2.1.84 introduces PowerShell tool for Windows, new environment variable overrides for model selection, idle session handling improvements, and various stability fixes.
Latest Articles
Claude Code v2.1.93 Released - Deferred Permission Decisions, Flicker-Free Rendering, and More
Anthropic releases Claude Code v2.1.93 with deferred permission decisions for PreToolUse hooks, flicker-free rendering option, PermissionDenied hook, and named subagent typeahead support.
Claude Code v2.1.92 Released - forceRemoteSettingsRefresh, Bedrock Setup Wizard, and More
Anthropic releases Claude Code v2.1.92 with forceRemoteSettingsRefresh policy setting, AWS Bedrock setup wizard, /cost command improvements, and numerous bug fixes.
Claude Code v2.1.91 Released - MCP Tool Result Persistence and Improved Edit Tool
Claude Code v2.1.91 introduces MCP tool result persistence override, improved shell execution controls, and enhanced Edit tool efficiency.