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 explore why two identical sessions can vary dramatically in cost based on how they handle cached context and how to structure state that outlives individual sessions. In this episode, we cover:

    • The Three Cached Layers: How prompt caching organizes context into three ordered layers—system prompt, project context, and conversation—allowing routine turns to run at roughly a tenth of standard input costs by reading cached prefixes.
    • What Discards the Cache: Unintentional actions that invalidate the cached prefix—such as switching models mid-task, changing effort levels, toggling fast mode, or connecting MCP servers on the fly—and how planning session parameters upfront avoids expensive cache rebuilds.
    • Cache Lifetimes (5-Minute vs. 1-Hour TTL): How cache retention periods operate across subscription plans and usage credits, and how to configure TTL settings to match your working rhythm.
    • Durable State Beyond Sessions: Why conversation history is the wrong place to store architectural history, and how to maintain version-controlled decision records (decisions.md) that agents read at session start and update upon completing tasks.

(Note for listeners: This episode covers Chapter 15 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).

Det här avsnittet är hämtat från ett öppet RSS-flöde och publiceras inte av Podme. Det kan innehålla reklam.

Avsnitt(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 Okt 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 Okt 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 Okt 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 Okt 50min

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

4 Okt 45min

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 Sep 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 Sep 44min

Populärt inom Teknik

uppgang-och-fall
rss-ai-med-jonas-benjamin
bilar-med-sladd
elbilsveckan
natets-morka-sida
skogsforum-podcast
rss-technokratin
market-makers
rss-elektrikerpodden
rss-snacka-om-ai
rss-uppgang-och-fall
rss-laddstationen-med-elbilen-i-sverige
rss-upplyst-entreprenordirektor
rss-veckans-ai
bli-saker-podden
gubbar-som-tjotar-om-bilar
rss-fabriken-2
vi-bilagares-podcast
rss-en-ai-till-kaffet
rss-it-sakerhetspodden