Shorter Prompts Cost More: The Prompt Caching Trap in Coding Agents
Comments
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules
Summary
TheGitAI argues that deleting an old block, such as a 20,000-token build log, from the middle of a warm coding-agent session raises the next turn's input cost 5.7x to 8.0x, because provider caches match from token zero. Its break-even formula, applied to published November 2026 rates, puts recovery at 37 to 97 turns. Those figures are the author's own calculation and assume identical future turns. A November 2026 study found pruning raised agent cost 38% to 116% under cheap caching.