gate

gate is an agent for Claude Code from markskrypka/stem. It costs 39 tokens per session (303 once invoked), scanned A, original, Apache-2.0.

An independent final check for completed work against the original request. It inspects changes, runs tests, and reports problems without editing files.

In plain words
What is it for?
Use it to review a code change, run relevant tests, and produce a severity-ordered list of concrete findings.
Why use it?
It catches missing requirements and real breakages before work is declared finished. Its independence helps prevent the checker from approving its own changes.

Agent for Claude Code

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

Part of the stem plugin — 1 skill, 2 agents, 1 hook shipped together

Good fit Use it to review a code change, run relevant tests, and produce a severity-ordered list of concrete findings.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/markskrypka/stem/gate
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/markskrypka/stem

Made for: Claude Code.

Or install stem, the plugin that ships this one along with the rest of its 1 skill, 2 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 gate

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/markskrypka/stem/gate"><img src="https://agentmods.dev/badge/agents/markskrypka/stem/gate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 303 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.00039 $0.00303
Opus 5.5 $0.00016 $0.00121
Sonnet 5.5 $0.00008 $0.00061
Haiku 4.5 $0.00004 $0.00030

Measured 1mo ago against content hash 1be4bca33ae0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

gate 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/gate.md · 31 lines

What it actually says

You are the gate: the independent check that finished work passes through — or does not. The brief gives you what was asked and what was built; your job is the distance between the two.

Rules of the trade:

  • Enumerate what was asked, item by item. Check each against what actually exists: read the diff, run the tests, run the thing itself where practical.
  • Report each finding with a severity and a concrete failure scenario: blocker (violates what was agreed or breaks something real), material (plausible user-visible or reliability impact), minor (low impact, never blocks), speculative (no concrete failure path — one line maximum).
  • No style opinions unless the brief asks for them. No praise padding.
  • Shell commands run tests and inspections only. You never modify files — a gate that edits the work is not independent.

Your reply is consumed by the caller: verdict first in one line (what passes, what does not), then findings ordered by severity, each with file and line where applicable. Dense, no preamble, under roughly sixty 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 · 31 lines · 39 tokens per session scan A 1be4bca33ae0

Subscribe to this mod's changes

gate is an agent published in the GitHub repository markskrypka/stem (3 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 39 tokens to every session and 303 once invoked, about $0.0002 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

Other agents, from other repositories

consistency-qa

The brooks-lint verification gate. Runs npm run validate, npm test, and npm run evals, then cross-checks the documents the validator can't fully diff — the four plugin manifests, all six README badges, the docs landing-page JSON-LD, CHANGELOG, AGENTS.md, GEMINI.md, and the derived book count — for drift. Reports…

hyhmrright/brooks-lint · 123 tokens

ai-hygiene-auditor

Audit codebases for AI-generation warning signs: vibe coding patterns, agent psychosis indicators, slop artifacts, and Tab-completion bloat. Specialized complement to bloat-auditor.

athola/claude-night-market · 48 tokens

edge-case-explorer

Systematically discovers and catalogs edge cases that should be covered by tests for a given piece of code. Traces input sources, call chains, and integration boundaries to find boundary values, type coercion traps, external input messiness, state-dependent failures, and error propagation gaps. Use when exploring how…

testdouble/han · 135 tokens

performance-engineer

Performance specialist. Owns SLO/SLA budget design, load test execution (k6/Locust/Gatling), latency regression analysis, flame graph interpretation, and capacity planning. Runs after senior-dev, before QA. Writes docs/performance/PERF-{slug}.md. Activated when performance-sla is set in PROJECT.md, or archetype is…

avelikiy/great_cto · 83 tokens

codebase-explorer

Explores a codebase to discover implementation details for a specific feature or system. Finds entry points, core logic, data models, configuration, tests, and feature-type-specific artifacts. Use when thorough, multi-angle codebase discovery is needed for documentation or understanding. Does not research options or…

testdouble/han · 75 tokens

verifier

Use this agent when verifying that implementation meets success criteria, validating phase completion, checking plan coverage before execution, or performing pre-ship validation. Examples: Context: A phase has been fully built and reviewed, and needs final verification before moving on. user: "Verify that the database…

lgbarn/shipyard · 278 tokens