git-operator

git-operator is an agent for Claude Code from ggombee/code-forge. It costs 33 tokens per session (1,029 once invoked), scanned A, original, MIT.

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 for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the code-forge plugin — 39 skills, 14 agents, 11 hooks, 2 MCP servers shipped together

Good fit Use it when reviewing changes, staging files, creating commits, switching branches, or checking Git history and repository cleanliness.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/ggombee/code-forge/git-operator
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.

Clone the repo
git clone --depth 1 https://github.com/ggombee/code-forge

Made for: Claude Code.

Or install code-forge, the plugin that ships this one along with the rest of its 39 skills, 14 agents, 11 hooks, 2 MCP servers.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/ggombee/code-forge/git-operator"><img src="https://agentmods.dev/badge/agents/ggombee/code-forge/git-operator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. 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.00033 $0.01029
Opus 5.5 $0.00013 $0.00412
Sonnet 5.5 $0.00007 $0.00206
Haiku 4.5 $0.00003 $0.00103

Measured 1mo ago against content hash 430046dabdc4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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.

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 origin → git 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. 1mo ago 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 (17 stars, last pushed 2d ago), licensed MIT. It adds 33 tokens to every session and 1,029 once invoked, about $0.0001 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