Claude Code mod

git-guard

Denies a Bash git command that loses work Claude Code does not already guard: git branch -D, a force push to main or master, and git checkout -- . or git restore . on a dirty tree; each deny names the safe alternative

2 starsGit & GitHub mods Plugin marketplace Source

Install

Inside Claude Code
/plugin marketplace add cpeaustriajc/cj-stack
/plugin install git-guard@cj-stack

Mods install like plugins. Run /reload-plugins or start a new session to load it.

What it can access

Reach
L2Writes or runs: runs processes
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.
Claude Code docs

Details

Folder
mods/git-guard
Marketplace
cj-stack
Author
CJ
Last updated
29 October 2026

FAQ

What is git-guard?

Denies a Bash git command that loses work Claude Code does not already guard: git branch -D, a force push to main or master, and git checkout -- . or git restore . on a dirty tree; each deny names the safe alternative It is a mod for Claude Code, from cpeaustriajc/cj-stack on GitHub.

What can the git-guard mod access?

Its widest reach is "writes or runs" (runs processes). 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 cpeaustriajc/cj-stack and then /plugin install git-guard@cj-stack.

Is git-guard popular?

cpeaustriajc/cj-stack has 2 GitHub stars and 0 forks, and is included in 1 curated Claude Code list. It was last updated on 29 October 2026.

More git & github mods

foundry

2

AbhiramDwivedi/claude-ops

Runs several crews of agents in parallel from the main session: each crew's lead delegates to your project's agents in its own worktree, and the crews' branches merge one at a time or into one integration branch

Git & GitHub mods/plugin install

hud-ci

2

kyledarling-io/claude-code-desktop-hud

Shows whether the GitHub Actions run for your branch is running, passed or failed after you push, in the HUD. Needs the HUD plugin and the GitHub CLI signed in.

Git & GitHub mods/plugin install

file-explorer

2

codejunkie99/claude-code-file-explorer

A file manager pane for Claude Code: colored tree, editable code, Git and PR diff, search, new/rename/delete.

Git & GitHub mods/plugin install

impact-radius

2

pablodiazjorge/impact-radius

Holds risky shell commands (recursive deletes, git reset --hard, git clean, force pushes, discarded changes, migrations and third-party installs for the whole user or system), shows what they would change and waits for you to press Run or Cancel. Bash and PowerShell, on Windows, macOS and Linux.

Git & GitHub mods/plugin install

effort-router

2

joeldg/claude-mods

Routes each turn's effort from your prompt: git housekeeping replies ("merged", "commit and push", "push it") run at low effort, deep asks (review, audit, plan, why does...) at max, everything else (approvals like "yes" or "continue" included) at the session's own. Switches only when the prompt cache makes it worth it, never mid-turn. Caps every turn and subagent at a lower effort once usage-meter says the plan's 5-hour budget is nearly used; can give subagents an effort of their own; optional model guard; /route shows and steers it. No model calls of its own.

Git & GitHub mods

kids

2

sevq1993-cyber/claude-code-kids

A pane with the tree of child chats spawned from this chat: what each is doing, which branch it sits on, and what is still not merged. Read-only, no model calls.

Git & GitHub mods/plugin install

Browse the most popular Claude Code mods, all git & github mods, or the skills and MCP server directories.