mister-clean: Instructions file for Codex

AGENTS.md

mister-clean AGENTS.md is an instructions file for Codex, OpenCode from bradheitmann/mister-clean. It costs 417 tokens per session, scanned A, original, MIT.

Repository instructions that require coding agents to follow a project charter, prove changes with defined checks, and record the current project state before stopping.

In plain words
What is it for?
They are for controlling agent work in a repository through bounded tasks, documented guarantees, stop rules, and proof of completion.
Why use it?
They prevent agents from skipping required decisions, tests, ownership, or handoff information.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

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

Reuse

Borrowing it

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

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 mister-clean AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/bradheitmann/mister-clean/agents-md"><img src="https://agentmods.dev/badge/instructions/bradheitmann/mister-clean/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 417 This file is loaded in full into every session.
When invoked 417 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.00417 $0.00417
Opus 5.5 $0.00167 $0.00167
Sonnet 5.5 $0.00083 $0.00083
Haiku 4.5 $0.00042 $0.00042

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

Security

Grade A, and why

mister-clean 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 6d 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 · 14 lines

What it actually says

Charter (binding for every agent, every harness)

  1. Before designing, dispatching, or claiming anything done, read charter/ in this repo: INTENT.md, GUARANTEES.yaml, LOOPS.yaml, STOP-RULES.md, DONE/.md, STATE.md. If any is missing or stale, your first task is to produce it with the owner; do not proceed past it.
  2. Done means every proof in charter/DONE/<slice>.md executed and its run reopened and compared. It never means "no findings". New findings become recorded obligations on the next bounded slice unless they break a guarantee listed in GUARANTEES.yaml.
  3. The stop rules in charter/STOP-RULES.md bind you. You may not relax them. A change to them exists only as charter/owner-decisions/<date>-<slug>.md.
  4. Every guarantee you add gets an owner, a proof and a cost. Every loop you add gets a bound, a cost per trip and a stop condition. No exceptions for "small".
  5. Nothing scales before charter.toml [slice_zero] has proven_on set from a real run.
  6. Before you stop, hand off, or approach a context limit: rewrite charter/STATE.md (proven, not proven, exact last-green and last-red commands, next three bounded items, open owner decisions). No decision may live only in a pane or transcript.
  7. Run charter check (or hooks/charter-check.sh) before any commit or "ready" claim. Rust only; no Python.

Engineering standard

This repository follows COMMON-STANDARD.md. How each section maps to this repository's gates, and the open gaps, are in charter/STANDARD-ADOPTION.md.

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. 6d ago First seen · 14 lines · 417 tokens per session scan A 0d4bbf571876

Subscribe to this mod's changes

mister-clean AGENTS.md is an instructions file published in the GitHub repository bradheitmann/mister-clean (0 stars, last pushed yesterday), licensed MIT. It adds 417 tokens to every session, about $0.0017 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-11-01.

Related

mister-clean AGENTS.md compared with instructions from other repositories

mister-clean AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mister-clean AGENTS.mdbradheitmann/mister-cleanInstructions file0yesterdayMITA417Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file275k3d agoMITA4,313Codex, OpenCode