aios: Instructions file for Codex

AGENTS.md

aios AGENTS.md is an instructions file for Codex, OpenCode from rexleimo/aios. It costs 7,073 tokens per session, scanned E, original, MIT.

Repository instructions for the rexleimo/aios project, including path conventions, workflow selection, project structure, and build and test commands. A repository is the project’s files and history managed by a version-control system such as Git.

In plain words
What is it for?
Use them when changing the AIOS project to resolve paths, choose the required workflow, organize modules, and run the specified build or test commands.
Why use it?
They tell the coding agent which project paths and workflow rules to follow, reducing mistakes caused by working from the wrong directory or skipping required checks.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/rexleimo/aios/agents-md"><img src="https://agentmods.dev/badge/instructions/rexleimo/aios/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7,073 This file is loaded in full into every session.
When invoked 7,073 The same file — it is already loaded in full.
Security scan E 3 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.07073 $0.07073
Opus 5.5 $0.02829 $0.02829
Sonnet 5.5 $0.01415 $0.01415
Haiku 4.5 $0.00707 $0.00707

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

Security

Grade E, and why

aios AGENTS.md scanned grade E with 3 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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

- RTK: `brew install rtk` or `curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh | sh` (see https://github.com/rtk-ai/rtk#installation)

Recursive force deletehighDestructive command

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

- **暂存目录必须与仓库同卷,并且真删时要落在安全门允许的路径里**(实测 2026-10-26,见 `docs/adr/0003-repo-junk-cleanup-tiering.md`):`aios-tmp-gc.mjs` 的 `to-trash` 用 `fs.renameSync`,而 `trashDirFor()` 默认落 `os.homedir()/.Trash`——家目录与仓库不同卷时必须显式传 `--trash-dir

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- RTK: `brew install rtk` or `curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh | sh` (see https://github.com/rtk-ai/rtk#installation)
AGENTS.md · 375 lines

How it starts

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

Repository Guidelines

Path Conventions (路径约定)

IMPORTANT: All relative paths in this document are relative to the PROJECT ROOT (current working directory), NOT AIOS_ROOT.

  • AIOS_ROOT - AIOS framework installation location (contains scripts/, package.json)
  • Project Root - Current working directory (contains .aios/, .codex/skills/, project state)
  • Paths like .aios/, .codex/skills/, docs/plans/ are relative to Project Root
  • Run pwd to see Project Root; echo $AIOS_ROOT to see framework location
  • See docs/architecture/path-resolution.md for detailed path resolution rules

Evaluate the AIOS workflow policy before creating a plan, selecting a skill, or dispatching work.

  1. direct and noop turns do not create a persistent plan or invoke a skill chain.
  2. guarded turns use only the required edit and verification gates.
  3. planned turns create or reuse one work-item plan, then execute only the Provider selected by the current rex Command.
  4. Do not insert a global bootstrap or compatibility skill chain. aios-workflow-router helps classify work but does not replace the Provider selected by the current Rex Capability Command.
  5. Invoke the selected Provider rather than paraphrasing it; use verification-before-completion before claiming a changed behavior is complete.
  6. Code-producing Providers (rex-implement / rex-design / rex-code-review / rex-refactor-hardening) load the rex-engineering-standards shared reference skill before executing; its Definition of Done (including file-granularity rules: one responsibility per file, ~400-line soft budget, kebab-case naming) gates completion.

Prompt Authoring Norms(提示词撰写规范)

Any prompt, skill, or script that guides the model follows three rules (full text: docs/reference/prompt-authoring-norms.md):

Read the full file on GitHub · 375 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 · +2 lines · +282 tokens per session scan C → E 49aafbbf1934
  2. 4d ago Changed · +38 lines · +922 tokens per session 341d3514dc38
  3. 5d ago Changed · +8 lines · +334 tokens per session 1ab0d2fb2c13
  4. 9d ago Changed · +8 lines · +297 tokens per session b40c2e379a8d
  5. 10d ago Changed · -38 lines · -343 tokens per session d09cbe152f46
  6. 13d ago Changed · +1 lines · +53 tokens per session 36567d87984a
  7. 28d ago Changed · +1 lines · +76 tokens per session 901f55a0e046
  8. 1mo ago Changed · +17 lines · +387 tokens per session 31109dd26986
  9. 1mo ago Changed · +1 lines · +135 tokens per session cf9502208a37
  10. 1mo ago First seen · 337 lines · 4,930 tokens per session scan C 084e0ecc2f36

Subscribe to this mod's changes

aios AGENTS.md is an instructions file published in the GitHub repository rexleimo/aios (61 stars, last pushed today), licensed MIT. It adds 7,073 tokens to every session, about $0.0283 per session on Opus 5.5. A static security scan graded it E with 3 findings (downloads and executes remote code, recursive force delete, makes network calls). 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