dogma: Instructions file for Codex

AGENTS.md

dogma AGENTS.md is an instructions file for Codex, OpenCode from EndogenAI/dogma. It costs 25,498 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for AI coding agents working on the EndogenAI/dogma project. They define the project's guiding principles, how knowledge is passed between instruction files, and how agents should make decisions.

In plain words
What is it for?
Use them when an AI agent is contributing to this repository and needs its operating constraints, priorities, and instruction hierarchy.
Why use it?
They give coding agents consistent rules for using project knowledge, preferring local and deterministic work, and avoiding unnecessary context or token use.

Instructions file for CodexOpenCode

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

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is **Cross-repo branch rule**: In a multi-root workspace, every repo you write files to must be on a feature branch — not just the repo you started in. Before any .

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/endogenai/dogma/agents-md"><img src="https://agentmods.dev/badge/instructions/endogenai/dogma/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25,498 This file is loaded in full into every session.
When invoked 25,498 The same file — it is already loaded in full.
Security scan A 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.25498 $0.25498
Opus 5.5 $0.10199 $0.10199
Sonnet 5.5 $0.05100 $0.05100
Haiku 4.5 $0.02550 $0.02550

Measured 2mo ago against content hash 395ceef40b47, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dogma AGENTS.md scanned grade A 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 2mo 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.

Makes network callslowCapability

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

| Ollama | `curl -sf http://localhost:11434/` | `Ollama is running` |
AGENTS.md · 1,409 lines

How it starts

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

AGENTS.md

Guidance for AI coding agents working in this repository.


Guiding Constraints

These constraints govern all agent behavior. They derive from three core axioms in MANIFESTO.md:

  1. Endogenous-First — scaffold from existing system knowledge and external best practices
  2. Algorithms Before Tokens — prefer deterministic, encoded solutions over interactive token burn
  3. Local Compute-First — minimize token usage; run locally whenever possible (LCF as structural enabler — see MANIFESTO.md §3)

Encoding Inheritance Chain: Values flow through MANIFESTO.md (foundational axioms) → AGENTS.md (operational constraints) → role files (.agent.md; VS Code: Custom Agents) → SKILL.md files (reusable tactical knowledge) → session prompts (enacted behavior). Each layer is a re-encoding of the layer above it. Agents must minimise lossy re-encoding: prefer direct quotation or explicit citation over paraphrase when invoking a foundational principle. Cross-reference density (back-references to MANIFESTO.md in your output) is a proxy for encoding fidelity. Low density signals likely drift. See docs/research/values-encoding.md for the cross-sectoral evidence base. AGENTS.md is the central authority for all operational constraints; subdirectory redirection notices point back here for global governance.

Session-Start Encoding Checkpoint: At the start of every session, the first sentence of ## Session Start in the scratchpad must name the governing axiom and one primary endogenous source. See docs/guides/session-management.md → Session-Start Encoding Checkpoint for format and examples. The agent fleet is the pressurizing medium — it gives each substrate coherent form but does not own the membrane or the bucket. Agents are tools that shape how values flow through the system, but they neither create nor control the values themselves.

Read the full file on GitHub · 1,409 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. 2mo ago First seen · 1,409 lines · 25,498 tokens per session scan A 395ceef40b47

Subscribe to this mod's changes

dogma AGENTS.md is an instructions file published in the GitHub repository EndogenAI/dogma (2 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 25,498 tokens to every session, about $0.1020 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

dogma AGENTS.md compared with instructions from other repositories

dogma AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dogma AGENTS.mdEndogenAI/dogmaInstructions file22mo agoApache-2.0A25,498Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode