Context Usage Visualization #
What: New /context command that displays current token usage as a colored grid How to use:
# In your Claude Code session, type:
/context
Details:
- Shows a visual grid where each square represents a portion of your context window
- Different colors indicate different categories (system prompt, tools, messages, etc.)
- Displays detailed breakdowns including memory files, MCP tools, and custom agents
- Grid size adapts based on model capacity (20x10 for ≥1M token models, 10x10 otherwise)
- Helps identify what's consuming context and why you might hit limits
Git Configuration File Protection #
What: Added security protection for .git/config and .gitconfig files How to use:
# Claude will now ask for explicit permission before editing:
# - .git/config files in repositories
# - .gitconfig files (global git configuration)
Details:
- Prevents potential code execution via git configuration files
- Requires explicit user permission to edit these sensitive files
- Protection covers both repository-level and global git configurations
- Provides clear explanation about why permission is needed
Intelligent Permission Suggestions #
What: Context-aware suggestions when Claude requests file permissions How to use:
# When Claude needs file access, you'll see smart suggestions like:
# For reading: "Allow reading from /directory/** during this session"
# For writing: "Allow all edits in /directory/ during this session"
Details:
- Different suggestions for read vs write operations
- Suggests appropriate permission scope based on the operation
- Can suggest switching to "acceptEdits" mode for write operations
- Provides rules that can be applied to efficiently grant permissions