Claude Code built a machine to explain prompt caching

1 month ago

I asked Claude Code to explain prompt caching. It built me this machine.

Ask about this presentation

Chapters

  1. 0:00Claude Code built this to explain prompt caching
  2. 0:05One line, with a free skill called Anatomy
  3. 0:09First call: it reads every tile. $0.104
  4. 0:18Cached: $0.008 a call
  5. 0:25The catch: the cache lasts 5 minutes
  6. 0:3322 minutes. One prompt.
  7. 0:40npx skills add wheresryan22/anatomy
  8. 0:48What would you have it explain?
Show transcript
  1. I asked Claude Code to explain prompt caching. It built me this machine.

    Slide text
  2. One line, and a free skill called Anatomy.

    Slide text
  3. Each tile is a thousand tokens of the prompt. The first call reads every one, and pays a little extra to cache them: about ten cents.

    Slide text
  4. Call again, and the clamped tiles are already cached. The reader skips them, and the call costs less than a cent.

    Slide text
  5. The catch: the cache only lasts five minutes. Wait any longer, the clamps let go, and the next call pays to read it all again.

    Slide text
  6. It took twenty-two minutes on its own. And it checked every line of its own drawing before it stopped.

    Slide text

    Our run, 14 October

    About 70 parts, on Opus 5.5. It checked every line of its own drawing before it stopped.

  7. Anatomy is free, and it runs in Codex and OpenCode too. It's at almost ten thousand GitHub stars in under a week.

    Slide text

    Free · MIT · Claude Code, Codex, OpenCode

    About 9,900 GitHub stars in six days.

    github.com/wheresryan22/anatomy ↗
  8. What would you have it explain? Tell me below.

    Slide text

    Your turn

What happened in AI today, in your inbox

One short email each evening. Read it and you’re caught up.

Built with ❤️ in New York