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

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

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).

Tämä jakso on lisätty Podme-palveluun avoimen RSS-syötteen kautta eikä se ole Podmen omaa tuotantoa. Siksi jakso saattaa sisältää mainontaa.

Jaksot(34)

19. Preventing Context Pollution with Subagents (Delegating Heavy Lifting)

19. Preventing Context Pollution with Subagents (Delegating Heavy Lifting)

In Episode 19 of Beyond Prompting, author Sho Shimoda explores how to manage complex, search-heavy engineering tasks without cluttering your main conversation window using Subagents. When an agent rea...

14 Loka 52min

18. Packaging and Distributing Workflows (Plugins and Marketplaces)

18. Packaging and Distributing Workflows (Plugins and Marketplaces)

In Episode 18 of Beyond Prompting, author Sho Shimoda explores how to bundle your team's custom skills, commands, subagents, hooks, and MCP server configurations into a single, installable unit using ...

12 Loka 29min

17. Connecting Systems with MCP (The Stateless Wire Protocol)

17. Connecting Systems with MCP (The Stateless Wire Protocol)

In Episode 17 of Beyond Prompting, author Sho Shimoda breaks down the Model Context Protocol (MCP)—the open standard that connects Claude Code to external systems like ticket trackers, wikis, and data...

11 Loka 47min

16. Packaging Standard Operating Procedures (Agent Skills)

16. Packaging Standard Operating Procedures (Agent Skills)

In Episode 16 of Beyond Prompting, author Sho Shimoda breaks down how to turn your team's recurring instructions and workflows into executable Agent Skills. Rather than re-explaining multi-step proced...

9 Loka 50min

15. Prompt Caching and Durable State (The Economics of Context and Memory)

15. Prompt Caching and Durable State (The Economics of Context and Memory)

In Episode 15 of Beyond Prompting, author Sho Shimoda breaks down prompt caching—the single largest cost lever in the Claude Code ecosystem—and demonstrates how to manage long-term project memory. We ...

5 Loka 48min

13. Curing AI Amnesia (CLAUDE.md and Rules)

13. Curing AI Amnesia (CLAUDE.md and Rules)

In Episode 13 of Beyond Prompting, author Sho Shimoda breaks down how to configure persistent repository instructions using CLAUDE.md and rule files. Rather than treating CLAUDE.md as a generic style ...

30 Syys 46min

12. Safe Refactoring of Legacy Code (Characterize, Change, Verify)

12. Safe Refactoring of Legacy Code (Characterize, Change, Verify)

In Episode 12 of Beyond Prompting, we tackle one of the most high-stakes tasks in software engineering: letting an AI agent refactor an existing codebase. Author Sho Shimoda breaks down why asking Cla...

29 Syys 44min