You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
v2.0.0-beta.1: CWD/path normalization for cross-worktree cache stability
New opt-in fix: CACHE_FIX_NORMALIZE_CWD=1 replaces volatile path content
in system prompt with stable placeholders:
- Primary working directory path
- Additional working directory paths
- CLAUDE.md / memory file path references ("Contents of /path/...")
Paths change per project/worktree, busting the entire prefix cache.
With normalization, the system prompt is byte-identical across working
directories — enabling cache reuse across worktrees.
Model can still discover paths via Bash (pwd, ls) when needed.
Credit: @wadabum for the architectural analysis (anthropics/claude-code#48236)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments