masterplan: Instructions file for Codex

AGENTS.md

masterplan AGENTS.md is an instructions file for Codex, OpenCode from rasatpetabit/masterplan. It costs 1,762 tokens per session, scanned A, original, MIT.

A repository guide file for masterplan, a Claude Code and Codex plugin that turns brainstorming into an executable plan and tracks its progress.

In plain words
What is it for?
Use it when working on masterplan to understand its architecture, development rules, workflow, and durable planning state.
Why use it?
It tells coding agents what the project is, where to read first, and which shared policies they must follow. This reduces conflicting instructions and guesswork across repositories.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/rasatpetabit/masterplan/agents-md"><img src="https://agentmods.dev/badge/instructions/rasatpetabit/masterplan/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,762 This file is loaded in full into every session.
When invoked 1,762 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.01762 $0.01762
Opus 5.5 $0.00705 $0.00705
Sonnet 5.5 $0.00352 $0.00352
Haiku 4.5 $0.00176 $0.00176

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

Security

Grade A, and why

masterplan 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 24d 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 · 118 lines

How it starts

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

AGENTS.md — masterplan

Development host — 2026-09-21

Use ras@ai (192.168.100.200) for all AI work, source/documentation edits, build development, and working-copy synchronization. The canonical checkout keeps this repository's /srv/dev/... path on ai; GitHub remains the source-control remote where configured. Do not replicate code or docs to epyc1 or epyc2; they are VM servers. Older host references in evidence and runtime runbooks do not authorize development there. Verify a service's actual guest/endpoint before operating it; this policy does not prove runtime, credential, timer, or private-data migration.

Central agent policy

Cross-repo AskUserQuestion/ask_user_question (AUQ), Serena, Hindsight, context-mode, and subagent/model-dispatch policy is centralized in the fleet policy. Masterplan reads model-free intent from C1 (MP_DISPATCH_MAP, else ~/.pi/workflows/dispatch-map.json); the Pi governed boundary owns resolution. Fleet dispatch policy lives at /srv/workflows/policy/dispatch.md. Do not duplicate or override that policy here.

What this repo is

masterplan is a Claude Code (and Codex) plugin providing the /masterplan command — a resumable brainstorm → plan → execute → finish workflow on top of obra/superpowers skills. As of v8 it is a real Node codebase, not a markdown monolith: deterministic decisions live in lib/*.mjs behind bin/masterplan.mjs (mp, unit-tested), the markdown prompt is a thin sequencer that only orders mp calls / agent dispatches / gates, and durable state lives in docs/masterplan/<slug>/state.yml. It is built in five thin layers (L0 run bundle → L4 doctor).

This file is a thin index. The full five-layer architecture and failure modes are in docs/internals.md; the public overview is README.md.

Where to read first

Intent. INTENT.md at the repo root states why this repo exists, what must never happen, what it is not, and where it is going. Before a substantive change, read it and state in one line which of serves / neutral / fights / unavailable the change is, judged against its checked sections: Purpose / Top invariant / Non-goals / Direction / Posture. fights or unsure stops and puts it to the owner before code is written. Its decisions are the owner's — amend it through the owner, never to fit the change.

Read the full file on GitHub · 118 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. 24d ago Changed · +20 lines · +77 tokens per session d77517961f26
  2. 28d ago Changed · -1 lines · +22 tokens per session 1676f6abe97d
  3. 1mo ago Changed · +32 tokens per session 8c1146eca070
  4. 1mo ago Changed · +11 lines · +144 tokens per session 661f0971fb25
  5. 1mo ago Changed · +1 lines · +61 tokens per session b38f47e3852d
  6. 1mo ago Changed · +10 lines · +149 tokens per session 8f97254ba5b3
  7. 1mo ago First seen · 77 lines · 1,277 tokens per session scan A 0935b7e327ef

Subscribe to this mod's changes

masterplan AGENTS.md is an instructions file published in the GitHub repository rasatpetabit/masterplan (10 stars, last pushed 12d ago), licensed MIT. It adds 1,762 tokens to every session, about $0.0070 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-31.

Related

Other instructions, from other repositories