git-guard
by Pedro Rozas · ★ 0 · updated 19 Oct 2026
0
Stops Claude Code from committing, pushing, force pushing or opening PRs unless you grant a counted, expiring permission, and checks commit messages
Install
/plugin marketplace add PedroRozas/git-guard/plugin install git-guard@git-guardThen 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.runtool.callturn.startturn.completeui.render- API calls
$.clock.after$.command.register$.process.run$.prompt.submit$.state.get$.state.set$.ui.resolve- Draws
AbovePrompt- Can see
Bash calls- Reach
- level 2 of 3 runs processesdrives 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/PedroRozas/git-guard
- Path in repo
- repository root
- Source commit
8ed3e15the exact code the scan read- Author
- Pedro Rozas @PedroRozas
- 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.