substrate: Instructions file for Codex

AGENTS.md

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

Project instructions for Agent Substrate, a Kubernetes-based system that runs many agent-like workloads on shared workers. They describe the repository layout and development resources.

In plain words
What is it for?
Building or changing Agent Substrate binaries, shared Go packages, Kubernetes manifests, tools, documentation, and demo applications.
Why use it?
They give the coding agent the system's purpose, key architectural idea, and locations of important code and deployment files.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

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

About the project

Agent Substrate is a runtime system for running many isolated applications or AI agents on shared computing infrastructure. It manages agent sandboxes throughout their lifecycle, places them on available workers, and routes traffic to them while using technologies such as Kubernetes, microVMs, and gVisor. Its catalogue skills and instructions support operating and developing workflows around this agent runtime.

agent-substrate/substrate · 5,957 stars · on GitHub · ate.dev

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/agent-substrate/substrate/agents-md"><img src="https://agentmods.dev/badge/instructions/agent-substrate/substrate/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,981 This file is loaded in full into every session.
When invoked 3,981 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.03981 $0.03981
Opus 5.5 $0.01592 $0.01592
Sonnet 5.5 $0.00796 $0.00796
Haiku 4.5 $0.00398 $0.00398

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

Security

Grade A, and why

substrate 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 today.

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

How it starts

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

Agent Substrate

Rules for contributors

  • Read CONTRIBUTING.md and the "Using AI" section of COLLABORATING.md. You are responsible for everything your agent submits.
  • Say in the PR description that you used AI, and how. Don't add AI co-author or assisted-by trailers. Submit commits and PRs from your own account. We can't accept contributions from agent or bot accounts.
  • Agents must never sign off a commit as themselves. Only a human can certify the DCO.
  • Before asking for review, review your own diff. For substantial changes, also have a fresh agent session review it adversarially, then validate its findings and fix the confirmed issues.
  • Be brief. Code comments, commit messages, PR descriptions and issues should be short, plain English, and read the way an experienced maintainer writes by hand. Reviewer time and agent context windows are limited.
    • COLLABORATING.md doesn't allow AI-generated commit messages, because they have usually been low quality and unreviewed. If you are asked to write one anyway, hold it to the same standard, and the person submitting it must review it.
    • Write short, direct sentences with one idea each, subject first.
    • Use the real identifiers from the code. Don't coin new names, and avoid noun stacks like "the store-wide pin-lock pre-flight".
    • Prefer verbs to abstract nouns: "evicts" instead of "performs eviction".
    • Say each thing once. Don't restate the diff, open with "This PR …" or "This commit …", or repeat the same explanation in several comments.
    • Explain why only when the code doesn't make it obvious, in a clause or a line.
    • Write microVM (MicroVM at the start of a sentence) without a hyphen in docs, comments, and commits. Use microvm for API strings and flags.
    • Avoid:
      • em-dashes, and chains of semicolons
      • headings, bold, or test plans in commit messages
      • epigrams and contrast pairs, like "X, not Y" or "So treat ENOENT as what it is."
      • numbers added for color, like "measured at a flat 51ms"
      • giving code motives or editorializing about it, like "wants", "decides", "is responsible for", "lands", "owns", or "X is what makes Y". Plain active voice is fine: "the reaper collects" is how Go doc comments read.
      • filler words: load-bearing, footgun, surfaced, robust, comprehensive, seamless, leverage
      • "No behavior change" unless the diff is a pure refactor
      • long sentences that pile up clauses, or put the subject after a long lead-in

Read the full file on GitHub · 170 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. today Changed · +10 tokens per session db53d2585adc
  2. yesterday Changed · +4 lines · +66 tokens per session 0d24faa7aef9
  3. 2d ago Changed · +1 lines · +29 tokens per session 3655f6392124
  4. 6d ago Changed · +2 lines · +88 tokens per session 2243aea57ed4
  5. 7d ago Changed · +3 lines · +75 tokens per session 0acabf715387
  6. 8d ago Changed · +1 lines · +34 tokens per session 13d044aa0cfb
  7. 9d ago Changed · -5 tokens per session 603c4d10585b
  8. 10d ago Changed · +49 lines · +1,496 tokens per session 47f82242d573
  9. 13d ago Changed · +1 lines · +123 tokens per session 58ddb659717a
  10. 14d ago First seen · 109 lines · 2,065 tokens per session scan A 1d2e4150fc12

Subscribe to this mod's changes

substrate AGENTS.md is an instructions file published in the GitHub repository agent-substrate/substrate (5,957 stars, last pushed today), licensed Apache-2.0. It adds 3,981 tokens to every session, about $0.0159 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-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,461 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,750 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,261 tokens