session-guardian
by Ardit · ★ 0 · updated 3 days ago
Keeps long sessions cheap and easy to pick up: warns before a session's cache goes cold and what coming back costs, nudges a wrap-up past a set size, saves a quiet session's state by itself before its cache goes cold, holds a command that keeps failing, and adds /wrapup, which also saves the session's dead ends.
Install
/plugin marketplace add A-rdit/session-guardian/plugin install session-guardian@session-guardianThen 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.startsession.measureturn.stepprompt.submitturn.completecommand.runsession.compactsession.endtool.callui.render- API calls
$.clock.after$.clock.every$.clock.now$.command.register$.prompt.submit$.session.usage$.state.get$.state.set$.ui.log$.ui.resolve$.ui.toast- Draws
AbovePrompt- Can see
every promptcompactionevery tool call- Reach
- level 2 of 3 drives Claudereads mod 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/A-rdit/session-guardian
- Path in repo
plugin- Source commit
783dc2bthe exact code the scan read- Author
- Ardit @A-rdit
- 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.