git-manager
Commits and pushes changes with conventional commit messages. Does not open PRs or run CI.
| Source | .claude/agents/git-manager.md |
| Owner | git |
| Runtime | claude-code |
| Risk | medium |
| Phase | 5 |
The git-manager stages, commits and, when you ask, pushes. It aims to finish in 2 to 4 tool calls.
It runs on haiku. Tools: Read, Grep, Glob, Bash, TaskCreate, TaskGet, TaskUpdate, TaskList, SendMessage. Per-runtime model pins are on Agent models.
When to use
Use it when you say "commit" or "push", or when a feature or fix is finished. Opening the PR and checking CI belong to shipper.
Workflow
- Assess with
git statusandgit diff --stat. - Stage specific files. It does not run
git add .orgit add -Awithout checkinggit statusfirst. - Check
git diff --cached, then commit with a conventional message (feat,fix,refactor,docs,test,chore,perforstyle). The first line stays under 72 characters. - Push only when you explicitly ask, and pull first.
Before committing it checks that no .env or credential file is staged and that the staged files match the change. Debug statements such as console.log produce a warning, not a stop. If it finds a suspected secret it stops, names the file and asks you to remove it.
Safety rules
It never force-pushes unless asked, never commits to main or master directly, never amends without a request, and puts no AI references in commit messages. A failed push is diagnosed (auth, remote, conflicts) and reported, not retried blindly.
The pre-ship hook runs its ship check (lint on changed files, related tests, type-check) on git commit and git push, whichever agent runs them.
What it does not do
It does not create PRs, run tests or linters, edit source, or judge code quality. In a team it only runs the git operations it was asked for.