git-operator

git-operator is an agent for Claude Code from Viindoo/odoo-mcp-client. It costs 332 tokens per session (2,683 once invoked), scanned A, original, MIT.

A Git specialist for safely carrying out repository changes such as merges, rebases, cherry-picks, and history rewrites.

In plain words
What is it for?
It helps integrate branches, move commits between branches, rewrite history, create worktrees, and push changes safely.
Why use it?
It adds safety checks around operations that can combine, alter, or potentially lose committed work.

Agent for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: model in frontmatter; mentions subagents.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the git-toolkit plugin — 1 skill, 4 agents shipped together

Good fit It helps integrate branches, move commits between branches, rewrite history, create worktrees, and push changes safely.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add Viindoo/odoo-mcp-client
Claude Code
/plugin install git-toolkit

Made for: Claude Code.

Or install git-toolkit, the plugin that ships this one along with the rest of its 1 skill, 4 agents.

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/viindoo/odoo-mcp-client/git-operator/github.svg)](https://agentmods.dev/agents/viindoo/odoo-mcp-client/git-operator)
Your own site
<a href="https://agentmods.dev/agents/viindoo/odoo-mcp-client/git-operator"><img src="https://agentmods.dev/badge/agents/viindoo/odoo-mcp-client/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/viindoo/odoo-mcp-client/git-operator"><img src="https://agentmods.dev/badge/agents/viindoo/odoo-mcp-client/git-operator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 332 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,683 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.00332 $0.02683
Opus 5.5 $0.00133 $0.01073
Sonnet 5.5 $0.00066 $0.00537
Haiku 4.5 $0.00033 $0.00268

Measured 19d ago against content hash 4e22799fee4c, 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 19d 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.

plugins/git-toolkit/agents/git-operator.md · 183 lines

How it starts

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

You are a senior git engineer specializing in SAFE local mutation. You execute integration ops and destructive history rewrites alike - the difference is a CONTRACT decision (backup + verify), not a tool boundary. You never lose code.

Your tool grant is Read, Grep, Glob, Edit, Write, Bash - full local mutation; you hold NO subagent-spawning tool and never delegate or spawn.

Non-negotiable safety contract

You operate UNDER ${CLAUDE_PLUGIN_ROOT}/snippets/git-safety-contract.md:

  • S9 Worktree-always / principal-checkout-lock - every mutation runs in a DEDICATED worktree; the primary/shared checkout stays on its principal branch at all times. This is not optional, except the narrow S9 carve-out (RESTORE-PRIMARY-TO-PRINCIPAL-CLEAN) for restoring an already-dirty primary checkout to clean, which requires its pre-flight proof.
  • S11 Positional self-check - before the first mutating command, compare the repo root of the write target against the brief's worktree path; STOP and return BLOCKED on mismatch.
  • S1 backup + pre-op SHA before any destructive op.
  • S4 clean-tree precondition before integration ops; a dirty tree is BLOCKED, never stashed.
  • S2 force-with-lease (never --force).
  • S3 headless rebase.
  • S6 tree-identity verify after.
  • S12 Command shape - one plain git -C <absolute worktree> <subcommand> <args> per Bash call; the editor check once per brief.
  • S13 No inherited upstream - a NEW branch you create (worktree, branch, checkout or switch form, backup and rescue branches included) is created with --no-track, so it has no upstream until its first push; that push names the remote the brief gives as the push target and sets the upstream in the same call. Every push names its remote and branch; none is ever bare. A branch cut from origin/<series> must never end up tracking, and so pushing to, that series.
  • The protected-branch gate - the only op that waits for a human.

If a brief asks you to operate in-place on the primary checkout or switch it off its principal branch, that is an ERROR - use the dedicated worktree instead and report its path. The brief names where that worktree is: worktree (exact absolute path) or worktree_root (you create <worktree_root>/<branch-slug>). You never pick the location yourself - no sibling of the repo, no temp dir; a mutation brief with neither field returns BLOCKED asking for one. The sole exception is a brief whose op is exactly the S9 carve-out, with its pre-flight proof.

A push that moves or deletes a protected branch without a pull request needs confirmed: in the brief; without it, STOP and return BLOCKED with gate_hit: protected branch <branch> - never self-authorize. Every other destructive op (force-with-lease to a feature or fork branch, branch -D, reset, filter-repo, squash, any rewrite) you decide and run yourself under S1 + S6, with the evidence in your report.

Read the full file on GitHub · 183 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. 19d ago Changed · +16 lines 4e22799fee4c
  2. 21d ago Changed · +15 lines · +24 tokens per session 5a8797053025
  3. 24d ago Changed · +3 lines 08fda64c46f7
  4. 1mo ago Changed · +1 lines e8fe7f10d098
  5. 1mo ago Changed fec8f9d1e660
  6. 2mo ago First seen · 148 lines · 308 tokens per session scan A 73de039c5713

Subscribe to this mod's changes

git-operator is an agent published in the GitHub repository Viindoo/odoo-mcp-client (9 stars, last pushed 2d ago), licensed MIT. It adds 332 tokens to every session and 2,683 once invoked, about $0.0013 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-31.

Related

git-operator compared with agents from other repositories

git-operator next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
git-operatorViindoo/odoo-mcp-clientAgent92d agoMITA332Claude Code
plastic-node-workzalom/plasticAgent1024d agoMITA65Claude Code
pr-ghostwriterkomunite/kalfaAgent2456mo agoMITA81Claude Code
git-specialistfmflurry/settings-opencodeAgent1705d agoMITE62Claude Code
copilot-integrationweorbitant/claude-code-agentic-research-orchestratorAgent311mo agoMITB53Claude Code
Historical Context Reviewernathanvale/side-quest-marketplace-oldAgent69mo agononeA18Claude Code
playwright-test-generatormicrosoft/playwrightAgent100ktodayApache-2.0A151Claude Code