What is git-confirm?
git-confirm is a Claude Code mod by NikolajMosbaek that refuses force-pushes, and before a git command that would destroy work that isn't Claude's own, shows an alarm with what would be lost and asks. It is listed under Git & CI and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | NikolajMosbaek |
| Repository | NikolajMosbaek/claude-tooling |
| Popularity | no public popularity data yet |
| Category | Git & CI |
| Security | Low risk (84/100) |
| Rank | #4,151 of 5,272 Claude Code mods; #295 in Git & CI |
| Last commit | 2026-10-04 |
| Hooks | 2 events |
| Sees | AskUserQuestion calls, Bash calls, every tool call |
| Draws on | AskUserQuestion |
Is git-confirm safe to install?
git-confirm scores 84/100 on the MCPMods security check: Low risk. Things to review: starts processes outside the sandbox. It passed 6 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts processes outside the sandbox | Review |
| Writes no files or config | Pass |
| Doesn't read environment variables | Pass |
| Only sees the events it hooks | Pass |
| Doesn't drive Claude | Pass |
| Passes claude plugin validate | Pass |
| No license detected | Note |
API calls in its code
| Call | What it means |
|---|---|
$.audio.play | plays audio |
$.fs.exists | reads files |
$.process.run | runs processes |
$.session.cwd | |
$.state.get | |
$.state.set | |
$.ui.ask | draws interface |
$.ui.log | draws interface |
$.ui.resolve | draws interface |
How do I install git-confirm?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/NikolajMosbaek/claude-tooling claude plugin validate ./claude-tooling/git-confirm
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add NikolajMosbaek/claude-tooling && claude plugin install git-confirm@claude-tooling
Or ask Claude to set it up
Paste this into Claude Code and it installs git-confirm for you:
Install the "git-confirm" Claude Code mod from https://github.com/NikolajMosbaek/claude-tooling/tree/main/git-confirm. Run claude plugin validate on it first and show me what it can access before you enable it.
More from NikolajMosbaek/claude-tooling
This repository has 2 Claude Code mods on MCPMods.
- dev-commands: Instant commands that run without a Claude turn: /build-status for the latest xcodebuild, /wt for the worktree list (Low risk)