Claude Code v2.1.59 Release Notes
Claude Code v2.1.59 introduces automatic context memory, interactive code copying, improved bash command handling, and important bug fixes for power users.
The Claude Code team has released version 2.1.59, packed with productivity enhancements and stability improvements that will streamline your development workflow. This update focuses on smarter context management, better code handling, and refined user experience.
What’s New
Automatic Context Memory
Claude now automatically saves useful context to auto-memory, helping maintain continuity across your coding sessions. You can easily manage this feature using the new /memory command, giving you full control over what context is preserved.
Interactive Code Copy Command
A powerful new /copy command has been added that displays an interactive picker when code blocks are present in responses. This allows you to selectively copy individual code blocks or grab the entire response, making it much easier to work with complex multi-file outputs.
Enhanced Bash Command Intelligence
The “always allow” prefix suggestions for compound bash commands have been significantly improved. Instead of treating complex commands like cd /tmp && git fetch && git push as a single entity, Claude now computes smarter per-subcommand prefixes, providing more granular and accurate suggestions.
Performance and Reliability Improvements
- Better Task Organization: Short task lists now display with improved ordering logic
- Memory Optimization: Multi-agent sessions use memory more efficiently by releasing completed subagent task state
- OAuth Stability: Fixed MCP OAuth token refresh race conditions when running multiple Claude Code instances
- Error Handling: Shell commands now provide clear error messages when the working directory has been deleted
How to Update
To update to Claude Code v2.1.59, follow the standard update process for your installation method. The new features will be available immediately after the update completes.