Home / Claude Code mods / Git & CI / git-confirm

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.

Updated 2026-10-04

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.

TypeClaude code mod
AuthorNikolajMosbaek
RepositoryNikolajMosbaek/claude-tooling
Popularityno public popularity data yet
CategoryGit & CI
SecurityLow risk (84/100)
Rank#4,151 of 5,272 Claude Code mods; #295 in Git & CI
Last commit2026-10-04
Hooks2 events
SeesAskUserQuestion calls, Bash calls, every tool call
Draws onAskUserQuestion

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.

CheckResult
No network accessPass
Starts processes outside the sandboxReview
Writes no files or configPass
Doesn't read environment variablesPass
Only sees the events it hooksPass
Doesn't drive ClaudePass
Passes claude plugin validatePass
No license detectedNote

API calls in its code

CallWhat it means
$.audio.playplays audio
$.fs.existsreads files
$.process.runruns processes
$.session.cwd
$.state.get
$.state.set
$.ui.askdraws interface
$.ui.logdraws interface
$.ui.resolvedraws interface

How do I install git-confirm?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. 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
  3. 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)