adrkit: Instructions file for Codex

AGENTS.md

adrkit AGENTS.md is an instructions file for Codex, OpenCode from mbeacom/adrkit. It costs 22,724 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,724 This file is loaded in full into every session.
When invoked 22,724 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.22724 $0.22724
Opus 5.5 $0.09090 $0.09090
Sonnet 5.5 $0.04545 $0.04545
Haiku 4.5 $0.02272 $0.02272

Measured 7d ago against content hash 83bf0a57e9f4, 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 7d 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,341 lines

How it starts

The opening of the file, as written. The whole thing — 1,341 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.0 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,341 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. 7d ago Changed · +178 lines · +3,055 tokens per session 83bf0a57e9f4
  2. 8d ago Changed · +350 lines · +6,444 tokens per session 64707ea8cc9d
  3. 9d ago Changed · +251 lines · +4,471 tokens per session f8c0567ddb6e
  4. 14d ago Changed 5ce839a01bb2
  5. 16d ago Changed · +3 tokens per session 71590af17cbb
  6. 17d ago Changed · +30 lines · +511 tokens per session 096498d831b9
  7. 19d ago Changed · +1 lines · +25 tokens per session 23b66f1f26cd
  8. 24d ago Changed · +41 lines · +614 tokens per session c69ea0684cc4
  9. 25d ago Changed · +7 lines · +129 tokens per session be5bb5a8ab88
  10. 26d ago First seen · 483 lines · 7,472 tokens per session scan A c9481087daa9

Subscribe to this mod's changes

adrkit AGENTS.md is an instructions file published in the GitHub repository mbeacom/adrkit (20 stars, last pushed yesterday), licensed Apache-2.0. It adds 22,724 tokens to every session, about $0.0909 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

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,649 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,257 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,159 tokens