Prompt Caching in Coding Agents: How Claude Code, Codex CLI, OpenCode and Pi Keep the Prefix Stable
A coding agent sends its entire context again on every request, so prompt caching decides most of what a session costs: a 60-request session on Claude Sonnet 5.5 costs $12.99 with no caching and $1.31 when every request hits the cache.