aegis: Instructions file for Codex

AGENTS.md

aegis AGENTS.md is an instructions file for Codex, OpenCode from apiad/aegis. It costs 2,276 tokens per session, scanned A, original, MIT.

Repository instructions for Aegis, covering how to run its terminal interface, web app, headless server, logs, configuration commands, and related project knowledge.

In plain words
What is it for?
Use them when running Aegis, viewing logs, creating configuration files, or working with its terminal and web interfaces.
Why use it?
They explain which command to use for local, remote, or headless operation and where to find the project's operating guidance.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/apiad/aegis/agents-md"><img src="https://agentmods.dev/badge/instructions/apiad/aegis/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,276 This file is loaded in full into every session.
When invoked 2,276 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.02276 $0.02276
Opus 5.5 $0.00910 $0.00910
Sonnet 5.5 $0.00455 $0.00455
Haiku 4.5 $0.00228 $0.00228

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

Security

Grade A, and why

aegis 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 13d 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 · 152 lines

How it starts

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

aegis

aegis is a web-native workplace for coding agents. aegis serve runs Claude Code, OpenCode and Codex sessions on one machine and serves them to browser tabs: a Fleet view, shared tabs, a transcript per session, and an archive. Agents in it get aegis's tools over MCP: monitors, queues of workers, handoffs, reading a peer, and an inbox that delivers what those produce. It is published on PyPI as aegis-harness, and it is the workplace Alex and his agents use for multi-agent work in this workspace.

Until 2.0 aegis was a terminal app. That tree lives under legacy/ as reference: not packaged, not tested, not launchable. Read it to learn how something was done; never import it. Its design is legacy/DESIGN.md.

Read this file, then DESIGN.md, then the know-how doc for the job in front of you. This file changes when aegis's goals change. Nothing in it should be made false by a commit that adds a module, a tool or a test.

What done means

A change is done when:

  1. the tests that cover the change pass locally, and nothing more: run the test files you touched and their neighbours while you iterate, plus make lint-docs when a doc or help page changed. The whole suite is CI's job, not yours;
  2. CI is green on the PR. It runs the whole hermetic suite, slow and browser tests included, with format, lint, typecheck, rift and the changelog check, and compares the bench of the PR's base and head in its job summary. Copy that table into the PR body: CI warns on a regression and never fails on one, so a reader has to look at it;
  3. it has been exercised in a browser against an aegis serve started after the change, and, for a change to how agents use aegis, by the make test-live case that covers it, run on its own (-k), not the whole live suite;
  4. DESIGN.md describes the code as it now is;
  5. a user-visible change has a changelog.d/ fragment and updates or adds its help page under src/aegis/help/, and a change to how the pieces fit has its spec under docs/superpowers/specs/, with a status that matches the code;
  6. before a release, Alex has smoke-tested that version himself. Offer him the guided smoke test then, not per PR: the build under test runs through bin/aegis-dev beside his own aegis, and an agent inside it walks him through what changed since the last tag, simplest first, asking after each step whether it works. File what the tour finds as issues unless the fix on main is trivial. Every check above is a proxy; his hands on the build are the gate, and a release he has not run is not done.

Read the full file on GitHub · 152 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. 13d ago Changed · +6 lines · +144 tokens per session 53889195ffd3
  2. 15d ago Changed · +13 lines · +200 tokens per session 9de7581ee536
  3. 16d ago Changed · +2 lines · +38 tokens per session 9194c5d71577
  4. 19d ago Changed · +9 lines · +135 tokens per session e1a6282abfdb
  5. 26d ago Changed · +3 lines · +74 tokens per session 8744136ef48e
  6. 29d ago Changed · +10 lines · +197 tokens per session e0d8b02eb64e
  7. 1mo ago Changed · +3 tokens per session 27b01c676af2
  8. 1mo ago Changed · -5 lines · -113 tokens per session a0ac9bc9847f
  9. 1mo ago Changed · +1 lines · +51 tokens per session 750f134718e6
  10. 1mo ago First seen · 113 lines · 1,547 tokens per session scan A 1cf9cef70a3c

Subscribe to this mod's changes

aegis AGENTS.md is an instructions file published in the GitHub repository apiad/aegis (22 stars, last pushed 11d ago), licensed MIT. It adds 2,276 tokens to every session, about $0.0091 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

aegis AGENTS.md compared with instructions from other repositories

aegis AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
aegis AGENTS.mdapiad/aegisInstructions file2211d agoMITA2,276Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot