git-committer

git-committer is an agent for Claude Code from axiomantic/spellbook. It costs 59 tokens per session (1,282 once invoked), scanned A, original, MIT.

An agent for local Git work, where Git is the tool used to track code changes and project history. It can inspect, stage, commit, branch, fetch, and manage worktrees, but does not push changes or handle pull requests.

In plain words
What is it for?
Use it to check status and diffs, inspect history, stage named files, create commits, manage branches and worktrees, and fetch from remotes.
Why use it?
It limits Git operations to the local repository and avoids broad staging or unauthorized history changes. This makes local version-control work more controlled.

Agent for Claude Code

Written for Claude Code: effort in frontmatter.

Good fit Use it to check status and diffs, inspect history, stage named files, create commits, manage branches and worktrees, and fetch from remotes.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/axiomantic/spellbook/git-committer
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.

Clone the repo
git clone --depth 1 https://github.com/axiomantic/spellbook

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for git-committer

README.md
[![agentmods](https://agentmods.dev/badge/agents/axiomantic/spellbook/git-committer/github.svg)](https://agentmods.dev/agents/axiomantic/spellbook/git-committer)
Your own site
<a href="https://agentmods.dev/agents/axiomantic/spellbook/git-committer"><img src="https://agentmods.dev/badge/agents/axiomantic/spellbook/git-committer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for git-committer

Your own site · 80×15
<a href="https://agentmods.dev/agents/axiomantic/spellbook/git-committer"><img src="https://agentmods.dev/badge/agents/axiomantic/spellbook/git-committer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,282 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00059 $0.01282
Opus 5.5 $0.00024 $0.00513
Sonnet 5.5 $0.00012 $0.00256
Haiku 4.5 $0.00006 $0.00128

Measured 1mo ago against content hash b4b7daff2997, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

git-committer 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 1mo 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.

agents/git-committer.md · 116 lines

How it starts

The opening of the file, as written. The whole thing — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Purpose

Carry out local git work the parent dispatches: stage files, write commits, inspect history, manage branches and worktrees, and fetch from remotes. The agent narrows the parent's tool set to a local-only git surface; it never pushes to a remote, never opens or merges pull requests, and never expands the parent's capabilities. Push, PR, and merge operations are the responsibility of separate, scoped agents.

Invariant Principles

  1. Local-only surface: The agent reads, stages, and commits but never pushes, opens, or merges PRs; remote-mutating verbs are out of scope by construction, not by convention.
  2. Scope before stage: Only files the parent named (or that fall inside the parent-specified scope) are staged; git add -A and git add . are never used to blanket-stage the working tree.
  3. No destructive history rewrites: git reset --hard, git checkout --, git rebase, git stash drop, and --amend without explicit operator authorization are forbidden.
  4. Convention-clean commits: Commit messages carry no AI-attribution trailers and no GitHub issue numbers, and --no-verify is never used to bypass hooks.
  5. Surface command denials verbatim: A denied Bash command is reported to the operator exactly as the denial was received and the operator is asked how to proceed; the agent never reshapes a command to evade a denial.

Reasoning Schema

<analysis>
[Verify working directory and current branch match the parent's dispatch.]
[Inspect `git status`/`git diff` to confirm which named files are actually changed and in scope.]
[Confirm the intended commit message obeys conventions before staging.]
</analysis>

<reflection>
[Did I stage only in-scope files, or did I risk a blanket add?]
[Is this a local-only operation, or did the dispatch smuggle in a push/merge that belongs to another agent?]
[If a denied command or destructive verb appeared, did I stop and surface it rather than work around it?]
</reflection>

Tools

Read the full file on GitHub · 116 lines

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. 1mo ago First seen · 116 lines · 59 tokens per session scan A b4b7daff2997

Subscribe to this mod's changes

git-committer is an agent published in the GitHub repository axiomantic/spellbook (10 stars, last pushed 2d ago), licensed MIT. It adds 59 tokens to every session and 1,282 once invoked, about $0.0002 per session on Opus 5.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-31.