gate22 AGENTS.md

gate22 AGENTS.md is an instructions file for Codex, OpenCode from aipotheosis-labs/gate22. It costs 417 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for the Gate22 project, an open-source gateway and control system for governing AI tools. They describe its Python backend, Next.js frontend, folder structure, build process, and coding conventions.

In plain words
What is it for?
They help agents navigate Gate22, work on its backend and frontend, understand its MCP services, and follow its testing and code-quality guidance.
Why use it?
They give coding agents the project context needed to make changes that fit the repository and follow its existing practices.

Instructions file for CodexOpenCode

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.

agentmods
npx agentmods add instructions/aipotheosis-labs/gate22/agents-md
Clone the repo
git clone --depth 1 https://github.com/aipotheosis-labs/gate22

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/aipotheosis-labs/gate22/agents-md.svg)](https://agentmods.dev/instructions/aipotheosis-labs/gate22/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/aipotheosis-labs/gate22/agents-md"><img src="https://agentmods.dev/badge/instructions/aipotheosis-labs/gate22/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 417 This file is loaded in full into every session.
When invoked 417 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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.00417 $0.00417
Opus 5 $0.00209 $0.00209
Sonnet 5 $0.00083 $0.00083
Haiku 4.5 $0.00042 $0.00042

Measured 5d ago against content hash f3ffe5896103, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

gate22 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 5d 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.md · 41 lines

What it actually says

AGENTS.md

This document provides coding agents with detailed context about the Gate22 repository structure, build processes, testing procedures, and conventions.

Project Overview

Gate22 is an open-source MCP (Model Context Protocol) Gateway and Control Plane for AI governance.

  • Backend: Python/FastAPI-based service that powers the control plane, MCP hosting, and Virtual MCP servers
  • Frontend: Next.js 15 TypeScript application for the management portal

Repository Structure

gate22/
├── backend/          # Python backend services
│   ├── aci/         # Main application package
│   │   ├── alembic/        # Database migrations
│   │   ├── cli/            # Internal Admin CLI commands
│   │   ├── common/         # Shared utilities
│   │   ├── control_plane/  # FastAPI service for the control plane
│   │   ├── mcp/            # FastAPI service for the MCP servers (bundle)
│   │   └── virtual_mcp/    # FastAPI service for the Virtual MCP servers
│   ├── mcp_servers/         # MCP server definitions
│   ├── virtual_mcp_servers/ # Virtual MCP server definitions
│   ├── pyproject.toml       # Python dependencies
│   └── compose.yml          # Docker Compose configuration
├── frontend/        # Next.js frontend application
│   ├── src/
│   │   ├── app/            # Next.js App Router pages
│   │   ├── features/       # Feature-based modules
│   │   ├── components/     # Shared UI components
│   │   └── lib/            # Utilities and shared logic
│   └── package.json        # Node.js dependencies
└── .pre-commit-config.yaml # Pre-commit hooks configuration

Backend

Code Style & Quality

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. 5d ago First seen · 41 lines · 417 tokens per session scan A f3ffe5896103

Subscribe to this mod's changes

gate22 AGENTS.md is an instructions file published in the GitHub repository aipotheosis-labs/gate22 (178 stars, last pushed 8mo ago), licensed Apache-2.0. It adds 417 tokens to every session, about $0.0021 per session on Opus 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-30.