Claude Code Coffee — Development skill for Claude Code
Keep your Claude Code prompt cache warm during breaks.
How to install Claude Code Coffee
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open cnighswonger/claude-code-coffee and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Code Coffee does
Keep your Claude Code prompt cache warm during breaks. Saves up to 92% on cache rebuild costs.
Alternatives in Development
- Prompt Net Requests — I want to enhance the AsyncPlaywrightCrawlerStrategy to optionally capture network requests and console messag 85.8k ★
- Mono Color Skill — One-ink editorial print image skill — warm paper, halftone photography, active negative space, and restrained 3k ★
- Convert Video Prompt — Prompt: rebuild a video as SVG + GSAP code 197 ★
README
claude-code-coffee
[](https://opensource.org/licenses/MIT) [](https://github.com/anthropics/claude-code)
A [Claude Code](https://github.com/anthropics/claude-code) skill that keeps your prompt cache warm while you're away. Prevents expensive cold cache rebuilds when you return from a break.
The problem
When you step away from a Claude Code session, the prompt cache expires after its TTL (5 minutes under overage pricing, 1 hour normally). Returning to a large context forces a full cache rebuild at $10/MTok (1h write) instead of a cache read at $0.50/MTok. A 460k token context costs ~$3.86 to rebuild from scratch.
The solution
`/coffee 30` schedules lightweight periodic pings that keep the cache in the "read" state while you're away. Each ping costs ~17x less than a cold rebuild.
Installation
**One-liner:**
mkdir -p ~/.claude/skills/coffee && curl -fsSL https://raw.githubusercontent.com/cnighswonger/claude-code-coffee/main/SKILL.md -o ~/.claude/skills/coffee/SKILL.md
**Or clone and install:**
git clone https://github.com/cnighswonger/claude-code-coffee.git
cd claude-code-coffee
bash install.sh
Restart Claude Code after installing to pick up the new skill.
Usage
/coffee [duration]
| Command | Duration | Description |
|---|---|---|
/coffee |
30 min | Default coffee break |
/coffee 15 |
15 min | Quick break |
/coffee 1h |
1 hour | Meeting |
/coffee 2h |
2 hours | Long lunch |
/coffee overnight |
Until 8 AM | Overnight warmer |
/coffee overnight 7 |
Until 7 AM | Custom wake time |
When invoked, the skill:
- Detects your current cache TTL tier (5min or 1h)
- Estimates your context size
- Shows a cost breakdown (ping cost vs cold start cost vs savings)
- Schedules recurring keepalive pings at the right interval
- Schedules an
Related Skills
Cache Tax
Keep Claude Code’s prompt cache warm during breaks and show the estimated cost before a cold send.
Tokenite
A slim band above the Claude Code prompt: usage left and when it runs out, a warm or cold prompt cache, and wh
Claude Statusline Plus
Claude Code status line segments: whether your prompt cache is still warm and what a cold start costs, and whe
Cc Cache Keepalive
Keep the most recently used Claude Code prompt cache warm without polluting the original session.
Wirescope
A transparent analytical proxy for the Claude Code & Codex CLIs — see the real per-turn cost, prompt-cache war
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
Related Agents
Follow Up Agent
Use to keep warm conversations from going cold: stalled threads after an accept or a maybe, people who asked t
Worker Apply Opus
Resumable implementation worker for non-SDD work units. Applies multi-file changes from a handoff, absorbs fol
Stats Analyzer
Analyzes ~/.claude/stats-cache.json and history.jsonl to produce a concise usage report with model token break