14. Memory, Compaction and Checkpoints (Managing Context in Long Sessions)
Master Claude Chat, Cowork, Code

14. Memory, Compaction and Checkpoints (Managing Context in Long Sessions)

Oct 4, 2026
45:24
-(0)

About this episode

In Episode 14 of Beyond Prompting , author Sho Shimoda breaks down how to manage context budgets and session state when conversations run long. We examine the three core mechanisms that control what Claude retains, what gets summarized, and how to recover when an exploration strays off track: Auto Memory Across Sessions: How Claude Code automatically records durable preferences and project facts under ~/.claude/projects/<project>/memory/, loading the top of MEMORY.md while keeping topic-specific files available on demand. Reading the Context Budget: Using the /context command to visualize exact token usage across system prompts, tool definitions, rules, memory, skills, and conversation history. What Compaction Keeps (and Drops): Understanding what survives automatic or manual compaction—system prompts, CLAUDE.md, unscoped rules, plan mode plans, and auto memory are re-injected from disk—and how to direct summaries using /compact focus on <topic>. Going Backwards with Checkpoints: Using /rewind or pressing Esc Esc twice to restore code, conversation, or both across the 100 most recent prompt snapshots, alongside the four structural limits where Git commits remain essential. (Note for listeners: This episode covers Chapter 14 of Sho Shimoda's book RUNNING CLAUDE: The Operator’s Guide to Chat, Cowork and Claude Code , available on Amazon as the successor book to Master Claude: Chat, Cowork and Code ).

Comments

Rate this episode

Episode Details

Author
MASTER-CLAUDE-CHAT-COWORK-CODE
Show Type
full
Audio Format
audio/x-m4a

We use analytics

We use Umami, a privacy-friendly analytics tool, to understand how visitors use this site. No personal data is collected and no data leaves our EU servers. You can accept or decline below. Privacy Policy