Claude Code 2.1.59: Auto-Memory, Copy Command
Auto-memory saves context automatically, /copy picks code blocks, and multi-instance race conditions are fixed in Claude Code 2.1.59.
TL;DR
- Auto-memory now saves useful context automatically — manage it with /memory
- New /copy command for picking individual code blocks from responses
- Fixed config corruption and MCP OAuth race conditions in multi-instance setups
New
- Auto-memory — Claude automatically saves useful context for reuse across sessions. Use /memory to manage what's stored.
- /copy command — Interactive picker to select individual code blocks or copy the full response without manual selection.
- Smarter bash prefix suggestions — Compound commands like
cd /tmp && git fetch && git pushnow get per-subcommand prefixes instead of treating the whole chain as one unit.
Improved
- Short task list ordering for better readability.
- Memory usage in multi-agent sessions by releasing completed subagent task state.
Fixed
- MCP OAuth race condition — Token refresh no longer fails when running multiple Claude Code instances simultaneously.
- Deleted working directory error — Shell commands now show a clear error message instead of failing silently.
- Config file corruption — Fixed simultaneous instance writes that could wipe authentication credentials.
Update Claude Code to 2.1.59 via your extension marketplace or check the official changelog.
Source: Claude Code