context-budget
by Zinzan · ★ 0 · updated 10 days ago
0
Compact reminders as the context grows, a check before resuming a large session after the prompt cache expires, and per-type models with a minimum effort for subagents.
Install
/plugin marketplace add Zinzan48/claude-mods/plugin install context-budget@zinzan-modsThen 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.startturn.completesession.compactprompt.submitagent.spawnturn.stepcommand.runui.render- API calls
$.clock.now$.command.register$.command.run$.model.fork$.prompt.fill$.prompt.read$.session.id$.session.messages$.session.usage$.settings.read$.state.get$.state.set$.store.delete$.store.get$.store.keys$.store.set$.ui.resolve$.ui.status$.ui.toast- Draws
AbovePrompt- Can see
compactionevery promptsubagent spawns- Reach
- level 2 of 3 drives Claudewrites the prompt boxreads settingsreads the transcriptreads the prompt boxreads mod statepersists 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/Zinzan48/claude-mods
- Path in repo
context-budget- Source commit
b74171dthe exact code the scan read- Author
- Zinzan @Zinzan48
- 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.