Three-Block Prompt Cache Layout

Description

Claude Code's prompt cache is structured in three blocks: Block 1 {tools | claude-version}; Block 2 {system-prompt | ~/.claude/claude.md | git-status}; Block 3 {skills | ./claude.md | user-prompt}. Invalidation cascades — breaking block N invalidates all higher-numbered blocks. This layout is what makes git-status-in-block-2 so destructive: one transient value destroys two-thirds of the cache.

Key claims

Relations

Sources

src-20260423-542f02260352