tollgate
AGENTS.md1 starsChanged 41 days agoMITView on GitHub
You are reading this because a user pasted something like: Install the tollgate skill from https://github.com/codegobrrrr9/tollgate, refer to the repo's AGENTS.md. Do the install for the agent you are, confirm in one line, then follow the rules below for the rest of the session. Do not explain what tollgate is unless asked. <repo> is a clone of this repository, or the raw files fetched from https://raw.githubusercontent.com/codegobrrrr9/tollgate/main/. Hooks block for a non-plugin Claude Code install (~/.claude/settings.json), with <repo> the cloned repo:
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,337 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository3 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/tollgate.mdcCursor rule
- tollgateSkill
The file
We split this AGENTS.md into the rules it gives an agent
7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 7
Do the install for the agent you are, confirm in one line, then follow the rules below for the rest of the session.
- Very specific: line 34
If the project has CI on GitHub Actions and the user wants the PR check, add uses: codegobrrrr9/tollgate@v1 with permissions: …
- Very specific: line 37
After installing, say: tollgate on.
- Very specific: line 41
Reviewer: one pass, everything: Every finding you would raise, ranked, each marked --blocking or --nit, each with file and line, recorded …
- Distinctive: line 46
Never say "addressed" unless the ledger shows it.
- Distinctive: line 49
ESCALATE means stop: Do not start another round.
- Very specific: line 51
Never edit .tollgate/ by hand.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
tollgate — instructions for coding agents
You are reading this because a user pasted something like:
Install the tollgate skill from https://github.com/codegobrrrr9/tollgate, refer to the repo's AGENTS.md.
Do the install for the agent you are, confirm in one line, then follow the rules below for the rest of the session. Do not explain what tollgate is unless asked.
Install
<repo> is a clone of this repository, or the raw files fetched from
https://raw.githubusercontent.com/codegobrrrr9/tollgate/main/.
| Agent | Do this |
| Claude Code | Run /plugin marketplace add codegobrrrr9/tollgate then /plugin install tollgate@tollgate. The plugin ships a Stop hook: while the branch ledger has open blocking findings the agent is told to resolve or waive them, and past the round cap it must say it escalated. If plugins are unavailable, copy <repo>/skills/tollgate/ to ~/.claude/skills/tollgate/ and add the hooks block below to ~/.claude/settings.json. |
| Codex | Copy <repo>/skills/tollgate/ to ~/.codex/skills/tollgate/, or run npx skills add codegobrrrr9/tollgate. Append the Rules below to the project's AGENTS.md. |
| Cursor | Copy <repo>/.cursor/rules/tollgate.mdc to .cursor/rules/, and <repo>/skills/tollgate/scripts/tollgate.js to scripts/tollgate.js. |
| Gemini CLI | Run gemini extensions install https://github.com/codegobrrrr9/tollgate. |
| GitHub Copilot | Copy <repo>/.github/copilot-instructions.md into the project's .github/. |
| Anything else | Append the Rules below to the agent's instruction file and keep tollgate.js in the project. |
Hooks block for a non-plugin Claude Code install (~/.claude/settings.json), with <repo> the cloned repo:
{
"hooks": {
"Stop": [{ "hooks": [{ "type": "command", "command": "node \"<repo>/hooks/stop.js\"", "timeout": 15 }] }]
}
}If the project has CI on GitHub Actions and the user wants the PR check, add uses: codegobrrrr9/tollgate@v1
with permissions: pull-requests: read (see the README). Ask before editing a workflow.
After installing, say: tollgate on. I will record review findings, answer each with a sha or a reason, and stop at the round cap.
Rules
- Reviewer: one pass, everything. Every finding you would raise, ranked, each marked
--blockingor--nit, each with file and line, recorded withtollgate add. Do not drip-feed. - Never re-raise a resolved or waived finding without saying why.
REOPENED: fix incompletemeans the fix did not work; a waived finding needs--reason. - Author: answer every open finding with
tollgate resolve <id> --fixed <sha>or--waive "<reason>". Never say "addressed" unless the ledger shows it. - After pushing fixes, run
tollgate round. - Before you say a review is done, run
tollgate statusand end with its line. - ESCALATE means stop. Do not start another round. Say you escalated, give the number of blocking findings still open, and list them. A human decides.
- Never edit
.tollgate/by hand.
Commands
tollgate.js add --file f --line n --text "..." [--code "<line>"] [--nit|--blocking] [--reason "..."]
tollgate.js resolve <id> --fixed <sha> | --waive "<reason>"
tollgate.js round | status | gate gate: exit 0 PASS, 1 BLOCK, 3 ESCALATE
tollgate.js pr <n|url> [--repo o/r] [--dir .] analyse a GitHub PR
tollgate.js scan --repo o/r [--days 180] the same over a repoDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

