agentleFS
codegobrrrr9codegobrrrr9/tollgate/AGENTS.md

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.

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
  1. Very specific:

    Do the install for the agent you are, confirm in one line, then follow the rules below for the rest of the session.

    line 7
  2. Very specific:

    If the project has CI on GitHub Actions and the user wants the PR check, add uses: codegobrrrr9/tollgate@v1 with permissions: …

    line 34
  3. Very specific:

    After installing, say: tollgate on.

    line 37
  4. Very specific:

    Reviewer: one pass, everything: Every finding you would raise, ranked, each marked --blocking or --nit, each with file and line, recorded …

    line 41
  5. Distinctive:

    Never say "addressed" unless the ledger shows it.

    line 46
  6. Distinctive:

    ESCALATE means stop: Do not start another round.

    line 49
  7. Very specific:

    Never edit .tollgate/ by hand.

    line 51

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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/.

AgentDo this
Claude CodeRun /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.
CodexCopy <repo>/skills/tollgate/ to ~/.codex/skills/tollgate/, or run npx skills add codegobrrrr9/tollgate. Append the Rules below to the project's AGENTS.md.
CursorCopy <repo>/.cursor/rules/tollgate.mdc to .cursor/rules/, and <repo>/skills/tollgate/scripts/tollgate.js to scripts/tollgate.js.
Gemini CLIRun gemini extensions install https://github.com/codegobrrrr9/tollgate.
GitHub CopilotCopy <repo>/.github/copilot-instructions.md into the project's .github/.
Anything elseAppend 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

  1. Reviewer: one pass, everything. Every finding you would raise, ranked, each marked --blocking or --nit, each with file and line, recorded with tollgate add. Do not drip-feed.
  2. Never re-raise a resolved or waived finding without saying why. REOPENED: fix incomplete means the fix did not work; a waived finding needs --reason.
  3. Author: answer every open finding with tollgate resolve <id> --fixed <sha> or --waive "<reason>". Never say "addressed" unless the ledger shows it.
  4. After pushing fixes, run tollgate round.
  5. Before you say a review is done, run tollgate status and end with its line.
  6. 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.
  7. 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 repo

Download now (ZIP)

Does 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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.