git

A set of commands for common Git tasks, such as checking changes, viewing branches, saving work temporarily, rebasing, committing, and finding merge conflicts.

In plain words
What is it for?
Use it to inspect repository status and history, manage branches and stashed work, rebase onto the main branch, create or amend commits, and locate conflict markers.
Why use it?
It puts routine Git checks and actions in one place, so you do not have to remember each command. It also asks for confirmation before pushing changes.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/brain-bootstrap/claude-code-brain-bootstrap/git
Clone the repo
git clone --depth 1 https://github.com/brain-bootstrap/claude-code-brain-bootstrap

Made for: Claude Code.

Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 481 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00015 $0.00481
Opus 5 $0.00008 $0.00241
Sonnet 5 $0.00003 $0.00096
Haiku 4.5 $0.00002 $0.00048

Measured 2d ago against content hash 2694644d765c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

git scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/git.md · 50 lines

What it actually says

Manage Git workflow: $ARGUMENTS

Pre-loaded context

Branch: !git branch --show-current Status: !git status --short 2>/dev/null | head -15 Recent commits: !git --no-pager log --oneline -5 2>/dev/null || echo "N/A"

Instructions

⚠️ NEVER git push autonomously — present summary + proposed command, wait for user confirmation.

Determine action from arguments:

Argument Action
status git status + git --no-pager log --oneline -5
branch git branch --show-current
branches git --no-pager branch -a | head -30
stash git stash
stash pop git stash pop
rebase main git fetch origin main && git rebase origin/main
commit <message> git add -A && git commit -m "<message>"
amend git add -A && git commit --amend --no-edit
log git --no-pager log --oneline -20
conflicts grep -rn '^<<<<<<<|^=======|^>>>>>>>' .

Branch naming convention:

  • Feature: feat/<ticket-id>-<short-description>
  • Fix: fix/<ticket-id>-<short-description>
  • Chore: chore/<description>

Pre-push checklist (present to user):

  1. ✅ Build passes
  2. ✅ Tests pass
  3. ✅ Lint clean on changed files
  4. ✅ No conflict markers in repo
  5. ✅ Diff review complete (merge-base aware)
  6. 📋 Proposed command: git push origin <branch>
  7. ⏳ Waiting for user confirmation...
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 50 lines · 15 tokens per session scan A 2694644d765c

Subscribe to this mod's changes

git is a command published in the GitHub repository brain-bootstrap/claude-code-brain-bootstrap (11 stars, last pushed 4mo ago), licensed MIT. It adds 15 tokens to every session and 481 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.