git

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

A Git operations agent for creating and managing branches, staging files, making commits, and pushing changes to a remote repository.

In plain words
What is it for?
Use it to prepare changes, create commits, switch or create branches, and push work safely.
Why use it?
It helps carry out common Git tasks consistently while checking branch rules, commit messages, and potentially unsafe operations.

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 prepare changes, create commits, switch or create branches, and push work safely.

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

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-tools/git/github.svg)](https://agentmods.dev/agents/namastexlabs/automagik-tools/git)
Your own site
<a href="https://agentmods.dev/agents/namastexlabs/automagik-tools/git"><img src="https://agentmods.dev/badge/agents/namastexlabs/automagik-tools/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-tools/git"><img src="https://agentmods.dev/badge/agents/namastexlabs/automagik-tools/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.5 $0.00006 $0.01426
Sonnet 5.5 $0.00003 $0.00713
Haiku 4.5 $0.00002 $0.00357

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

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. 1mo 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-tools (15 stars, last pushed 10mo ago), licensed Apache-2.0. It adds 15 tokens to every session and 3,565 once invoked, about $0.0001 per session on Opus 5.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.

Related

Other agents, from other repositories

refactor-cleaner

Dead code cleanup and consolidation specialist. Use PROACTIVELY for removing unused code, duplicates, and refactoring. Runs analysis tools (knip, depcheck, ts-prune) to identify dead code and safely removes it.

affaan-m/ECC · 51 tokens

vibe-seed-pr-worker

Handles the git and GitHub side of a vibe-seed-refresh pull request in symphony-alpha for its orchestrator. Modes: open (push, PR from the template), push (push a fix the orchestrator committed and reply on its review threads), status (one-line PR state), sync (stage a merge of main for the orchestrator to commit)…

closedloop-ai/claude-plugins · 0 tokens

hydra-git

🟢 Hydra's git operations specialist. Handles all version control tasks: staging, committing with well-crafted Conventional Commits messages, branching, merging, rebasing, stashing, cherry-picking, log inspection, diff analysis, and conflict detection. Runs on the cheap tier — git operations are mechanical and…

AR6420/Hail_Hydra · 126 tokens

ralph-agent

Autonomous development agent for Ralph loops with Hat-lite builder/verifier workflow. Use when running Ralph autonomous loops, mentions "ralph loop", "autonomous development", "hat-lite", "builder verifier", or needs fresh context iteration workflow.

joaquimscosta/arkhe-claude-plugins · 52 tokens

trailhead-executor

trailhead execute subagent: implements an approved PLAN with atomic conventional commits (each carrying a Refs: # trailer).

ToRvaLDz/trailhead · 32 tokens

task-executor

Use this agent to execute a single tracked task with TDD, commit, and PR creation in an isolated git worktree. Dispatched by /coco:loop for parallel execution. Context: Multiple tasks are ready with non-overlapping file ownership. /coco:loop dispatches parallel agents. assistant: "I'll dispatch task-executor agents…

skullninja/coco-workflow · 97 tokens