md.html: Instructions file for Codex

AGENTS.md

md.html AGENTS.md is an instructions file for Codex, OpenCode from feliperun/md.html. It costs 1,996 tokens per session, scanned A, original, MIT.

A set of repository instructions for md.html, a tool that works with Markdown documents, written in Rust. It defines the project's design rules and requires tests for parsing, validation, and converting documents back and forth.

In plain words
What is it for?
Guiding code changes, architecture decisions, and the required Rust test workflow for Markdown parsing, validation, and conversion.
Why use it?
It keeps implementation decisions small and consistent while ensuring changes are checked against the document grammar and round-trip behavior.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/feliperun/md.html/agents-md"><img src="https://agentmods.dev/badge/instructions/feliperun/md.html/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,996 This file is loaded in full into every session.
When invoked 1,996 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.01996 $0.01996
Opus 5.5 $0.00798 $0.00798
Sonnet 5.5 $0.00399 $0.00399
Haiku 4.5 $0.00200 $0.00200

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

Security

Grade A, and why

md.html 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 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.

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 · 131 lines

How it starts

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

AGENTS.md — md.html

Architecture · Abstractions · Vision · Getting Started · ADRs · Sentrux

Write the minimum code that runs. No fluff, no gold-plating.

  • Do not preserve backward compatibility. Remove obsolete paths instead of adding compatibility layers, fallbacks, or migrations.
  • Choose the simplest implementation that fully meets the current requirements. Avoid speculative abstractions, configuration, and indirection.
  • Grow the system in layers. Start from the smallest version that works end to end, and add each new capability on top of a product that already works. Never trade a working product for unfinished complexity.
  • Keep components modular and concerns clearly separated.
  • Prefer established, well-maintained libraries when they reduce overall complexity or improve reliability. Do not reimplement common functionality without a clear reason.
  • Lean on the dependencies already in the project before writing your own implementation or adding packages. Do not assume a library lacks a capability without checking its documentation and types.
  • Make architectural decisions for the long term. Do not accept a stopgap that only works for now and is meant to be replaced later.
  • Study how established products solve the problem before designing a solution. Adopt their proven patterns and conventions rather than inventing an approach from scratch.

Repository rules

  • AGENTS.md is the single source of guidance. CLAUDE.md, GEMINI.md, CURSOR.md, AGENT.md and .github/copilot-instructions.md are symlinks to it. Never edit a symlink; never let one drift into a real file.
  • Never commit secrets. Tokens, credentials, and service-account JSON stay in a secret manager or a gitignored .env. The pre-commit hook scans the staged diff; do not work around it.
  • No personal or production-derived data in source, migrations, fixtures, tests, or docs. Committed fixtures are synthetic. User-specific values belong in runtime configuration.
  • Never expose internals to users. No stack traces, internal URLs, or env var names in user-facing copy.
  • Conventional Commits required. feat:, fix:, docs:, refactor:, test:, chore:. One logical change per commit; one bounded scope per PR. Release tooling parses them — a break in a published contract ships as feat!: or carries a BREAKING CHANGE: footer, never as a plain feat:.
  • Never --no-verify. If a hook blocks, fix the underlying issue.
  • Code, comments, and identifiers in English. Surgical changes — no opportunistic refactors in feature PRs, no suppression comments to silence a linter.
  • Shell scripts run under set -euo pipefail and are idempotent — re-running completes what is missing instead of duplicating or destroying.

Read the full file on GitHub · 131 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 · 131 lines · 1,996 tokens per session scan A bb10a425a100

Subscribe to this mod's changes

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

Related

md.html AGENTS.md compared with instructions from other repositories

md.html AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
md.html AGENTS.mdfeliperun/md.htmlInstructions file112mo agoMITA1,996Codex, 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