Claude Code mod
git-guard
Saves a git bundle of the repository before Bash commands that rewrite or delete git history: force pushes, filter-repo, reset --hard, branch and tag deletes.
Install
/plugin marketplace add ShaKy8/Claude-Mods
/plugin install git-guard@claude-modsMods install like plugins. Run /reload-plugins or start a new session to load it.
What it can access
- Reach
- L2Writes or runs: runs processes, reads files, reads env vars, draws
- Sees
- Bash calls
- Hooks
tool.call
From a static scan of the mod's code by awesome-claude-code-mods. It shows what the code asks for, not a security review.
How Claude Code mods work
- A mod is a plugin with a JavaScript or TypeScript module that runs inside Claude Code (version 2.1.287 or later). It can draw panes beside the transcript, a band above the prompt, buttons and toasts, restyle the spinner and tool rows, and watch or rewrite tool calls and prompts.
- It installs like any plugin: add its marketplace with /plugin marketplace add owner/repo, then /plugin install name@marketplace.
- Check what a mod can reach before installing: it runs with your permissions. Reach goes from drawing only, to reading files, to writing files or running processes, to the network. Run claude plugin validate on a clone to list its hooks and calls without running it.
- Turn one off from the Installed tab in /plugin, or start Claude Code with --safe-mode to skip every customization for a session.
Details
- Repository
- ShaKy8/Claude-Mods
- Folder
git-guard- Marketplace
claude-mods- Author
- kyle
- License
- MIT
- Last updated
- 15 November 2026
- Listed in
- awesome-claude-code-mods
FAQ
What is git-guard?
Saves a git bundle of the repository before Bash commands that rewrite or delete git history: force pushes, filter-repo, reset --hard, branch and tag deletes. It is a mod for Claude Code, from ShaKy8/Claude-Mods on GitHub.
What can the git-guard mod access?
Its widest reach is "writes or runs" (runs processes, reads files, reads env vars, draws). It sees Bash calls. Like any mod, it runs with your permissions.
How do I install git-guard?
Inside Claude Code (v2.1.287 or later), run /plugin marketplace add ShaKy8/Claude-Mods and then /plugin install git-guard@claude-mods.
More git & github mods
git-guard
PedroRozas/git-guard
Stops Claude Code from committing, pushing, force pushing or opening PRs unless you grant a counted, expiring permission, and checks commit messages
git-gud
enriquesanchez-elastic/git-gud
Prepare to code. A Souls-like for your terminal: YOU DIED when a command fails, runes for every edit, a bloodstain to retrieve, BONFIRE LIT on commit, and messages from other Tarnished.
git-graph
juliomyitbrain/claude-code-git-graph
A pane that draws the repository's commit graph: lanes, merges and branch labels, with a card of details for a clicked commit
git-mod
netgfx/claude-git-mod
A /git side panel: changed files with stage buttons, AI commit messages, push, branch search and checkout, and stashes with AI titles
git-file-tree
CosminBd/claude-git-file-tree
A git pane for Claude Code: review what Claude changed (per prompt, uncommitted or the whole branch), read diffs and rendered Markdown, then stage, commit, push and open a PR without leaving the terminal.
git-status
marco-rademacher/claude-git-status
A status line below the prompt with the changes and unpushed commits of the session's git repository — local only, no fetch.
Browse the most popular Claude Code mods, all git & github mods, or the skills and MCP server directories.