auto_gate_git

auto_gate_git is an agent for Claude Code from theafh/ai-modules. It costs 160 tokens per session (1,791 once invoked), scanned A, original, MIT.

A review-gate agent that runs Git review and turns its report into a structured decision about each finding. A review gate is a checkpoint that decides which reported problems qualify for fixing.

In plain words
What is it for?
Use it to produce the findings, locations, labels, and proposed fixes that the automated Git review loop passes to its verifier and fixer.
Why use it?
It separates finding and classifying problems from changing code, while preserving the review's criteria and scope.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Part of the ai_dev plugin — 26 skills, 9 agents, 1 hook shipped together

Good fit Use it to produce the findings, locations, labels, and proposed fixes that the automated Git review loop passes to its verifier and fixer.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/theafh/ai-modules/auto_gate_git
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/theafh/ai-modules

Made for: Claude Code.

Or install ai_dev, the plugin that ships this one along with the rest of its 26 skills, 9 agents, 1 hook.

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 auto_gate_git

README.md
[![agentmods](https://agentmods.dev/badge/agents/theafh/ai-modules/auto_gate_git/github.svg)](https://agentmods.dev/agents/theafh/ai-modules/auto_gate_git)
Your own site
<a href="https://agentmods.dev/agents/theafh/ai-modules/auto_gate_git"><img src="https://agentmods.dev/badge/agents/theafh/ai-modules/auto_gate_git/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 auto_gate_git

Your own site · 80×15
<a href="https://agentmods.dev/agents/theafh/ai-modules/auto_gate_git"><img src="https://agentmods.dev/badge/agents/theafh/ai-modules/auto_gate_git.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 160 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,791 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.00160 $0.01791
Opus 5.5 $0.00064 $0.00716
Sonnet 5.5 $0.00032 $0.00358
Haiku 4.5 $0.00016 $0.00179

Measured today against content hash 0711522c3a04, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

auto_gate_git 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 today.

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/ai_dev/agents/auto_gate_git.md · 76 lines

How it starts

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

Auto Gate Git

  • The resolved git_review skill path.
  • The git_auto_review skill path, so its <lane_classification> block and its <relay> and <convergence> blocks are read in place.
  • The target: the default branch's uncommitted change under the two lane labels <lane_classification> names, plus the local commits ahead of the upstream.
  • The run's relay directory, including ledger.txt, so the reproduction-line exclusion the skill's Scope anchor. states applies to this labelling.
  • The optional task file path that anchors scope, read by the skill's Scope anchor. and Decisions..
  • From round 2 on, the prior round's gate return path as the prior findings set. Round 1 is a first review and receives no prior-return path.

Read the full file on GitHub · 76 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. today First seen · 76 lines · 0 tokens per session scan A 0711522c3a04

Subscribe to this mod's changes

auto_gate_git is an agent published in the GitHub repository theafh/ai-modules (38 stars, last pushed today), licensed MIT. It adds 160 tokens to every session and 1,791 once invoked, about $0.0006 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-10-29.