md.html AGENTS.md

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

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/feliperun/md.html/agents-md
Clone the repo
git clone --depth 1 https://github.com/feliperun/md.html

Made for: Codex, OpenCode.

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. Scan, not verified.
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 $0.01996 $0.01996
Opus 5 $0.00998 $0.00998
Sonnet 5 $0.00399 $0.00399
Haiku 4.5 $0.00200 $0.00200

Measured 2d ago against content hash bb10a425a100, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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. 2d 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 7d ago), licensed MIT. It adds 1,996 tokens to every session, about $0.0100 per session on Opus 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

Other instructions, from other repositories

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,345 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

next.js AGENTS.md

Instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens