minimal AGENTS.md

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

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/gominimal/minimal/agents-md
Clone the repo
git clone --depth 1 https://github.com/gominimal/minimal

Made for: Codex, OpenCode.

Per session 4,068 This file is loaded in full into every session.
When invoked 4,068 The same file — it is already loaded in full.
Security scan C 1 finding. Scan, not verified.
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 $0.04068 $0.04068
Opus 5 $0.02034 $0.02034
Sonnet 5 $0.00814 $0.00814
Haiku 4.5 $0.00407 $0.00407

Measured 3d ago against content hash 88a781a242c2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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.

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 · 245 lines

How it starts

The opening of the file, as written. The whole thing — 245 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.

Four binaries come out of this workspace:

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.

Crate map

31 crates. One line each; the long-form map with plane assignments is in docs/architecture.md §3.

Crate Role
args Types for the argument schema of tasks and sideload parameters.
async-dialog Interactive terminal prompts over any async reader/writer (no TTY required).
check mip check linting of minimal.toml, packages, profiles, and stacks.
checkouts Git checkouts of upstream layer repositories at pinned versions.
common Common types and utilities (e.g. SpecHash) used across the codebase.
decode Evaluates a Nickel config layer into in-memory packages/profiles/stacks.
diagnostics App-agnostic machinery for diagnostic support bundles.
graph In-memory dependency graph; its planner module orders builds.
lcache Local cache of built artifacts, keyed by SpecHash.
mctx Top-level 'minimal context' API tying configuration, decoding, graph, and cache together.
mfile Finding and reading the minimal.toml file.
minimal The min session CLI, which pairs with and talks to minimald.
minimal-client SSH client transport to minimald over the UDS bridge, shared by min and the TUI.
minimal-tui min dash: the session-manager TUI (ratatui/crossterm, Elm-style loop).
minimald The session daemon: an SSH server hosting sessions and task/sandbox executions.
minimald-rpc Wire contract for minimald's oneshot SSH RPCs and the exec channel's request vocabulary.
minvmd Host daemon that boots Linux microVMs via libkrun and bridges host UDS to in-VM vsock.
mip The Minimal package/build CLI.
mlog JSON file-log layer both minimald and minvmd write through; one definition of the on-disk log format.
op Complex operations over the graph and packages (builds, cache object construction).
orchestrator Runtime orchestration of builds behind a pluggable Backend.
ot Operation tracking for progress rendering (render-agnostic core + drivers).
paths Realm-tagged path types distinguishing host, sandbox, and daemon filesystems.
rcache Remote cache: fetch/upload build artifacts over the network.
remote-client Client for the Remote Execution Service, driving remote builds against the graph.
remote-proto Protobuf / wire types for the Remote Execution Service (RES).
sandbox2 Low-level sandbox implementation (Linux user + mount namespaces).
sessions Session primitives: lifecycle hooks, loadouts, and the composition pipeline.
stdlib The embedded Minimal standard library.
switch gvproxy-switch primitives: subnet arithmetic, MAC derivation, vsock constants, config rendering.
version Shared build-time version identity for min, mip, minimald, and minvmd.

Read the full file on GitHub · 245 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. 3d ago First seen · 245 lines · 4,068 tokens per session scan C 88a781a242c2

Subscribe to this mod's changes

minimal AGENTS.md is an instructions file published in the GitHub repository gominimal/minimal (71 stars, last pushed 3d ago), licensed Apache-2.0. It adds 4,068 tokens to every session, about $0.0203 per session on Opus 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.