adl: Instructions file for Codex

AGENTS.md

adl AGENTS.md is an instructions file for Codex, OpenCode from inference-gateway/adl. It costs 1,258 tokens per session, scanned A, original, Apache-2.0.

Contributor instructions for ADL, a JSON Schema that defines the Agent Definition Language manifest format. JSON Schema is a machine-readable way to describe and validate the structure of JSON data.

In plain words
What is it for?
Use them to edit the schema, validate ADL manifests, compile the schema with AJV, check formatting, and follow the project’s versioning and contribution rules.
Why use it?
They identify the schema as the project’s main product and provide the exact checks needed to catch invalid or incorrectly formatted changes.

Instructions file for CodexOpenCode

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

This is inference-gateway/adl's own configuration. It tells Codex and OpenCode how to work on adl 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 adl configures →

Reuse

Borrowing it

Nothing to install: this file belongs to inference-gateway/adl. 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/inference-gateway/adl/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/inference-gateway/adl

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/inference-gateway/adl/agents-md"><img src="https://agentmods.dev/badge/instructions/inference-gateway/adl/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,258 This file is loaded in full into every session.
When invoked 1,258 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.01258 $0.01258
Opus 5.5 $0.00503 $0.00503
Sonnet 5.5 $0.00252 $0.00252
Haiku 4.5 $0.00126 $0.00126

Measured 1mo ago against content hash d3b80f957e28, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

adl 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 1mo 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 · 58 lines

How it starts

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

AGENTS.md

This repository is the source of truth for the ADL (Agent Definition Language) JSON Schema. The only shipped artifact is schema/v1/schema.json (JSON Schema Draft-07, apiVersion: adl.inference-gateway.com/v1). There is no application code. The second surface is the docs site under docs/ (VitePress), published to adl.inference-gateway.com/v1. README.md covers ADL concepts and the manifest format, and CONTRIBUTING.md covers setup, versioning, and releases in depth.

Layout

  • schema/v1/schema.json — the canonical schema. Everything else describes it.
  • docs/ — VitePress site (docs/guide/, docs/reference/, docs/examples/). Deployed by the Deploy workflow on any push to main touching docs/** or schema/v1/schema.json.

Commands

Recommended environment: flox activate (provides task, Node.js, Prettier, ajv). Manual setup: Node.js 24.x, then npm install --no-save ajv@8 ajv-cli@5 ajv-formats@3 — there is no package.json on purpose and the install is a one-off local to the working tree. Never commit node_modules/.

  • task compile — AJV-compile the schema (the exact check CI runs)
  • task validate -- path/to/manifest.yaml — validate a manifest against the schema
  • task format / task format:check — Prettier auto-format / check (CI runs npx --yes [email protected] --check .)
  • npx ajv compile --spec=draft7 -c ajv-formats -s schema/v1/schema.json — manual fallback without go-task
  • Docs (inside docs/, which has its own package.json and lockfile): npm ci, then npm run dev / npm run build — the build must succeed before deploy

CI has two checks, both must pass: Compile JSON Schema (AJV) and Check formatting (Prettier, repo-wide including docs/). A .githooks/pre-commit hook runs Prettier on staged files. Activate once per clone with git config core.hooksPath .githooks. If it blocks a commit, fix with npx [email protected] --write <file>.

Schema versioning contract — the most important rule

Read the full file on GitHub · 58 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. 1mo ago Changed · +2 lines · +26 tokens per session d3b80f957e28
  2. 1mo ago Changed · +4 lines · +119 tokens per session c2d394eca527
  3. 1mo ago Changed · +7 lines · +87 tokens per session b48eb89b56d9
  4. 1mo ago Changed · +6 lines · +227 tokens per session 1f598d0bc50c
  5. 2mo ago First seen · 39 lines · 799 tokens per session scan A 574f0d219323

Subscribe to this mod's changes

adl AGENTS.md is an instructions file published in the GitHub repository inference-gateway/adl (33 stars, last pushed 7d ago), licensed Apache-2.0. It adds 1,258 tokens to every session, about $0.0050 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-08-30.

Related

adl AGENTS.md compared with instructions from other repositories

adl AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
adl AGENTS.mdinference-gateway/adlInstructions file337d agoApache-2.0A1,258Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode