Session Hygiene
Configurable rule tripwires plus a handoff card of open loops from earlier sessions.
Illustration. Actual results depend on the mod, terminal and environment.
Install
/plugin marketplace add bennewton999/claude-code-mods
/plugin install session-hygiene@bennewton-mods
/reload-pluginsRun these commands one at a time in a Claude Code session.
claude plugin marketplace add bennewton999/claude-code-mods
claude plugin install session-hygiene@bennewton-modsThen run /reload-plugins in your session, or start a new session.
Please install the Claude Code mod "Session Hygiene" (https://github.com/bennewton999/claude-code-mods). Before installing, read the Security and Requirements sections of its README and tell me what it reads and writes, which commands it runs, whether it uses the network, and which Claude Code version, OS and terminal it needs. If everything looks fine, run claude plugin marketplace add bennewton999/claude-code-mods and claude plugin install session-hygiene@bennewton-mods, then remind me to run /reload-plugins in my session.Send this to Claude Code so it reads the author’s instructions before installing.
git clone https://github.com/bennewton999/claude-code-mods
cd claude-code-mods
claude --plugin-dir ./session-hygieneClone the repository and try it in a local session with --plugin-dir.
What it accesses
Based on the author’s documentation, checked when listed; use claude plugin validate to check for yourself.
Reads
YesObserves tools/git and plugin options; handoff uses gh to read PRs.
Writes files
YesWrites open-loop and tripwire state to the on-device plugin store.
Runs commands
YesRuns git; handoff re-check runs gh pr view.
Network
YesHandoff re-check reaches GitHub via gh (author Privacy section).
Introduction
Session Hygiene is a Claude Code function-hooks mod. Plugin options enable tripwires (typecheck before push, mutation-check new tests, review before push, hold sourcing .env, and more) with toasts and reminders to Claude, plus /handoff for open loops. Handoff re-checks use gh against GitHub. Defaults lean toward the author's repos—configure per project. Scores are README-calibrated, not run-tested here.
Who it is for
- People who want project rules enforced as tripwires on agent actions
Requirements
No additional requirements specified; check the author’s instructions.