Claude Code Cache Kit — Development skill for Claude Code
One setting, the cost math and a checklist for Claude Code prompt caching (5-min vs 1-hour TTL).
How to install Claude Code Cache Kit
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open grandamenium/claude-code-cache-kit and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Code Cache Kit does
One setting, the cost math and a checklist for Claude Code prompt caching (5-min vs 1-hour TTL).
Alternatives in Development
- Symfony Cache — Implement caching strategies using Symfony Cache component 206 ★
- Compact 서비스 (대화 요약) — 관찰 위치: Claude Code 내부 아키텍처 변수: NO_TOOLS_PREAMBLE, BASE_COMPACT_PROMPT, PARTIAL_COMPACT_PROMPT, PARTIAL_COMPACT 149 ★
- Performance Check — Analyze Drupal site performance and caching configuration 46 ★
README
Claude Code Cache Kit
Your subagents probably re-pay for the same context over and over. This kit shows you the one setting that fixes it for long-waiting subagents, when it actually saves money, and how to check it's working.
Prices and settings checked **October 11, 2026**. They change; verify against the linked docs before relying on them.
1. How the cache works (30 seconds)
Every request Claude Code sends starts with the same big prefix: system prompt, tools, CLAUDE.md, history. If the next matching request lands before the cache timer runs out, that prefix is billed as a **cache read**, which is 5% of normal input on Opus 5.5 and Sonnet 5.5. If it lands after, you pay to **write** it again.
Which timer you get depends on where the work runs:
| Where it runs | On a subscription | On API key / usage credits / cloud billing |
|---|---|---|
| Main session | 1 hour | 5 minutes |
| Fresh subagent | 5 minutes | 5 minutes |
| Fork of the conversation | 5 minutes (normally) | 5 minutes |
So a subagent that sits waiting on a long build or test run for more than 5 minutes comes back to a cold cache and re-writes its whole prefix.
2. The setting
Merge this into your existing `settings.json`. Don't replace the file. Requires Claude Code **2.1.242+**.
{
"subagentPromptCacheTtl": "1h"
}
This covers subagents and other work outside the main session (workflows, compaction, titles).
On an API key or usage credits, `"promptCacheTtl": "1h"` does the same for the main session. Subscriptions already get 1 hour there.
Or per agent (2.1.248+, experimental)
In one agent's `.md` file:
---
name: long-gap-researcher
description: Research tasks that pause for long-running tools
experimental:
cacheTtl: 1h
---
- It must sit under
experimental:. - It's read from agent files only;
--agentsJSON ignores it. - It's ignored while a subscription is running on paid usage credits.
- The global setting above overrides it.
Env var e
Related Skills
Herdr Auto Warm Cache
A herdr plugin that keeps an idle agent's prompt cache warm before the one-hour TTL expires — 20x cheaper than
Token Hamster
🐹 Claude Code mod & plugin: usage monitor, token tracker & statusline. Live token usage, 5-hour session and w
Claude API Skill
Professional-grade Claude API skill framework. Comprehensive guide covering Messages API, streaming, tool use,
Claude Prompt Cache Keepalive
Agent skill for Claude Code: keep the 1-hour prompt cache warm while you are away, with a ladder of background
Claude Statusline Plus
Claude Code status line segments: whether your prompt cache is still warm and what a cold start costs, and whe
Claude Code Hud
Two Claude Code mods above the prompt box: context-window meter, 5-hour limit, prompt clocks and session cost
Related Agents
Claudehut DB Reviewer
Persistence and data-access performance review — JPA/R2DBC mappings, fetch strategy, transaction boundaries, m
Sdl Game Helper
SDL2/SDL1 game port specialist for AmigaOS. Knows the libSDL2-amigaos3 fast-path traps, blitter mode tradeoffs
Bazel CI Analyzer
Use this agent when:\\n- The user needs to analyze or optimize Bazel configuration in CI/CD pipelines, particu