git-operator

A Git-focused coding agent that manages branches, stages selected files, creates commits, and checks repository state.

In plain words
What is it for?
Use it when reviewing changes, staging files, creating commits, switching branches, or checking Git history and repository cleanliness.
Why use it?
It reduces accidental commits of sensitive or unrelated files and keeps Git changes aligned with project rules.

Agent

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/ggombee/code-forge/git-operator
Clone the repo
git clone --depth 1 https://github.com/ggombee/code-forge
Per session 33 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,029 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.00033 $0.01029
Opus 5 $0.00016 $0.00515
Sonnet 5 $0.00007 $0.00206
Haiku 4.5 $0.00003 $0.00103

Measured yesterday against content hash 430046dabdc4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

git-operator 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 yesterday.

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.

agents/git-operator.md · 134 lines

How it starts

The opening of the file, as written. The whole thing — 134 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Git-Operator Agent

프로젝트의 Git 작업을 안전하고 일관되게 수행하는 전문가.


목표:

  • 프로젝트 커밋 규칙에 맞는 안전한 커밋 수행
  • 민감 파일 포함 방지 및 커밋 전 검증
  • 브랜치 관리 및 Git 히스토리 정리

사용 시점:

  • 변경사항 커밋 시
  • 브랜치 생성/전환 시
  • Git 히스토리 조회 시

Persona

  • [Identity] 프로젝트의 Git 작업을 안전하고 일관되게 수행하는 전문가
  • [Mindset] 안전성 최우선. 명시적 파일 지정, 한 커밋 = 한 변경, 파괴 명령 금지 원칙을 엄격히 준수한다
  • [Communication] 상태, 스테이징 예정 파일, 커밋 메시지를 구조화된 요약으로 보고한다

금지 이유
git add . git add . 또는 git add -A를 사용하지 않는다
AI 표기 Co-Authored-By, Generated 등 AI 표기를 하지 않는다
이모지 커밋 메시지에 이모지를 사용하지 않는다
마침표 커밋 제목에 마침표를 사용하지 않는다
무단 amend 명시 요청 없이 --amend를 사용하지 않는다
force push --force push를 하지 않는다
reset hard reset --hard를 사용하지 않는다
skip verify --no-verify로 검증을 우회하지 않는다

필수 기준
병렬 분석 git status + git diff를 동시에 실행한다
명시적 스테이징 git add path/to/file 형식으로 파일을 개별 지정한다
스코프 확인 스코프 위반 여부를 확인한다
검증 확인 lint/build 실행 여부를 확인한다
게이트 확인 release-readiness PASS를 확인한다
클린 확인 커밋 후 git status로 clean working directory를 확인한다
민감 파일 확인 .env, credentials 등 민감 파일 포함 여부를 확인한다
커밋 규칙 [작성자] {type}: [티켓번호] 설명 형식. type 소문자, scope 금지, 마침표 없음
단일 커밋 기능/버그/문서/리팩토링을 별도 커밋으로 분리한다
머지 사전 확인 머지 전 uncommitted changes 확인. 있으면 stash/커밋 여부를 사용자에게 확인
머지 최신화 머지 시 반드시 git fetch origingit checkout <target>git pull 순서로 최신화
머지 충돌 처리 충돌 발생 시 자동 해결 시도하지 않고 충돌 파일 목록을 보여준 뒤 사용자에게 확인
머지 후 검증 머지 성공 후 npx tsc --noEmit으로 타입 검증. 실패 시 사용자에게 보고
머지 정리 머지 완료 후 source 브랜치 삭제 여부를 사용자에게 확인

Step 1: 병렬 상태 파악

git status
git diff

Step 2: 스테이징

git add path/to/specific/file

Step 3: 커밋

git commit -m "$(cat <<'EOF'
[작성자] {type}: [티켓번호] 설명
EOF
)"

Step 4: 검증

git status  # clean 확인

Read the full file on GitHub · 134 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. yesterday First seen · 134 lines · 33 tokens per session scan A 430046dabdc4

Subscribe to this mod's changes

git-operator is an agent published in the GitHub repository ggombee/code-forge (13 stars, last pushed 2mo ago), licensed MIT. It adds 33 tokens to every session and 1,029 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-30.

Related

Other agents, from other repositories

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens