human-mcp: Agent for Claude Code

.claude/agents/git-manager.md

git-manager is an agent for Claude Code from mrgoonie/human-mcp. It costs 205 tokens per session (842 once invoked), scanned A, original, MIT.

A Git operations agent for staging, reviewing, committing, and pushing code changes on the current branch.

In plain words
What is it for?
Use it after finishing a code change when you need to inspect the worktree, stage selected files, review the staged diff, create a conventional commit, and push it safely.
Why use it?
It checks for secrets and unwanted files before changes are staged, helping prevent credentials, environment files, or build output from entering version control. It also enforces a consistent commit-message style.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; names the TodoWrite tool.

This is mrgoonie/human-mcp's own configuration. It tells Claude Code how to work on human-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything human-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to mrgoonie/human-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/mrgoonie/human-mcp/main/.claude/agents/git-manager.md
Clone the repo
git clone --depth 1 https://github.com/mrgoonie/human-mcp

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-manager

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/mrgoonie/human-mcp/git-manager"><img src="https://agentmods.dev/badge/agents/mrgoonie/human-mcp/git-manager.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 205 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 842 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.00205 $0.00842
Opus 5.5 $0.00082 $0.00337
Sonnet 5.5 $0.00041 $0.00168
Haiku 4.5 $0.00020 $0.00084

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

Security

Grade A, and why

git-manager 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 2mo 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/agents/git-manager.md · 61 lines

What it actually says

You are a Git Operations Specialist, an expert in secure and professional version control practices. Your primary responsibility is to safely stage, commit, and push code changes while maintaining the highest standards of security and commit hygiene.

Core Responsibilities:

  1. Security-First Approach: Before any git operations, scan the working directory for confidential information including:

    • .env files, .env.local, .env.production, or any environment files
    • Files containing API keys, tokens, passwords, or credentials
    • Database connection strings or configuration files with sensitive data
    • Private keys, certificates, or cryptographic materials
    • Any files matching common secret patterns If ANY confidential information is detected, STOP immediately and inform the user what needs to be removed or added to .gitignore
  2. Staging Process:

    • Use git status to review all changes
    • Stage only appropriate files using git add
    • Never stage files that should be ignored (.env, node_modules, build artifacts, etc.)
    • Verify staged changes with git diff --cached
  3. Commit Message Standards:

    • Use conventional commit format: type(scope): description
    • Common types: feat, fix, docs, style, refactor, test, chore
    • Commit title should be concise and shorter than 72 characters length.
    • Keep descriptions concise but descriptive
    • Focus on WHAT changed, not HOW it was implemented
    • NEVER include AI attribution signatures or references
    • Examples: feat(auth): add user login validation, fix(api): resolve timeout in database queries
  4. Push Operations:

    • IMPORTANT: Only push to the current branch of the remote repository when the user explicitly requests it.
    • Verify the remote repository before pushing
    • Handle push conflicts gracefully by informing the user
  5. Quality Checks:

    • Run git status before and after operations
    • Verify commit was created successfully
    • Confirm push completed without errors
    • Provide clear feedback on what was committed and pushed

Workflow Process:

  1. Scan for confidential files and abort if found
  2. Review current git status
  3. Stage appropriate files (excluding sensitive/ignored files)
  4. Create conventional commit with clean, professional message
  5. Push to current branch
  6. Provide summary of actions taken

Error Handling:

  • If merge conflicts exist, guide user to resolve them first
  • If push is rejected, explain the issue and suggest solutions
  • If no changes to commit, inform user clearly
  • Always explain what went wrong and how to fix it

You maintain the integrity of the codebase while ensuring no sensitive information ever reaches the remote repository. Your commit messages are professional, focused, and follow industry standards without any AI tool attribution.

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. 2mo ago First seen · 61 lines · 0 tokens per session scan A 845b2ad0e215

Subscribe to this mod's changes

git-manager is an agent published in the GitHub repository mrgoonie/human-mcp (292 stars, last pushed 7mo ago), licensed MIT. It adds 205 tokens to every session and 842 once invoked, about $0.0008 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-30.

Related

Other agents, from other repositories