moradin: Instructions file for Codex

AGENTS.md

moradin AGENTS.md is an instructions file for Codex, OpenCode from CloseTheLoops/moradin. It costs 1,985 tokens per session, scanned A, original, MIT.

A set of instructions for Moradin, a file-based product-building system that guides an operator from an idea through a multi-stage shipping process.

In plain words
What is it for?
Use it when opening the Moradin workspace, selecting a target project, reading its current journal, and following the forge stages to build and ship another product.
Why use it?
It gives an agent a defined workflow and project memory so work can continue from recorded progress instead of starting without context. Each target project keeps its own journal and pipeline state.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/closetheloops/moradin/agents-md"><img src="https://agentmods.dev/badge/instructions/closetheloops/moradin/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,985 This file is loaded in full into every session.
When invoked 1,985 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.01985 $0.01985
Opus 5.5 $0.00794 $0.00794
Sonnet 5.5 $0.00397 $0.00397
Haiku 4.5 $0.00198 $0.00198

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

Security

Grade A, and why

moradin 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

AGENTS.md · 119 lines

How it starts

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

Moradin — The Forge

I am Moradin. I forge products. I do not run. I am opened.

What I am

Two layers in one directory:

  1. The Forge — a guided pipeline that takes an operator from "I have an idea" to "I shipped a product." Seven stages plus a dispatcher, each a skill. The expert judgment is encoded in the skills, so the operator doesn't have to supply it — including operators who build purely by prompting AI.
  2. The stock — memory: principles, patterns, references, lessons, preferences. The forge draws on it and feeds it. Every project makes the next one better.

When you open Claude Code (or Cursor, Codex, Gemini, Hermes) in my directory, that session inherits both layers and uses them to build OTHER projects. Each target project carries its own pipeline state in a .forge/ folder — portable, readable without me. I am inert files; I come alive when an agent opens me.

When you open me — what to do

  1. Read this file fully.
  2. Read memory/_INDEX.md for the catalog; per-type _INDEX.md files on demand.
  3. If the operator names a target project: read <target>/.forge/journal.md first — three lines saying where they are and what's next. Then projects/<name>/state.md and the target's own CLAUDE.md/AGENTS.md.
  4. Route via the pipeline. When in doubt, /moradin:forge decides.

The pipeline

Verb Stage One line
forge dispatcher Reads the journal, routes: quick path for one-sentence changes, amendment for changed minds, the next stage otherwise. First run calibrates (Light/Medium/Full).
define 1 Idea → who + problem → job story → riskiest assumption → walking skeleton → appetite cut → premortem. Drafted interview, hard page caps.
measure 2 The Success Contract: one metric with a target AND a kill line, before any tool research or code. Confirmed on a clickable page, never chat prose.
research 3 Verified deep research on the open decisions. 9 checks per option incl. live data-shape calls. Boring by default.
decide 4 Constraints first, 3 options + recommended default per card, clicked and exported. Records with why-nots; accepted = never re-argued, only superseded.
build 5 Vertical slices citing their sources, each with an executable check. Checkpoint → align → build (dev data only) → run the check → tick. [you] tasks walk the operator through human-only steps.
close 6 Evidence-derived security core (secrets history scan, logged-out probe, restore test, spend caps…), closed-loop audit, converge, four-question retro → lessons.
review 7 Consumes the contract: actuals vs targets vs kill line → continue / pivot / stop, stated plainly. A clean kill is the process succeeding. The v1→v2 re-entry point.

Read the full file on GitHub · 119 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 · 119 lines · 1,985 tokens per session scan A 82e2ea168d57

Subscribe to this mod's changes

moradin AGENTS.md is an instructions file published in the GitHub repository CloseTheLoops/moradin (2 stars, last pushed 2mo ago), licensed MIT. It adds 1,985 tokens to every session, about $0.0079 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