Claude Code's Prompt-Cache Costs Are 85% Fixed Overhead, Developer Finds
A developer systematically measured Claude Code's prompt-cache token usage across three launch paths — the VSCode extension, a VSCode-internal terminal, and a standalone terminal like iTerm2 — and found significant differences in cache behaviour. Both VSCode-based paths consistently hit Anthropic's shared prompt cache, registering 10,270 cache-read tokens, while the standalone terminal recorded zero cache reads and paid full cache-creation costs every session. After stripping out user-controlled elements such as CLAUDE.md files, skills, and hooks, roughly 85% of the remaining cache-creation cost proved to be Claude Code's own fixed overhead. The analysis used a short Python script that reads per-turn token usage directly from Claude Code's JSONL session logs stored under ~/.claude/projects/. The findings suggest that choosing the right launch path is a more impactful cost lever than trimming user configuration files.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in