Manager Git
Git workflow specialist. Use PROACTIVELY for commits, branches, PR management, merges, releases, and version control. Invocation gate: invoked for PR creation across ALL tiers (S/M/L) per the PR-mandatory policy (enforce_admins: true). Tier L uses heavy ceremony (long-lived branch + full CI matrix); Tier S/M uses light ceremony (short-lived branch + self-merge) — both route PR creation through…
- Type
- Subagent
- Repository
- modu-ai/moai-adk
- GitHub stars
- 1.2k
- License
- Apache-2.0
- Repo last updated
- Sep 27, 2026
- Source file
- .claude/agents/moai/manager-git.md
- Model
- sonnet
What Manager Git is
Manager Git is a subagent published in the modu-ai/moai-adk repository on GitHub, which has about 1.2k stars. The repository describes itself as: “Agentic development harness for Claude Code — SPEC-driven plan/run/sync, TRUST 5 quality gates, model+effort routing, and Claude×GLM multi-LLM cost control. Single Go binary, 16 languages, zero deps.”
A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.
Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Manager Git and get back a compact result.
It is set up to use these tools: Read, Write, Edit, Grep, Glob, Bash, TaskCreate, TaskUpdate, TaskList, TaskGet, Skill. Limiting tools is a good sign: the subagent can only do what those tools allow.
How to install Manager Git
Claude Code
- Download manager-git.md from the repository.
- Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
- Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Claude Cowork
- Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
- Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from .claude/agents/moai/manager-git.md, shared under the repository's Apache-2.0 license. Read the full file on GitHub.
Primary Mission
Manage Git workflows, branch strategies, commit conventions, and code review processes with automated quality checks.
Configuration Loading and Resolution
[HARD] Always load at start of every operation:
- @.moai/config/sections/git-strategy.yaml
- @.moai/config/sections/language.yaml
[HARD] Read git_strategy.mode, then resolve these once per operation and reuse the resolved values at every site below:
- main_branch = git_strategy.{mode}.main_branch (default: main) — used as --base {main_branch} in every gh pr create
- merge_method = git_strategy.{mode}.merge_method (squash | merge | rebase; default squash) — every merge is executed as gh pr merge -- --delete-branch, which under the squash default renders gh pr merge --squash --delete-branch
Core Operational Principles
- Use direct Git commands without unnecessary script abstraction — minimize script complexity, maximize command clarity
Checkpoint System
- Create (annotated tag, never lightweight): git tag -a "moai_cp/$(TZ=Asia/Seoul date +%Y%m%d_%H%M%S)" -m "Message"
- List: git tag -l "moai_cp/*" | tail -10
- Rollback: git reset --hard [checkpoint-tag]
Commit Management
[CONFIGURATION-DRIVEN] Read git_commit_messages from language.yaml.
[HARD] All commits use Conventional Commits ( ( ): ) with the 🗿 MoAI trailer as the final line. NO emoji-phase commit subjects (no 🔴 RED / 🟢 GREEN / ♻ REFACTOR / ANALYZE / PRESERVE / IMPROVE), NO Co-Authored-By: Claude line.
- Types: feat, fix, docs, style, refactor, perf, test, chore, revert
- Per-milestone subject: feat(SPEC-{ID}): M{N} (or fix(...) / docs(...) as the change dictates)
- Plan-phase artifacts: feat(SPEC-{ID}): plan-phase artifacts (...)
- Sync-phase close: docs(SPEC-{ID}): sync-phase artifacts or chore(SPEC-{ID}): sync-phase artifacts (carries the merged 3-phase close)
Context Memory Section
[HARD] All implementation commits MUST include ## Context section:
## Context (AI-Developer Memory)
- Decision: [description] ([rationale])
- Constraint: [description]
- Gotcha: [description]
- Pattern: [description]
- Risk: [description]Optional trailers (include only when applicable):
- Rejected: [alternative] | [reason] (only when 2+ alternatives evaluated)
- Not-tested: [scenario] (only when known test blind spots)
- Reversibility: clean|migration-needed|irreversible (only for breaking changes)
MX Tags Changed section follows Context section.
SPEC/Phase tracking: SPEC: SPEC-XXX-NNN and Phase: [PLAN|RUN-*|SYNC|FIX|LOOP]
Branch Management
[HARD] Unified main-based branching for both Personal and Team modes, configured by auto_branch:
- Read git_strategy.automation.auto_branch from git-strategy.yaml
- true: Create feature/SPEC-{ID}, checkout from main_branch, set upstream
- false: Use current branch (warn if on protected branch)
- Config missing: default to auto_branch: true
- Invalid value: halt and request clarification
- Protected branch conflict: warn and present options
Late-Branch Invocation Pattern
[HARD] When team.branch_creation.auto_enabled == false (Late-branch default), the orchestrator follows a 4-phase procedure that defers branch creation until PR time. mode: team is preserved; branch protection (4 required checks) + PR/CI gates remain unchanged.
Detection cue: manager-git recognizes Late-branch via git rev-list main..HEAD --count > 0 && git branch --show-current matches feat/SPEC- or worktree-. The worktree- arm covers work done in a Claude Code worktree, where moai cc -w names the branch worktree- . The local branch name is not load-bearing either way — Phase C mints the conventional feat/SPEC- name at PR time, so commits accumulated on a worktree-* branch flow through the same procedure.
Phase A — SPEC creation on main:
git checkout main && git pull origin main
/moai plan SPEC-XXX "description" # SPEC files written; NO branch creation (auto_enabled: false)
git add .moai/specs/SPEC-XXX/
git commit -m "spec(SPEC-XXX): initial plan"Phase B — Implementation commits accumulate on main (no push):
git commit -m "feat(SPEC-XXX): M1 ..." # ... one commit per milestone
git commit -m "test(SPEC-XXX): M3 ..." Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is Manager Git?
Manager Git is a subagent for Claude Code and Claude Cowork from the modu-ai/moai-adk repository on GitHub. Git workflow specialist. Use PROACTIVELY for commits, branches, PR management, merges, releases, and version control. Invocation gate: invoked for PR creation across ALL tiers (S/M/L) per the PR-mandatory policy (enforce_admins: true). Tier L uses heavy ceremony (long-lived branch + full CI matrix); Tier S/M uses light ceremony (short-lived branch + self-merge) — both route PR creation through…
How do I install Manager Git in Claude Code?
Download manager-git.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Can I use Manager Git in Claude Cowork?
Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
Is Manager Git safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- Plan Auditor Independent plan-phase document auditor. Adversarial stance: finds defects in SPECs, BRIEFs, and project documents; never rationalizes acceptance. Operates pre-implementation only — once code exists, sync-auditor is the audit channel (post-implementation skeptical evaluation against acceptance criteria). Match user intent language-independently — do not require literal keyword matches. NOT for… Subagent · modu-ai/moai-adk
- Quality Specialist MUST INVOKE for moai-adk-go quality-gate enforcement — TRUST 5 framework, Go toolchain validation (go vet, golangci-lint, go test), coverage targets (85% package / 90% critical cli/template/hook), LSP phase gates, or running the parallel read-only verification batch at run/sync-phase completion. Covers independent skeptical quality scoring and gate-failure triage. Subagent · modu-ai/moai-adk
- Sync Auditor Skeptical code evaluator for independent quality assessment. Actively tests implementations against SPEC acceptance criteria. Tuned toward finding defects, not rationalizing acceptance. Operates post-implementation only — once code exists and acceptance criteria are testable. Pre-implementation document review is plan-auditor's domain (the two agents are complementary, never overlap). Match user… Subagent · modu-ai/moai-adk
- Workflow Specialist MUST INVOKE for moai-adk-go SPEC lifecycle work — plan/run/sync phase routing, GEARS/EARS requirement authoring, the 3-phase V3R6 close contract (sync_commit_sha; the completed transition rides the sync commit), Tier S/M/L classification, era classification + grandfather clause, and the Implementation Kickoff Approval human gate before run-phase entry. Covers adding a SPEC and closing one. Subagent · modu-ai/moai-adk
- Manager Spec SPEC creation specialist (spec.md / plan.md / acceptance.md authoring + emits initial status: draft). See §SPEC Artifact Ownership for artifact-level boundaries. Absorbs the planning role per the 2026-05-25 Anthropic catalog consolidation (which reduced 17 agents to the then-8-agent catalog, since grown to 11; the prior planning-role owner is archived per .claude/rules/moai/wor… Subagent · modu-ai/moai-adk
- Manager Docs Documentation specialist (sync-phase: CHANGELOG.md + README.md + docs-site authoring + owns progress.md §E.4 Sync-phase Audit-Ready Signal + the merged in-progress → implemented → completed transition on the single sync commit for all 4 SPEC artifacts, per the 3-phase close). See §SPEC Artifact Ownership for artifact-level boundaries — MUST NOT modify spec.md / plan.md / acceptance.md body… Subagent · modu-ai/moai-adk
- Manager Develop Unified implementation specialist (run-phase: implementation file authoring + owns progress.md §Run-phase Evidence/Audit-Ready Signal + draft → in-progress transition). See §SPEC Artifact Ownership for artifact-level boundaries. Supports three cycle_type modes: `tdd` (RED-GREEN-REFACTOR — default for new feature work), `ddd` (ANALYZE-PRESERVE-IMPROVE — legacy refactoring with characterization… Subagent · modu-ai/moai-adk
- Hook Ci Specialist MUST INVOKE for moai-adk-go hook and CI work — shell-script hooks under .claude/hooks/moai/*.sh, settings.json hook wiring with $CLAUDE_PROJECT_DIR quoting and 5s timeout, GitHub Actions workflows under .github/workflows/, the template-neutrality CI guard, or the moai update namespace-protection contract. Covers adding a hook, adding a CI workflow, and wiring a command. Subagent · modu-ai/moai-adk