Claude Code v2.1.86 — Conditional hooks, read tool dedup, clickable memories
| ● New release | March 28, 2026 |
Claude Code v2.1.86
6 changes · covers v2.1.85 & v2.1.86
⭐
Conditional hooks with if field
Hooks now support an
if field using permission rule syntax. Run hooks conditionally based on tool names, paths, or other context — no more all-or-nothing.
🎯
Features
|
MCP headersHelper env vars
headersHelper scripts now receive SERVER_NAME and SERVER_URL as environment variables for dynamic auth headers |
|
Clickable memory filenames
"Saved N memories" notice now shows clickable filenames to jump straight to the memory file |
⚡
Improvements
|
Read tool: compact format + dedup
Re-reading unchanged files returns a compact summary instead of full content. Saves context tokens. |
|
Jujutsu + Sapling VCS excluded
VCS directories for Jujutsu and Sapling now excluded from grep and autocomplete results |
|
/skills sorted + descriptions capped
Skills list now alphabetically sorted with descriptions capped at 250 chars for cleaner output |
💡
Pro Tip
Use conditional hooks to auto-format only specific file types: set "if": "*.py" on your linter hook so it fires for Python files but stays silent for everything else.
Auto-curated from the official changelog · cc.storyfox.cz · by @phasE89
Don't miss what's next. Subscribe to Claude Code Cheat Sheet: