Claude Code v2.1.6: Search, Stats & Major Bug Fixes
Claude Code v2.1.6 introduces powerful search functionality for settings, date range filtering for stats, improved context window management, and fixes critical security vulnerabilities.
The Claude Code development team has released version 2.1.6, bringing significant improvements to user experience and fixing several critical issues that have been affecting power users in the community.
What’s New
Enhanced Configuration Management
The /config command now includes search functionality for quickly filtering settings, making it much easier to find specific configurations in large setups. This addresses one of the most requested features from the community.
Improved Statistics and Monitoring
- Date range filtering added to
/statscommand - pressrto cycle between Last 7 days, Last 30 days, and All time views - Enhanced
/doctorcommand now shows auto-update channel and available npm versions (stable/latest) in a new Updates section - Better context window management with new
context_window.used_percentageandcontext_window.remaining_percentagefields for status line customization
Smarter Skills Discovery
Claude Code now features automatic discovery of skills from nested .claude/skills directories when working with files in subdirectories, improving workflow efficiency for complex projects.
User Interface Improvements
- Enhanced @ autocomplete with icons for different suggestion types and cleaner single-line formatting
- Improved external CLAUDE.md imports approval dialog shows which files are being imported and their sources
- Streamlined
/tasksdialog goes directly to task details when only one background task is running - Better terminal identification with “Claude Code” title on startup
Critical Security and Bug Fixes
- Fixed permission bypass vulnerability via shell line continuation that could allow blocked commands to execute
- Resolved false file modification errors when file watchers touch files without changing content
- Fixed text styling issues (bold, colors) getting progressively misaligned in multi-line responses
- Improved rate limiting - warning now appears at 70% usage instead of incorrectly triggering at low usage after weekly reset
- Fixed keyboard protocol issues in Kitty terminals, including numpad keys and Option+Return functionality
- Cleaned up config backup system to prevent corrupted backup files accumulating in home directory
- Fixed MCP command issues that left orphaned server processes after
mcp listandmcp getcommands
VSCode Extension Fix
VSCode users will be pleased to know that the usage indicator now properly updates after manual compact operations.
How to Update
To update to Claude Code v2.1.6:
- Automatic update: If you have auto-updates enabled, Claude Code will update automatically
- Manual update: Run your package manager’s update command or download from the release page
- Check your version: Use
/doctorcommand to verify you’re running v2.1.6