keep-warm
Skill8 starsChanged 5 months agoMITView on GitHub
Refresh the prompt cache for this session with one minimal turn, and report when it expires next. Use when asked for "/keep-warm", "keep the cache warm", or just before stepping away from a long session.
In this repository17 other files it gives its agents.
- handoffSkill
- savingsSkill
- switchboardSkill
- tq-forge-agentSkill
- tq-forge-agentsSkill
- tq-forge-improve-allSkill
- tq-forge-improveSkill
- tq-forge-learnSkill
- tq-forge-listSkill
- tq-forge-promoteSkill
- tq-forge-queueSkill
- tq-forge-resumeSkill
- tq-forge-scanSkill
- tq-forgeSkill
- tq-forge-skillSkill
- tq-forge-statusSkill
- tq-forge-testSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Read the cache clock:
- Distinctive: line 24
Stop. Do not summarize the session, read files, or call other tools.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/keep-warm
When to use
Run this when the user is about to pause a long session and wants the next turn to read the conversation from the prompt cache instead of paying to write it again. Sending this command is itself the refresh: any turn in the session resets the cache clock, so the reply should be as small as possible.
Procedure
- Read the cache clock:
M="$HOME/.claude/hooks/tq-forge/mods.py"; [ -f "$M" ] || M=".claude/hooks/tq-forge/mods.py"
python3 "$M" keep-warm- Reply in one line with what it printed: how long the cache stays warm from now.
- Stop. Do not summarize the session, read files, or call other tools; every extra token here is cost with no benefit.
Pitfalls
- A refresh is not free. It reads the whole conversation from the cache once, so it pays off only if the user comes back before the next expiry.
- The cache lasts about an hour on a Claude subscription and about five minutes with an API key. On the five-minute clock, keeping a session warm through a long break costs more than letting it go cold.
tq-forge keep-warm --waitin another terminal rings the bell when a refresh is due. It cannot send the turn for you; only a message in this session refreshes this session's cache.
Verification
- The command prints the minutes left, and the status line (if it shows the cache clock) resets after this turn.
Tags
cache, keep-warm, cost, mods
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

