session-guardian

by Ardit · ★ 0 · updated 3 days ago

BandsGuardsCommandsPromptvalidates

0

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 session-guardian

Install

/plugin marketplace add A-rdit/session-guardian
/plugin install session-guardian@session-guardian

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.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
783dc2b the 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.