git-guard

by Pedro Rozas · ★ 0 · updated 19 Oct 2026

BandsGuardsCommandswarnings

0

Stops Claude Code from committing, pushing, force pushing or opening PRs unless you grant a counted, expiring permission, and checks commit messages

install git-guard

Install

/plugin marketplace add PedroRozas/git-guard
/plugin install git-guard@git-guard

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.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
8ed3e15 the 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.