minimal: Instructions file for Codex

AGENTS.md

minimal AGENTS.md is an instructions file for Codex, OpenCode from gominimal/minimal. It costs 4,978 tokens per session, scanned C, original, Apache-2.0.

Orientation instructions for contributors and coding agents working in the Minimal repository. They explain the project's build and session systems, key binaries, documentation, and platform dependencies.

In plain words
What is it for?
Use it when starting work on Minimal, locating architecture and command-line references, understanding its build or session planes, or checking platform and system requirements.
Why use it?
Large repositories are difficult to enter without knowing how their parts fit together. This guide provides the map needed to find the right documentation and understand which command or service handles a task.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/gominimal/minimal/agents-md"><img src="https://agentmods.dev/badge/instructions/gominimal/minimal/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,978 This file is loaded in full into every session.
When invoked 4,978 The same file — it is already loaded in full.
Security scan C 1 finding. 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.04978 $0.04978
Opus 5.5 $0.01991 $0.01991
Sonnet 5.5 $0.00996 $0.00996
Haiku 4.5 $0.00498 $0.00498

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

Security

Grade C, and why

minimal AGENTS.md scanned grade C with 1 finding 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 yesterday.

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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

`rm -rf .scratch` wholesale).
AGENTS.md · 347 lines

How it starts

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

AGENTS.md

Orientation for coding agents and contributors working in this repository. Tool-neutral and canonical: tool-specific instruction files (e.g. CLAUDE.md) include or link this document rather than restating it.

Orientation

Minimal is a declarative, content-addressed package/build system plus a session plane for sandboxed development environments. The system is two cooperating planes: the build plane (declarative packages → dependency graph → sandboxed builds → content-addressed cache) and the session plane (long-lived isolated dev environments, natively on Linux or inside a libkrun microVM). Start with docs/architecture.md.

The workspace builds min, mip, minimald, and minvmd:

Binary Role Reference
min Session CLI (built from the minimal crate; its [[bin]] target is min) docs/reference/cli-min.md
mip Package/build CLI docs/reference/cli-mip.md
minimald Session daemon: SSH server hosting sessions and task/sandbox executions docs/reference/cli-minimald.md
minvmd MicroVM host daemon: boots Linux guests via libkrun, bridges host UDS to in-VM vsock docs/reference/cli-minvmd.md

The CLI reference overview is docs/reference/cli.md.

Workspace crates

Run just crates to print the workspace's crates with their descriptions. Use it when you need to know which crate is responsible for something, or where a change belongs.

docs/architecture.md §0 splits the crates into core crates and the product surface, and §3 adds which plane each crate belongs to (build, session, shared).

When you change a crate's scope, update its Cargo.toml description too, so this information stays current.

Naming: box, Box Type, sandbox

Use these terms in code, comments, docs and commit messages. The BOX spec (docs/specs/29-spec-box-local-first) plans the box model they describe. That spec defines the Box Types and the spec settings. Today the tree has BoxId and BoxRecord, and minimald still branches on session or task. The rest of this section is the target for new code.

Read the full file on GitHub · 347 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. yesterday Changed · +2 lines · +28 tokens per session da6407ffd08e
  2. 6d ago Changed · +72 lines · +930 tokens per session 2a5c762d970d
  3. 11d ago Changed ef257271a08e
  4. 13d ago Changed · +42 lines · +568 tokens per session c07491db7855
  5. 24d ago Changed · +7 lines · +61 tokens per session be60321f7808
  6. 28d ago Changed · +4 lines · +79 tokens per session 14b1679519c1
  7. 1mo ago Changed · -35 lines · -1,090 tokens per session 323491a16e15
  8. 1mo ago Changed · +5 lines · +147 tokens per session 57a542e8d681
  9. 1mo ago Changed · +1 lines · +109 tokens per session 4e5ea8815938
  10. 1mo ago First seen · 249 lines · 4,146 tokens per session scan C a2282fe7d20e

Subscribe to this mod's changes

minimal AGENTS.md is an instructions file published in the GitHub repository gominimal/minimal (226 stars, last pushed today), licensed Apache-2.0. It adds 4,978 tokens to every session, about $0.0199 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). 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,715 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,786 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

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens