Claude Code v2.1.59 adds auto-memory, copy command, and shell improvements

What's new in Claude Code v2.1.59
Anthropics released Claude Code v2.1.59 on February 26, bringing several practical improvements to the AI coding assistant. This release focuses on memory management, code interaction, and shell command handling.
Key features and fixes
- Auto-memory management: Claude now automatically saves useful context to auto-memory. You can manage this with the
/memorycommand. - Interactive copy command: Added
/copycommand that shows an interactive picker when code blocks are present, allowing selection of individual code blocks or the full response. - Improved bash command handling: Enhanced "always allow" prefix suggestions for compound bash commands (e.g.,
cd /tmp && git fetch && git push) to compute smarter per-subcommand prefixes instead of treating the whole command as one. - Task list ordering: Improved ordering of short task lists.
- Memory optimization: Reduced memory usage in multi-agent sessions by releasing completed subagent task state.
- Bug fixes: Fixed MCP OAuth token refresh race condition when running multiple Claude Code instances simultaneously. Fixed shell commands not showing clear error messages when the working directory has been deleted.
This release addresses specific workflow issues developers encounter when using Claude Code for shell operations and code manipulation. The auto-memory feature should help maintain context across longer sessions, while the improved bash command handling makes compound operations more reliable.
📖 Read the full source: GitHub Claude-Code
👀 See Also

Repo Tokens: GitHub Action Adds Token Count Badge for LLM Context Window Awareness
Repo Tokens is a GitHub Action that counts your codebase's size in tokens using tiktoken and displays a badge in your README showing what percentage of an LLM's context window it fills. The badge uses green for under 30%, yellow for 50-70%, and red for 70%+.

Claude-First Analytics MCP Server: Giving AI Agents Direct Access to Web Analytics Context
A developer rebuilt their web analytics tool as an MCP server, exposing simple web analytics, trackable links, and product insight tools directly to Claude, enabling AI agents to leverage site data alongside code and database context.

Claude Code Matrix Channel Plugin Built in Rust with E2EE Support
A developer built a Matrix channel plugin for Claude Code in Rust, adding support for text, files, images with E2EE decryption, reply threading, reactions, and bot commands. The 14MB binary is MIT licensed and works with any Matrix homeserver.

Can OpenClaw Embrace the Power of Claude CLI?
Explore key insights from r/openclaw on whether OpenClaw can integrate with Claude CLI, a powerful AI tool designed to enhance coding and automation processes.