M3E: Instructions file for Codex

AGENTS.md

M3E AGENTS.md is an instructions file for Codex, OpenCode from akaghef/M3E. It costs 2,346 tokens per session, scanned A, original, MIT.

Repository instructions for working on the M3E project with a director-and-worker model. They describe the beta and final folders, the roles of Claude and Codex, and the scripts used to launch the project.

In plain words
What is it for?
Use them when implementing, testing, reviewing, or integrating M3E changes, especially when deciding where to work and which launch process to follow.
Why use it?
They prevent contributors from using outdated workflows or editing the wrong environment. They also set expectations for small validated changes and the division of implementation work.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions subagents; runs codex exec.

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

View source ↗ akaghef/M3E
Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/akaghef/m3e/agents-md"><img src="https://agentmods.dev/badge/instructions/akaghef/m3e/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,346 This file is loaded in full into every session.
When invoked 2,346 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.02346 $0.02346
Opus 5.5 $0.00938 $0.00938
Sonnet 5.5 $0.00469 $0.00469
Haiku 4.5 $0.00235 $0.00235

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

Security

Grade A, and why

M3E 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 1mo 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 · 248 lines

How it starts

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

M3E Agent Execution Guide

Objective

This repository is operated with a Director to Codex model. Prefer small validated changes over broad refactors.

Operating Model

Canonical Claude-facing sources:

  1. CLAUDE.md
  2. docs/06_Operations/Director_Playbook.md

Current model:

  • Claude = Director only. Claude routes, decomposes intent, writes Codex handoffs, dispatches Codex, reviews results, and manages worktrees / PRs.
  • Codex (codex exec) = sole worker for implementation, spec writing, refactoring, investigation, tests, commits, and PR creation.
  • The old Claude sub-agent worker model (manage / visual / data / team) is superseded. Do not launch Claude Agent Teams for implementation.

Environment Structure

Environment Directory Status Purpose
Beta beta/ Active development Current dev & daily use
Final final/ Stable release Production use / distribution

Current active development target: beta/

Launch scripts

Script Use
scripts/beta/launch.bat Daily use — launch Beta (build required)
scripts/beta/update-and-launch.bat Pull latest → install → build → launch
scripts/final/migrate-from-beta.bat Sync Beta → Final, migrate data, launch

Source of Truth

  1. Strategy and current direction:
    • docs/00_Home/Home.md
  2. Current priorities and progress:
    • docs/00_Home/Current_Status.md
  3. Director procedure:
    • CLAUDE.md
    • docs/06_Operations/Director_Playbook.md
  4. Operations rules:
    • docs/06_Operations/Documentation_Rules.md
    • docs/06_Operations/Worktree_Separation_Rules.md
  5. Repository canon values:
    • docs/protocols/repository-canon-values.md

AI Instruction Routing

For M3E / Akaghef-System work, do not duplicate detailed rules in this file.

  • Product meaning of map / node / scope / edge / GraphLink / alias / path / layout lives under docs/03_Spec/.
  • Repository-level canon, source/artifact allocation, generated-output policy, worktree placement, and private/public-danger material routing live in docs/protocols/repository-canon-values.md.
  • Agent operating behavior lives under docs/protocols/.
  • Claude Director behavior lives in CLAUDE.md and docs/06_Operations/Director_Playbook.md.
  • Map read/write execution uses the m3e-map skill.
  • Structural map decisions use docs/protocols/map-manager/ (with docs/protocols/map-manager.md as a compatibility pointer) and the map-manager skill.
  • Codex workers must follow docs/protocols/worker-minimal-instruction.md and must not redefine scope, layout, alias, storage, or cross-facet link policy.

Read the full file on GitHub · 248 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. 1mo ago First seen · 248 lines · 2,346 tokens per session scan A 601ff5f05893

Subscribe to this mod's changes

M3E AGENTS.md is an instructions file published in the GitHub repository akaghef/M3E (16 stars, last pushed 2d ago), licensed MIT. It adds 2,346 tokens to every session, about $0.0094 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-10-02.

Related

M3E AGENTS.md compared with instructions from other repositories

M3E AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
M3E AGENTS.mdakaghef/M3EInstructions file162d agoMITA2,346Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150kyesterdayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,303GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file289k2d agoMITA4,393Codex, OpenCode