cache-shot-clock

by CJ Avilla · ★ 0 · updated 3 days ago

BandsReskinsvalidates

0

A shot clock for the prompt cache's TTL: a small countdown in the bar under the prompt, and a big LED clock above it for the last seconds before the next turn pays a full cache write.

install cache-shot-clock

Install

git clone https://github.com/cjavdev/mods
claude --plugin-dir ./mods/cache-shot-clock

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
session.startturn.startturn.completeturn.stepmodel.forkclassic.Stopclassic.PostModelSwitchsession.compactsession.endui.render
API calls
$.clock.every$.clock.now$.process.run$.state.get$.state.set$.ui.resolve$.ui.toast
Draws
PromptHintAbovePrompt
Can see
classic hookscompaction
Reach
level 2 of 3 other: $.state.getother: $.state.setruns processesdraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/cjavdev/mods
Path in repo
cache-shot-clock
Author
CJ Avilla @cjavdev
License
No license declared — ask the author before reusing code.
First published
Last pushed
First listed here
On X
Mentioned in 1 post on X

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.

Posts about this repo

CJ Avilla@cjav_dev

Built a few useful little Claude Code mods for myself and wanted to share... 🧵 https://github.com/cjavdev/mods

More from cjavdev/mods

cache-saver

cjavdev/mods

When an idle session's prompt cache is about to expire, summarizes it while the cache is still warm; when you come back, pick A (keep the full session, pay the cache write) or B (continue from the summary).

★ 01 postsPanesBandsPrompt

context-meter

cjavdev/mods

A tiny meter in the bar under the prompt showing how full the context window is: five cells, the percent and the token counts.

★ 01 postsReskinsGuards

link-bar

cjavdev/mods

Links in the bar under the prompt to the artifacts and pull requests mentioned most recently in the conversation.

★ 01 postsReskins