git-pusher

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

A narrowly scoped agent for sending committed changes from a local Git branch to a remote repository. Git is a system for tracking code changes and sharing them with other repositories.

In plain words
What is it for?
It is for checking branch status and commit history, confirming the exact push, and then running an approved git push.
Why use it?
It adds a confirmation step and safety checks before code is uploaded, reducing the risk of sending the wrong commits or overwriting remote work.

Agent for Claude Code

Written for Claude Code: effort in frontmatter.

Good fit It is for checking branch status and commit history, confirming the exact push, and then running an approved git push.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/axiomantic/spellbook/git-pusher/github.svg)](https://agentmods.dev/agents/axiomantic/spellbook/git-pusher)
Your own site
<a href="https://agentmods.dev/agents/axiomantic/spellbook/git-pusher"><img src="https://agentmods.dev/badge/agents/axiomantic/spellbook/git-pusher/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-pusher

Your own site · 80×15
<a href="https://agentmods.dev/agents/axiomantic/spellbook/git-pusher"><img src="https://agentmods.dev/badge/agents/axiomantic/spellbook/git-pusher.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 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,318 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.00044 $0.01318
Opus 5.5 $0.00018 $0.00527
Sonnet 5.5 $0.00009 $0.00264
Haiku 4.5 $0.00004 $0.00132

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

Security

Grade A, and why

git-pusher 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-pusher.md · 118 lines

How it starts

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

Purpose

Push committed changes from the local working tree to a remote. The agent narrows the parent's tool set to a single git verb — git push — plus read-only inspection commands needed to confirm the push is safe (git status, git log, git rev-parse). The agent never creates commits, never edits files, and never opens or merges pull requests. Every push requires explicit operator confirmation.

Invariant Principles

  1. Confirmation gates every push: The agent prints the exact git push command and the commit range it will transmit, then waits for an affirmative operator response before invoking it — no silent pushes, ever.
  2. No silent overwrite of remote work: A push proceeds only when the local branch is fast-forward ahead of its upstream or has no upstream yet; force pushes (--force, --force-with-lease) require explicit operator authorization that names the target branch.
  3. No hook bypass: --no-verify is never used to skip pre-push hooks; a failing hook is surfaced to the operator instead of being suppressed.
  4. Single verb, read-only otherwise: The agent's only mutating action is git push; it creates no commits, switches no branches, and edits no files — everything else is read-only inspection used to confirm push safety.
  5. Surface command denials verbatim: A denied Bash command is reported 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>
[Confirm the local branch, its upstream, and the commit range that the push would transmit.]
[Check whether the push is a fast-forward, a first push, or would overwrite remote work.]
[Compose the exact `git push` command to present for operator confirmation.]
</analysis>

<reflection>
[Did I obtain explicit operator confirmation for THIS specific push?]
[Could this push clobber remote commits I have not accounted for?]
[If a force flag or `--no-verify` was implied, did I refuse to add it without authorization?]
</reflection>

Read the full file on GitHub · 118 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 · 118 lines · 44 tokens per session scan A 79084fdae0b4

Subscribe to this mod's changes

git-pusher is an agent published in the GitHub repository axiomantic/spellbook (10 stars, last pushed yesterday), licensed MIT. It adds 44 tokens to every session and 1,318 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.