Borrowing it
Nothing to install: this file belongs to Jott2121/agent-gate. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/Jott2121/agent-gate/main/AGENTS.mdgit clone --depth 1 https://github.com/Jott2121/agent-gateWrote 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.
[](https://agentmods.dev/instructions/jott2121/agent-gate/agents-md)<a href="https://agentmods.dev/instructions/jott2121/agent-gate/agents-md"><img src="https://agentmods.dev/badge/instructions/jott2121/agent-gate/agents-md/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.
<a href="https://agentmods.dev/instructions/jott2121/agent-gate/agents-md"><img src="https://agentmods.dev/badge/instructions/jott2121/agent-gate/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.02093 | $0.02093 |
| Opus 5.5 | $0.00837 | $0.00837 |
| Sonnet 5.5 | $0.00419 | $0.00419 |
| Haiku 4.5 | $0.00209 | $0.00209 |
Grade A, and why
agent-gate AGENTS.md scanned grade A with 1 finding 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 4d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- **The shell guard blocks `git pull --rebase`.** The hook matcher includes `git pull` and `rebase`, so a rebasing pull reaches `.cursor/hooks/guard-shell.sh` and is denied. A plain `git pull` is allowed. The script deni How it starts
The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md — agent-gate
Portable agent instructions. Read by Cursor (local + cloud agents), Claude Code, Codex, and Grok Bot cloud-agent runs. Keep this file under ~150 lines. Procedures live in
.cursor/skills/. Scoped rules live in.cursor/rules/*.mdc. Review rules live in.cursor/BUGBOT.md. There is no CLAUDE.md. This file is the source of truth.
What this repo is
agent-gate (PyPI: mcp-agent-gate) is an MCP server an agent calls on its own work before it claims done: a fail-closed checklist, then an append-only sha256 receipt ledger. The core is stdlib; agent_gate/server.py is the thin MCP adapter. The bar this repo holds itself to is the CI coverage gate: pytest fails if line coverage of agent_gate drops below 90%. Reproduce with the test command below. README also says the tree is "currently 97% covered"; that sentence is a published number — see Known traps before treating it as a live measurement.
- Status: active · License: MIT · Package:
mcp-agent-gate - Entry points: console script
agent-gate=agent_gate.server:main(verified in pyproject.toml). Alsopython -m agent_gate.server. - Part of: the governed-agent stack (rag-guard · graph-guard · agent-gate · crucible · oracle-gate · agent-cost-attribution · bow · fleet-mode)
Commands (run these; do not guess)
pip install -e ".[dev]" pytest-cov
# lint: n/a — no ruff or mypy config
# typecheck: n/a
python -m pytest -q --cov=agent_gate --cov-report=term-missing --cov-fail-under=90
python scripts/check_receipts.py
# eval: n/a — there is no eval harness and no --check scorer
PYTHONPATH=. python3 examples/demo.py # manual; sleeps; hashes include timestamps
A task is not done until the pytest command passes and the output is pasted in the PR. scripts/check_receipts.py recomputes the fail-closed examples quoted in the README and checks the 90% floor is still the floor.
Non-negotiables
- No employer data. Ever. This is personal work on personal equipment. Never add, paste, paraphrase, or "anonymize" anything from an employer's systems, documents, tickets, chats, or datasets: no workforce data, internal URLs, or confidential or export-restricted material. No employer names in any file, no internal acronyms, no realistic HR records. Synthetic data only, generated by a committed script with a fixed seed. If a prompt looks like it came from work, stop and ask.
scripts/scan_blocked_terms.pyenforces this in CI with no exempt files. - Receipts over hype. Every number in README, docs, PR descriptions, or posts must be reproducible from a committed command. Link the command and the artifact (CI log or
scripts/check_receipts.py). No "blazing fast", "SOTA", or "production-grade" without a measurement. - Honest benchmarks. Report nulls and regressions at the same prominence as wins. State n, seeds, model + version, date, and cost when a comparison exists. This repo does not run model comparisons. Never delete an inconvenient run; mark it superseded with a reason.
- Fail closed. Gates, validators, and guards deny on error, timeout, missing input, or unparseable output.
Gate.evaluatepasses a check only on literalTrue. Never weaken a guard to make a test pass. Never catch-and-ignore exceptions in a decision path. - Tests and CI are the definition of done. New behavior ships with a test that fails without it. Bug fixes ship with a regression test. Do not lower
--cov-fail-under=90. Do not mark testsskip/xfailto get green.tests/test_server.pyskips only when themcpSDK is missing; CI installs it. - Model never grades its own output. Prefer mechanical verdicts (tests, schema checks,
verify_chain()). Where a judge model is needed, use a different model lineage from the author and record both. - Irreversible = human-gated. No force-push, no history rewrite, no publishing to PyPI, no tagging releases, no posting anywhere. Open a PR; a human merges.
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.
- 4d ago First seen · 81 lines · 2,093 tokens per session scan A a822a9e5a691
agent-gate AGENTS.md is an instructions file published in the GitHub repository Jott2121/agent-gate (3 stars, last pushed yesterday), licensed MIT. It adds 2,093 tokens to every session, about $0.0084 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-12.
Other instructions, from other repositories
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
deepseek-harness AGENTS.md
AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.
vscode copilot-instructions.md
Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).