kernel-ui: Instructions file for Codex

AGENTS.md

kernel-ui AGENTS.md is an instructions file for Codex, OpenCode from kemiljk/kernel-ui. It costs 3,527 tokens per session, scanned A, original, MIT.

Development instructions for kernel-ui, a monorepo—a single repository containing several related packages—for a component library built with standard HTML elements. It covers project conventions and release requirements.

In plain words
What is it for?
Building components, organizing changes across the React, Elements, Styles, and CLI packages, and preparing pull requests for release.
Why use it?
It helps contributors follow the repository’s rules, including adding a Changeset when published packages change so releases are not missed.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/kemiljk/kernel-ui/agents-md"><img src="https://agentmods.dev/badge/instructions/kemiljk/kernel-ui/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,527 This file is loaded in full into every session.
When invoked 3,527 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.03527 $0.03527
Opus 5.5 $0.01411 $0.01411
Sonnet 5.5 $0.00705 $0.00705
Haiku 4.5 $0.00353 $0.00353

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

Security

Grade A, and why

kernel-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 19d 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 · 227 lines

How it starts

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

Working in this repo

This is a monorepo for a component library built on real semantic HTML. Read README.md for the project pitch. This file is operational guidance for anyone (human or agent) making changes here.

Release checklist for pull requests

Any PR that changes a publishable package under packages/react, packages/elements, packages/styles, or packages/cli must include a .changeset/<descriptive-name>.md file describing the affected package(s) and the release level (patch, minor, or major). Run bunx changeset to create it. Docs-only changes do not need a Changeset. CI enforces this rule; the only exception is the Changesets-generated Version Packages release PR.

When creating a PR, never leave the Changeset decision implicit: add the file or explicitly confirm that the PR is docs-only/non-publishable. A merged PR without a Changeset will not produce an npm or GitHub release.

For consuming the published packages, don't read this file — read packages/react/llms.txt or packages/elements/llms.txt instead; they're the API reference. This file is about building the library, not using it.

The one rule that matters most: build every component twice

Every component ships in both @kernelui-lib/react (packages/react/src/components/<Name>/) and @kernelui-lib/elements (packages/elements/src/components/<Name>/) — a React version and a framework-free Custom Element version, with matching visual design and equivalent props/attributes. Adding a component to only one package is an incomplete PR, not a smaller one. Before considering any new component done, grep both packages/react/src/index.ts and packages/elements/src/index.ts for its export.

Repo layout

  • packages/react — @kernelui-lib/react. Each component: <Name>.tsx + <Name>.module.css, exported from src/index.ts in shipping order (not alphabetical — new exports go at the end, before the polymorphic utils export block).
  • packages/elements — @kernelui-lib/elements. Each component: <Name>.ts (extends KernelElement from ../../base, registers via customElements.define) + <Name>.css, exported from src/index.ts. CSS class names use kernelClass("Name", "part"), which produces the exact same class names React's CSS Modules compile to (see packages/react/vite.config.ts's generateScopedName) — this is deliberate, so one set of component styles serves both packages.
  • packages/styles — @kernelui-lib/styles. Design tokens (tokens.css) and reset (reset.css). Both packages' components read tokens from here; never hardcode a color/spacing/radius value in a component's own CSS.
  • apps/docs — Astro docs site. Each component needs: an entry in packages/registry (re-exported by apps/docs/src/data/components.ts), a page at src/pages/components/<slug>.astro, and src/components/demos/<Name>Demo.tsx + <Name>Playground.tsx. Copy the structure of an existing page (text-field.astro/scroll-area.astro are good recent examples) rather than inventing a new layout.
  • packages/registry — shared component catalog consumed by docs, CLI, and LLM asset generation. Run bun run build there after changing entries.
  • packages/cli — @kernelui-lib/cli. Published integration CLI (kernel init, kernel doctor, kernel docs).

Read the full file on GitHub · 227 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. 19d ago Changed · +4 lines · +83 tokens per session 6803bde823e6
  2. 1mo ago Changed · +4 lines · +76 tokens per session c908cc5b2ab6
  3. 2mo ago First seen · 219 lines · 3,368 tokens per session scan A 4ceac615bd32

Subscribe to this mod's changes

kernel-ui AGENTS.md is an instructions file published in the GitHub repository kemiljk/kernel-ui (33 stars, last pushed 2d ago), licensed MIT. It adds 3,527 tokens to every session, about $0.0141 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

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

kernel-ui AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
kernel-ui AGENTS.mdkemiljk/kernel-uiInstructions file332d agoMITA3,527Codex, 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