context-guard
by Mike Daykhin | founder @ talenthunt.work · ★ 0 · updated 23 days ago
0
When the session context passes a size threshold, asks whether to compact, start fresh, or keep going.
Install
/plugin marketplace add WIPexpert/mikeday-session-kit/plugin install context-guard@session-kitThen 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.startcommand.runturn.completesession.endui.render- API calls
$.clock.after$.clock.every$.clock.now$.command.list$.command.register$.command.run$.prompt.submit$.session.compact$.session.surfaces$.session.usage$.store.delete$.store.get$.store.set$.ui.ask$.ui.invalidate$.ui.log$.ui.resolve$.ui.toast- Draws
AbovePromptSpinner- Reach
- level 2 of 3 drives Claudepersists 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/WIPexpert/mikeday-session-kit
- Path in repo
plugins/context-guard- Source commit
1fe0202the exact code the scan read- Author
- Mike Daykhin | founder @ talenthunt.work @WIPexpert
- 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.