git-manager

An agent that handles Git version-control work by checking changes, looking for confidential files, creating a professional commit, and pushing it to the current branch.

In plain words
What is it for?
Use it to inspect the working tree, detect secrets and files that should be ignored, stage appropriate changes, verify the staged diff, and prepare a conventional commit and push.
Why use it?
Git operations can accidentally include passwords, API keys, build files, or unrelated changes. A review before staging helps prevent those mistakes and keeps commit history consistent.

Agent for Claude Code

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.

agentmods
npx agentmods add agents/mrgoonie/vidcap-mcp-server/git-manager
Clone the repo
git clone --depth 1 https://github.com/mrgoonie/vidcap-mcp-server

Made for: Claude Code.

Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 640 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00031 $0.00640
Opus 5 $0.00015 $0.00320
Sonnet 5 $0.00006 $0.00128
Haiku 4.5 $0.00003 $0.00064

Measured 3d ago against content hash 4d44a3ad1e2e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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 · 60 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
    • 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:

    • Always push to the current branch
    • 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. 3d ago First seen · 60 lines · 31 tokens per session scan A 4d44a3ad1e2e

Subscribe to this mod's changes

git-manager is an agent published in the GitHub repository mrgoonie/vidcap-mcp-server (9 stars, last pushed 3mo ago), licensed MIT. It adds 31 tokens to every session and 640 once invoked, about $0.0002 per session on Opus 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.