gatekeeper: Instructions file for Codex

AGENTS.md

gatekeeper AGENTS.md is an instructions file for Codex, OpenCode from Gldywn/gatekeeper. It costs 2,267 tokens per session, scanned A, original, MIT.

Repository instructions for Gatekeeper, a system where an AI proposes SQL and a person approves and runs it in Beekeeper Studio, a database desktop application.

In plain words
What is it for?
Use them when changing the Gatekeeper server, approval interface, shared types, or agent skill, and before running the project’s type and test checks.
Why use it?
They give coding agents the project structure, security guidance, required tools, and checks needed before returning changes.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Claude Code; mentions AGENTS.md; mentions Codex.

This is Gldywn/gatekeeper's own configuration. It tells Codex and OpenCode how to work on gatekeeper itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything gatekeeper configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Gldywn/gatekeeper. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Gldywn/gatekeeper/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/Gldywn/gatekeeper

Made for: Codex, OpenCode.

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 gatekeeper AGENTS.md

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

agentmods 80×15 button for gatekeeper AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/gldywn/gatekeeper/agents-md"><img src="https://agentmods.dev/badge/instructions/gldywn/gatekeeper/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,267 This file is loaded in full into every session.
When invoked 2,267 The same file — it is already loaded in full.
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.02267 $0.02267
Opus 5.5 $0.00907 $0.00907
Sonnet 5.5 $0.00453 $0.00453
Haiku 4.5 $0.00227 $0.00227

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

Security

Grade A, and why

gatekeeper AGENTS.md 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.

AGENTS.md · 160 lines

How it starts

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

AGENTS.md

How any coding agent works in this repository. Build steps, commands and the repo layout are in docs/DEVELOPMENT.md. This file only adds what an agent must know on top of it.

What this is

Gatekeeper lets an AI agent propose SQL that a human approves and runs in Beekeeper Studio. packages/server is the MCP server plus a loopback broker (published to npm). packages/plugin is the Beekeeper Studio plugin: the approval UI and the only component that executes SQL. packages/shared holds the wire types and the design tokens. skills/gatekeeper is the agent skill. landing/ is the marketing site, not the product.

Read before changing:

  • data flow or behaviour: docs/ARCHITECTURE.md
  • risk classification, pairing, access modes, data handling: SECURITY.md
  • any plugin UI: packages/plugin/DESIGN.md. Reuse its tokens and existing components before adding a new treatment.

Toolchain

pnpm only (the version in packageManager), Node >= 22. Never npm, yarn or bun. Dependencies are exact-pinned and quarantined for 7 days (.npmrc, pnpm-workspace.yaml). Ask before adding or bumping one.

Checks before handing work back

pnpm typecheck
pnpm test        # Vitest, no database needed
pnpm lint        # Biome

One package at a time: pnpm --filter @gatekeeper/plugin test or pnpm --filter @gldywn/gatekeeper-mcp-server test (the server keeps its npm name, so @gatekeeper/server matches nothing and exits 0 without running a test).

Proposing a plugin UI change

A new element, style or presentation starts with how strong products present the same information. Then propose several directions in a mock-up built on the plugin's real stylesheet, each in its real states (wide and narrow, empty and full), next to the current design rebuilt from the same data, with a recommendation. The operator picks. Agree the implementation plan with an agent of another model family before writing code, not only at the final cross-read, and record the rules the operator sets in packages/plugin/DESIGN.md.

Read the full file on GitHub · 160 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 Changed · +6 lines · +124 tokens per session 5ee22ad36a73
  2. 21d ago Changed · +3 lines · +84 tokens per session 45ecc3de2f6f
  3. 1mo ago Changed · +5 tokens per session fd429e9d5415
  4. 1mo ago Changed · +25 lines · +383 tokens per session 582fc1f6953a
  5. 1mo ago Changed · +14 lines · +205 tokens per session 487fbec8f50d
  6. 1mo ago Changed · +31 lines · +518 tokens per session b9f62e772767
  7. 1mo ago Changed · +4 lines · +72 tokens per session a94c9213a943
  8. 1mo ago Changed · +2 lines · +41 tokens per session 79f55563e09e
  9. 2mo ago First seen · 75 lines · 835 tokens per session scan A 72b099a18d5e

Subscribe to this mod's changes

gatekeeper AGENTS.md is an instructions file published in the GitHub repository Gldywn/gatekeeper (6 stars, last pushed today), licensed MIT. It adds 2,267 tokens to every session, about $0.0091 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-09-24.

Related

gatekeeper AGENTS.md compared with instructions from other repositories

gatekeeper AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gatekeeper AGENTS.mdGldywn/gatekeeperInstructions file6todayMITA2,267Codex, OpenCode
plan-forge caching.instructions.mdsrnichols/plan-forgeInstructions file626d agoMITA733GitHub Copilot
plan-forge naming.instructions.mdsrnichols/plan-forgeInstructions file626d agoMITA1,453GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,680Codex, OpenCode