adrkit: Instructions file for Codex

AGENTS.md

adrkit AGENTS.md is an instructions file for Codex, OpenCode from mbeacom/adrkit. It costs 22,814 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for adrkit, a tool that records important software decisions in machine-readable files and can check them in CI. It also covers its command-line tools, visual decision graph, queue, and agent integrations.

In plain words
What is it for?
Use it when creating, reviewing, explaining, checking, or queuing architecture decision records (written decisions about how a system should work), including decisions enforced by automated checks.
Why use it?
It gives coding agents one shared record of project decisions and rules, reducing inconsistent plans and decisions that are hard to check or remember.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions .claude-plugin; mentions CLAUDE.md; mentions subagents.

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is git worktree add -b <branch> ../copilot-worktrees/adrkit/<name> origin/main.

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/mbeacom/adrkit/agents-md"><img src="https://agentmods.dev/badge/instructions/mbeacom/adrkit/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22,814 This file is loaded in full into every session.
When invoked 22,814 The same file — it is already loaded in full.
Security scan A 2 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.22814 $0.22814
Opus 5.5 $0.09126 $0.09126
Sonnet 5.5 $0.04563 $0.04563
Haiku 4.5 $0.02281 $0.02281

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

Security

Grade A, and why

adrkit AGENTS.md scanned grade A with 2 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

`panel-http.mjs`. That stops naive scripts and other pages only; curl can

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

subprocess wrapper uses `node:child_process` and catches only `ENOENT`.
AGENTS.md · 1,346 lines

How it starts

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

adrkit

Decision memory for human- and agent-authored plans — machine-readable ADRs that are enforceable in CI and legible to agents, without leaving git. Status: early — phases 0–6 landed and v0.20.1 is public. @adrkit/core, @adrkit/evaluator, @adrkit/cli (lint, new, graph, explain, check, queue, accept, approve, object, resolve, migrate --from madr, evaluate) are published on npm, as is the independently versioned @adrkit/spec-kit Spec Kit extension (0.1.5); the repository-backed CI Action is available at mbeacom/adrkit/packages/ci@v0, and the build-only decision-portal Action at mbeacom/adrkit/packages/ci/[email protected] (pin an immutable tag, never @v0). The governing-decisions Action also has a root action.yml alias for GitHub Marketplace beginning with v0.13.0. Root Marketplace guidance uses immutable release tags; never advertise mbeacom/adrkit@v0, because recovery may move that shared tag to a pre-alias release. The queue Action remains nested because GitHub lists only root Action metadata. The published @adrkit/mcp server has exactly four local stdio tools and serves both MCP protocol eras over one stdio connection — 2026-07-28 (stateless; opened by server/discover or a 2026 _meta envelope) and the 2025 era (opened by initialize) — via the SDK v2 serveStdio entry (ADR-0018). It passed real-session dogfood against the published artifact on both eras, driven through the official MCP Inspector. The Inspector defaults to the 2025 era; select the modern one with "protocolEra": "modern" (or "auto") in the server's entry in the Inspector's mcp.json; Inspector 2.8.0 (verified 2026-09-27) also accepts --protocol-era legacy|auto|modern in CLI mode.

Visual adr graph

adr graph preserves agent/script compatibility while giving interactive users a useful view under ADR-0033. Its default is auto: stdout attached to a TTY receives the terminal status/relationship instrument; piped, redirected, and captured stdout still receives deterministic DOT. Explicit --format terminal|dot|json|mermaid always wins. --focus <id> keeps one ADR and its direct neighborhood; repeatable --kind supersedes|relatesTo|conflictsWith filters every format.

Read the full file on GitHub · 1,346 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. 5d ago Changed bfd96a0b73fb
  2. 1mo ago Changed · -8 tokens per session bf1c18c5dce9
  3. 1mo ago Changed · +5 lines · +98 tokens per session bbaaff97c9b4
  4. 1mo ago Changed · +178 lines · +3,055 tokens per session 83bf0a57e9f4
  5. 1mo ago Changed · +350 lines · +6,444 tokens per session 64707ea8cc9d
  6. 1mo ago Changed · +251 lines · +4,471 tokens per session f8c0567ddb6e
  7. 2mo ago Changed 5ce839a01bb2
  8. 2mo ago Changed · +3 tokens per session 71590af17cbb
  9. 2mo ago Changed · +30 lines · +511 tokens per session 096498d831b9
  10. 2mo ago First seen · 532 lines · 8,240 tokens per session scan A 23b66f1f26cd

Subscribe to this mod's changes

adrkit AGENTS.md is an instructions file published in the GitHub repository mbeacom/adrkit (26 stars, last pushed 4d ago), licensed Apache-2.0. It adds 22,814 tokens to every session, about $0.0913 per session on Opus 5.5. A static security scan graded it A with 2 findings (makes network calls, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

adrkit AGENTS.md compared with instructions from other repositories

adrkit AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
adrkit AGENTS.mdmbeacom/adrkitInstructions file264d agoApache-2.0A22,814Codex, OpenCode
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
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,303GitHub Copilot
deno copilot-instructions.mddenoland/denoInstructions file109ktodayMITA3,077GitHub Copilot