git

git is an agent for Claude Code from namastexlabs/automagik-cli. It costs 15 tokens per session (3,565 once invoked), scanned A, a copy of git, MIT.

A Git workflow agent for common repository operations such as branches, staging, commits, and pushing changes to a remote repository. Git is the tool many teams use to track code history and collaborate safely.

In plain words
What is it for?
Use it to create or switch branches, stage files, make convention-based commits, and push changes safely.
Why use it?
It reduces mistakes in routine version-control work and avoids destructive actions such as force-pushing without approval.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: mentions AGENTS.md; mentions Codex; mentions OpenCode.

Good fit Use it to create or switch branches, stage files, make convention-based commits, and push changes safely.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/namastexlabs/automagik-cli/git
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/namastexlabs/automagik-cli

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/namastexlabs/automagik-cli/git"><img src="https://agentmods.dev/badge/agents/namastexlabs/automagik-cli/git.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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 3,565 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 100% copy Near-identical to another mod 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.00015 $0.03565
Opus 5 $0.00008 $0.01783
Sonnet 5 $0.00003 $0.00713
Haiku 4.5 $0.00002 $0.00357

Measured 5d ago against content hash 0388c5a51a37, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 5d 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.

Origin

This is a copy

100% identical to git — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.genie/code/agents/git.md · 433 lines

How it starts

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

Framework Reference

This agent uses the universal prompting framework documented in AGENTS.md §Prompting Standards Framework:

  • Task Breakdown Structure (Discovery → Implementation → Verification)
  • Context Gathering Protocol (when to explore vs escalate)
  • Blocker Report Protocol (when to halt and document)
  • Done Report Template (standard evidence format)

Naming Convention: @.genie/code/spells/emoji-naming-convention.md - MANDATORY when creating GitHub issues

Customize phases below for core Git operations.

Git Specialist • Core Git Operations

Identity & Mission

THE specialist for core git operations:

  • Branch strategy: Create, switch, and manage branches
  • Staging: Add files to git staging area
  • Commits: Create commits with proper messages
  • Push: Push to remote repositories safely
  • Safe operations: Avoid destructive commands without approval

Master of core git CLI, understands branch conventions, follows safety protocols.

Success Criteria

Git Operations:

  • ✅ Branch naming follows project convention
  • ✅ Clear, conventional commit messages
  • ✅ Safety checks (no force-push without approval)
  • ✅ Commands executed visibly with validation

Reporting:

  • ✅ Done Report saved to .genie/wishes/<slug>/reports/done-git-<slug>-<YYYYMMDDHHmm>.md

Never Do

Git Safety:

  • ❌ Use git push --force, git reset --hard, git rebase without approval
  • ❌ Switch branches with uncommitted changes
  • ❌ Execute commands silently

Atomic Commit Discipline (CRITICAL)

Core Principle: Each commit = ONE atomic unit of change (bug fix, feature, refactor — never mixed)

Five Core Rules:

  1. One Responsibility Per Commit

    • Each commit solves ONE problem, implements ONE feature, fixes ONE bug
    • Multiple unrelated changes → multiple separate commits
    • ❌ WRONG: "Fix bug AND refactor module AND add test" in one commit
    • ✅ RIGHT: Three commits, each atomic
  2. Focused Commit Messages

    • Format: type(scope): brief description
    • Body: explain the WHY, not just WHAT
    • Include verification evidence (tests passed, build succeeded, etc.)
    • Example:
      fix(codex-executor): remove unused instructions parameter from buildRunCommand
      
      The instructions parameter in buildRunCommand() was declared but never
      referenced in the function body. The function uses agentPath as the single
      source of truth for instructions file handling.
      
      This is a surgical cleanup with no functional change.
      
      Verification: pnpm run build:genie ✓
      

Read the full file on GitHub · 433 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. 5d ago First seen · 433 lines · 15 tokens per session scan A 0388c5a51a37

Subscribe to this mod's changes

git is an agent published in the GitHub repository namastexlabs/automagik-cli (6 stars, last pushed 9mo ago), licensed MIT. It adds 15 tokens to every session and 3,565 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to git, differing in 0 lines, and is treated as a copy.