token-keeper
by Lam Anh Nguyen · ★ 0 · updated today
0
Cache Keeper by Nate Herk, cut down to token economics: cache stats, a dollar-based cold-send guard, keep warm with a break-even, and handoff
Install
/plugin marketplace add LamAnhNguyenHTW/token-keeper/plugin install token-keeper@token-keeperThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
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.startclassic.SessionStartprompt.submitturn.startturn.stepturn.completesession.compactsession.measuretool.callcommand.runui.render- API calls
$.clock.after$.clock.every$.clock.now$.command.list$.command.register$.command.run$.env.get$.fs.list$.fs.read$.fs.write$.model.fork$.prompt.fill$.prompt.submit$.session.compact$.session.cwd$.session.id$.session.model$.session.usage$.store.get$.store.set$.ui.ask$.ui.invalidate$.ui.log$.ui.resolve- Draws
AbovePromptSessionMode- Can see
classic hooksevery promptcompactionSkill calls- Reach
- level 2 of 3 writes filesdrives Claudewrites the prompt boxreads filesreads env varspersists statedraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/LamAnhNguyenHTW/token-keeper
- Path in repo
token-keeper- Source commit
ad98421the exact code the scan read- Author
- Lam Anh Nguyen @LamAnhNguyenHTW
- License
- MIT
- First published
- Last pushed
- First listed here
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.