ui-components: Instructions file for Codex

AGENTS.md

ui-components AGENTS.md is an instructions file for Codex, OpenCode from starc007/ui-components. It costs 11,857 tokens per session, scanned A, original, MIT.

Project instructions for beUI, a React component library whose ready-to-copy interface components are published through a shadcn-compatible registry.

In plain words
What is it for?
Use them when adding or changing motion components, previews, registry entries, documentation, or site code.
Why use it?
They explain the project layout, required checks, and publishing rules so component changes do not break the library or its documentation site.

Instructions file for CodexOpenCode

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

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

About the project

beUI is a React and Next.js component library whose animated interface components come with previews, examples, source code, and shadcn installation commands. Developers copy the components into their own applications and keep the code there. Catalogue add-ons help coding agents find and use existing beUI components.

starc007/ui-components · 1,926 stars · on GitHub · beui.dev

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/starc007/ui-components/agents-md"><img src="https://agentmods.dev/badge/instructions/starc007/ui-components/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11,857 This file is loaded in full into every session.
When invoked 11,857 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.11857 $0.11857
Opus 5.5 $0.04743 $0.04743
Sonnet 5.5 $0.02371 $0.02371
Haiku 4.5 $0.01186 $0.01186

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

Security

Grade A, and why

ui-components 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 · 224 lines

How it starts

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

beUI v2 — agent guide

React motion component library plus its docs site, distributed as copy-paste source via shadcn-compatible registry endpoints. Stack: Next.js 15 (App Router), React 19, Tailwind CSS 4, motion (framer-motion) v11, TypeScript strict, Bun, Biome. Live at beui.dev.

Commands

bun install
bun run dev             # local site
bun run typecheck       # tsc --noEmit
bun run lint            # biome
bun run check:registry  # every registry component can publish its files
bun run check           # typecheck, lint, and registry validation
bun test                # accessibility tests only

Prefer typecheck + lint for quick verification. Do not start the dev server or run bun run build unless explicitly asked.

Testing policy

  • Keep the automated test suite accessibility-only. Do not add or restore general unit, interaction, calculation, snapshot, styling, or animation-timing tests unless the user explicitly requests them.
  • Keep accessibility audits in tests/a11y.test.tsx or focused tests/*.a11y.test.tsx files, using tests/setup.ts. Add coverage for meaningful accessible states, including open overlays where relevant; avoid duplicate cases.
  • Run bun run check and bun test before committing. TypeScript, lint, and registry validation remain required and are separate from the accessibility suite.
  • Verify changed interactions and visual behavior in the browser, including keyboard/focus behavior, touch where applicable, responsive layout, and reduced motion. Automated axe checks do not establish animation quality or complete accessibility. Report what was checked and any verification limits; the dev-server restriction above still applies.

Layout

  • components/motion/, components/charts/, and components/agents/ — the library. One file per component; multi-file widgets get a folder (swap/, button/, loading-states/).
  • components/previews/ — demo per component, registered in components/previews/index.tsx. Previews ship through the registry too. When an interactive preview uses internal demo helpers, set the registry entry's usageFile to a separate public composition so the Usage tab stays copyable.
  • components/app/ — site chrome (header, hero, dock, code blocks). Not part of the library.
  • lib/registry.ts — component catalog (slugs, files, examples). Five categories: motion (display name "Components", primitives), agents (AI and agent interface primitives), charts (data visualizations at /charts, with detail pages at /charts/<slug>), casino (games at /casino, with detail pages at /casino/<slug>), and blocks (composed widgets: swap, dynamic island, command palette, expandable action bar). Top-level sections are listed in TOP_LEVEL_CATEGORIES (lib/component-paths.ts). Blocks and casino emit registry:block shadcn items. Preview files live under components/previews/<category>/. lib/registry-server.ts builds registry items by following each file's @/ and relative imports and bundling everything it finds. Internal imports are therefore safe and encouraged; a component that imports @/lib/ease ships lib/ease.ts with it.
  • app/r/* — registry endpoints (shadcn items, raw source, index). beUI is listed in shadcn's official registry directory as the @beui namespace with URL template https://beui.dev/r/{name}.json — that path shape and existing install slugs are public contract; never break or rename them.
  • lib/ease.ts — all motion tokens.
  • scripts/check-registry.ts — validates the catalog.
  • lib/native/catalog.json — beUI Native (React Native) components and source, synced from the beui-native repo by bun scripts/sync-native.ts (never edit by hand). The same script uploads the showcase clips and posters to the beui-native R2 bucket, served from media.beui.dev with content-hashed names; don't add clips to public/. Native components have their own pages for search: /react-native lists them by group and /react-native/[slug] shows one (clip, Expo Go QR, CLI and manual install, its README, related native components), with its own metadata, JSON-LD, OG card (/api/og?native=) and sitemap entries (lib/native-seo.ts). A web component page with a native version links to it. The Web/React Native switch (components/app/docs/native/platform-switch.tsx), at the top of the right sidebar and inline below xl, navigates between a page's two URLs, falling back to the other platform's list; on /react-native pages the left sidebar lists native components by group (lib/native/nav.json). Agents read /native/r and /native/r/{slug} (lib/native-registry.ts), the llms.txt native section, and the MCP list_native_components and get_native_component tools.

Read the full file on GitHub · 224 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 · +7 lines · +569 tokens per session b3c728d664cd
  2. yesterday Changed · +2 lines · +394 tokens per session d3ef7831650d
  3. 5d ago Changed · +2 lines · +191 tokens per session 41400f2f7a51
  4. 9d ago Changed · +3 lines · +449 tokens per session 7202bba7a695
  5. 13d ago Changed · +1 lines · +135 tokens per session 5bdd686112b2
  6. 15d ago Changed · +1 lines · +223 tokens per session aebfadb1f4f4
  7. 17d ago Changed · +1 lines · +158 tokens per session 2190b50f38ae
  8. 18d ago Changed · +1 lines · +121 tokens per session 45068f982fb5
  9. 21d ago Changed · +1 lines · +316 tokens per session a8c91b55f3f4
  10. 23d ago First seen · 205 lines · 9,301 tokens per session scan A 6bd749e8271b

Subscribe to this mod's changes

ui-components AGENTS.md is an instructions file published in the GitHub repository starc007/ui-components (1,926 stars, last pushed yesterday), licensed MIT. It adds 11,857 tokens to every session, about $0.0474 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

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

ui-components AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ui-components AGENTS.mdstarc007/ui-componentsInstructions file1.9kyesterdayMITA11,857Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,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