monochrome-ui AGENTS.md

monochrome-ui AGENTS.md is an instructions file for Codex, OpenCode from vaneenige/monochrome-ui. It costs 7,729 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.

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/vaneenige/monochrome-ui/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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 7,729 This file is loaded in full into every session.
When invoked 7,729 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.1 $0.07729 $0.07729
Opus 5 $0.03864 $0.03864
Sonnet 5 $0.01546 $0.01546
Haiku 4.5 $0.00773 $0.00773

Measured today against content hash ce2e146e4f2b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 today.

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

How it starts

The opening of the file, as written. The whole thing — 636 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 thin React and Vue wrappers. The core is framework-agnostic and works on plain HTML; import it once and every correctly- structured component on the page becomes interactive.

North stars (non-negotiables)

These aren't preferences. Break any of them and it isn't monochrome any more:

  1. DOM is the source of truth. Every decision reads aria-expanded, aria-selected, aria-checked, aria-hidden, aria-disabled. There is no internal state object mirroring the DOM anywhere in the library.
  2. Event delegation only. Listeners go on window. Zero per-element listeners. Each component registers only the events it handles. Combined, the set is still the nine: pointerdown, pointerup, click, pointermove, keydown, scroll, resize, focusin, focusout.
  3. Zero timers. No setTimeout, requestAnimationFrame, queueMicrotask, debounce, or throttle. Every action is synchronous within its event.
  4. Zero runtime dependencies. Shared helpers (src/dom.ts) import nothing. Components import only those helpers. The wrappers import only their framework (as peer deps) plus one side-effect import of their own core file, so a single wrapper import ships both markup and behavior.
  5. Baseline 2024 browsers. We rely on the Popover API. No polyfills shipped.
  6. One file per component. Shared helpers live in src/dom.ts. Each component is src/{name}.ts and registers its own window listeners. src/index.ts only imports every component so import "monochrome" still lights up the page. Components do not import each other.

Why the core looks weird (and should stay weird)

Six architectural choices that explain the shape of the library. Each looks odd at a glance and each has a specific reason. Don't "fix" them.

Read the full file on GitHub · 636 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. today Changed · +48 lines · +644 tokens per session ce2e146e4f2b
  2. 2d ago Changed · -6 lines · -126 tokens per session a3bc0e035e7c
  3. 6d 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 (132 stars, last pushed yesterday), licensed MIT. It adds 7,729 tokens to every session, about $0.0386 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.