abi: Instructions file for Codex

AGENTS.md

abi AGENTS.md is an instructions file for Codex, OpenCode from donaldfilimon/abi. It costs 3,766 tokens per session, scanned A, original, Apache-2.0.

A repository instruction guide for the abi Rust workspace. It explains the project layout, build and test commands, coding conventions, and testing rules.

In plain words
What is it for?
Use it when making changes in abi, running its build or tests, or deciding where code and tests belong. It also documents the project’s shared directories and development commands.
Why use it?
It gives a coding agent the local rules it must follow before editing or testing code. This reduces mistakes such as using the wrong toolchain, breaking contracts, or skipping required checks.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Gemini CLI.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/donaldfilimon/abi/agents-md"><img src="https://agentmods.dev/badge/instructions/donaldfilimon/abi/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,766 This file is loaded in full into every session.
When invoked 3,766 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.03766 $0.03766
Opus 5.5 $0.01506 $0.01506
Sonnet 5.5 $0.00753 $0.00753
Haiku 4.5 $0.00377 $0.00377

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

Security

Grade A, and why

abi 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 15d 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 · 126 lines

How it starts

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

Repository Guidelines

Project Structure & Module Organization

crates/ owns the Rust workspace; crate-local src/ and tests/ hold implementation and integration tests. tests/golden/, contracts/, and proto/ define shared surfaces. tools/ owns gates; docs/ and tasks/ hold contracts and ledgers. The adjacent ../wdbx source is required.

Build, Test, and Development Commands

./tools/check.sh is the full gate. Build with ./tools/cargo.sh build --locked --workspace; focus tests with ./tools/cargo.sh test --locked -p abi-cli --test golden < /dev/null. Use ./mcp/launcher.sh stdio for MCP. Follow the retained gate details below for doc-only checks and safe CLI smokes.

Coding Style & Naming Conventions

Use rustfmt for Rust (four-space indentation), snake_case modules/functions, and PascalCase types. Follow local lint settings and preserve public contracts. Keep documentation paths relative to the project. Do not reformat unrelated code.

Testing Guidelines

Rust uses #[test] unit tests and package integration suites; retain existing independent oracles and golden fixtures. Name tests after observable behavior and cover affected failure paths. Use isolated fixtures rather than live data. Report executed checks and skips; compilation alone does not establish runtime or platform qualification.

Commit & Pull Request Guidelines

Use short imperative subjects; recent history also uses docs:, fix:, and chore: prefixes. Keep commits focused. PRs should describe the behavior and rationale, link relevant issues or plans, and list actual checks and remaining platform gaps. Include screenshots for visual changes. Preserve unrelated edits and existing generated-file rules.

Maintained Project Instructions

Canonical agent instructions. Executable source wins over prose (Cargo.toml, tools/check.sh, crates/). GEMINI.md redirects here; CLAUDE.md is the expanded redirect; .github/copilot-instructions.md is the editor reminder. Deeper rules, crate roles, and the env table: CLAUDE.md. opencode.json loads tasks/lessons.md, tasks/todo.md, and tasks/goals.md alongside this file.

Read the full file on GitHub · 126 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. 15d ago First seen · 126 lines · 3,766 tokens per session scan A 4ac126891a77

Subscribe to this mod's changes

abi AGENTS.md is an instructions file published in the GitHub repository donaldfilimon/abi (18 stars, last pushed 5d ago), licensed Apache-2.0. It adds 3,766 tokens to every session, about $0.0151 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-11-15.

Related

abi AGENTS.md compared with instructions from other repositories

abi AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
abi AGENTS.mddonaldfilimon/abiInstructions file185d agoApache-2.0A3,766Codex, 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 file150kyesterdayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,303GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file289k2d agoMITA4,393Codex, OpenCode