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

Agent Browser Shield: Free OpenClaw Extension Blocks Prompt Injection & Dark Patterns
PixieBrix releases Agent Browser Shield, a free source-available browser extension for OpenClaw that blocks prompt injection, dark patterns, and context pollution while cutting token usage.

OpenClaw A2A Plugin: Direct Agent-to-Agent Messaging Over the Internet
An OpenClaw A2A plugin enables direct file and message transfer between OpenClaws and other agents over the internet without third-party services like WhatsApp or email.

Nutrition MCP Server Built with Claude Code for Food Diary Export
A developer built a nutrition MCP server using Claude Code after commercial apps blocked data export, creating a tool that logs meals via Claude, generates summaries, and exports to Excel without switching apps.

AgenticStore MCP: Python Toolkit for Claude Desktop with 27 Local Tools
AgenticStore MCP is an open-source Python toolkit that replaces multiple MCP servers with a single installation, giving Claude Desktop 27 local tools including persistent memory, web search, and repo auditing without requiring Docker or Node.js configuration.