monochrome-ui: Instructions file for Codex

AGENTS.md

monochrome-ui AGENTS.md is an instructions file for Codex, OpenCode from vaneenige/monochrome-ui. It costs 6,031 tokens per session, scanned A, original, MIT.

Repository instructions for Monochrome, an accessible user-interface component library that works with plain HTML and can also be used through React or Vue wrappers.

In plain words
What is it for?
Use it when modifying the library’s Accordion, Dialog, Menu, Tabs, Tooltip, and related components, or its optional router and framework wrappers.
Why use it?
It gives contributors the project’s non-negotiable design and coding rules, reducing changes that would break its accessibility, browser behavior, or dependency-free core.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 monochrome-ui AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/vaneenige/monochrome-ui/agents-md"><img src="https://agentmods.dev/badge/instructions/vaneenige/monochrome-ui/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 6,031 This file is loaded in full into every session.
When invoked 6,031 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.06031 $0.06031
Opus 5.5 $0.02412 $0.02412
Sonnet 5.5 $0.01206 $0.01206
Haiku 4.5 $0.00603 $0.00603

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

Security

Grade A, and why

monochrome-ui 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.

AGENTS.md · 482 lines

How it starts

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

AGENTS.md

Instructions for working on monochrome: an accessible, headless UI component library with no runtime dependencies. Eight components (Accordion, Collapsible, Dialog, Menu, Menubar, Popover, Tabs, Tooltip), plus an optional router and the React and Vue component templates that npx monochrome add copies into projects (templates/). The core is framework-agnostic and works on plain HTML; import it once and every correctly- structured component on the page becomes interactive.

Read first

  • PRINCIPLES.md: the six north stars (DOM is the source of truth, event delegation on window only, zero timers (one paint yield in the router), zero runtime dependencies, Baseline 2024, one file per component) and the shape choices that follow from them. Read it before touching src/. Breaking a north star is never a fix.
  • docs/: how each mechanism works. Overlay files are menu.md, popover.md, tooltip.md, dialog.md. Shared helpers plus Accordion, Tabs, and Collapsible live in dom.md. Router in router.md. React and Vue parts in parts.md. The core and router carry no comments; these files are their comments. Read the one for the component you are debugging, skip the rest.
  • This file: how to work in the repo. Rules only.

Where things go

Every change has exactly one home. Pick it before writing prose.

  • A constraint that, if broken, means "not monochrome": PRINCIPLES.md › North stars. Needs the maintainer's sign-off.
  • Why the core has a shape (a pattern, not a mechanism): PRINCIPLES.md › Why the core looks weird.
  • How a component behaves, including every bug fix that changes behaviour: docs/<component>.md, inside the paragraph that owns that mechanism. Accordion, Tabs, Collapsible, and shared helpers live in docs/dom.md.
  • Behaviour of the parts beyond markup: docs/parts.md.
  • React parts: templates/react/<component>.tsx (JSX). Vue parts: templates/vue/<component>/, one single-file component per part, a context.ts for what they share, and an index.ts that loads the core and names the parts. Both are listed in templates/manifest.json. Users own their copies, so they stand alone: each component imports its core as monochrome/<component> and inlines its helpers. Imports between template files are relative and extensionless (./menu, ../menu/context), the one exception to the .js rule. The React and Vue fixtures render these files (@/components/ui). The package has no framework export.
  • Every part carries data-slot (after the props spread), a styling hook, and passes a class to its element.
  • No CSS ships: not in dist/, not from add. Each spec's Styling section is how a project styles the component (below).
  • templates/manifest.json is the one list of components: the build, the CLI, the tests, and the website read it. Each entry names what it requires, whether its spec has Required CSS (placement, checked by the build), and its own files per framework.
  • build.ts turns the templates into the files add copies: dist/files/react/, dist/files/vue/, examples/, and a manifest.json (scripts/files.ts). Every .tsx part and example gets a type-stripped .jsx twin, which add writes in a project without a tsconfig*.json; TypeScript the stripper misses fails the build. The Vue parts ship as written (lang="ts", which Vue's tooling compiles in any project). The CLI never generates; it copies. Each file's first line names the version it came from. monochrome.json holds only settings (framework and the components folder); there is no update command yet.
  • Frameworks: cli/frameworks.ts has one entry per framework add writes for. html (the default without React or Vue) prints the spec's Anatomy markup; react and vue write the parts. A new framework is one entry there, its files in templates/<id>/ listed in the manifest, an example per component in templates/<id>/examples/, a build step in scripts/files.ts, a Playwright project with its fixtures, and the same CLI tests run for it.
  • add and init keep the core in lockstep: they install monochrome at the CLI's own version when the project lacks it, and stop before writing when the project resolves another version (cli/install.ts).
  • Router behaviour: docs/router.md.
  • How code is written (style, naming, order): this file › Code style, as a rule.
  • Toolchain, build, gate: this file › Build pipeline.
  • Test naming or structure: this file › Test naming.
  • What a component does for consumers: README.md for the overview, spec/<component>.md for the markup contract.

Read the full file on GitHub · 482 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 Changed · +116 lines · +1,728 tokens per session b13b144cb0d5
  2. 1mo ago Changed · +13 lines · +170 tokens per session 1c7d0fa5a9d2
  3. 1mo ago Changed · +14 lines · +155 tokens per session 9f83cb845931
  4. 1mo ago Changed · -5 lines · -67 tokens per session 0d254d4a4773
  5. 1mo ago Changed · -337 lines · -4,303 tokens per session 150bc535a64b
  6. 2mo ago Changed · +45 lines · +610 tokens per session 1ea0393e59c8
  7. 2mo ago Changed · +9 tokens per session 047aca623b44
  8. 2mo ago Changed · +48 lines · +644 tokens per session ce2e146e4f2b
  9. 2mo ago Changed · -6 lines · -126 tokens per session a3bc0e035e7c
  10. 2mo ago First seen · 594 lines · 7,211 tokens per session scan A d47011dae8cf

Subscribe to this mod's changes

monochrome-ui AGENTS.md is an instructions file published in the GitHub repository vaneenige/monochrome-ui (134 stars, last pushed 1mo ago), licensed MIT. It adds 6,031 tokens to every session, about $0.0241 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

monochrome-ui AGENTS.md compared with instructions from other repositories

monochrome-ui AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
monochrome-ui AGENTS.mdvaneenige/monochrome-uiInstructions file1341mo agoMITA6,031Codex, 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