patternfly-react-seed AGENTS.md

Repository instructions for a PatternFly React seed project, a starter application built with React and TypeScript. They describe the project's tools, layout, and checks for completed changes.

In plain words
What is it for?
Use them when changing this React application. They point to the commands for TypeScript checking, linting, unit tests, and test coverage, and explain that the project uses Webpack, React Router, PatternFly, and Vitest.
Why use it?
They give coding agents the local context needed to modify the project safely and catch type, lint, or test errors before work is considered finished.

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/patternfly/patternfly-react-seed/agents-md
Clone the repo
git clone --depth 1 https://github.com/patternfly/patternfly-react-seed

Made for: Codex, OpenCode.

Per session 916 This file is loaded in full into every session.
When invoked 916 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.00916 $0.00916
Opus 5 $0.00458 $0.00458
Sonnet 5 $0.00183 $0.00183
Haiku 4.5 $0.00092 $0.00092

Measured yesterday against content hash ded41c34fd7b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

patternfly-react-seed 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 yesterday.

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

How it starts

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

Agent instructions (PatternFly React Seed)

This file helps humans and coding agents work safely in this repository. It summarizes how the app is built, how to validate changes, and where code lives.

What this project is

Official PatternFly React seed: a small React + TypeScript app with PatternFly layout, React Router, Webpack, and Vitest. It is a reference for wiring PatternFly into a real app, not a component library.

Stack

  • React 18, TypeScript (strict), PatternFly v6 (@patternfly/react-core, @patternfly/react-icons, @patternfly/react-styles)
  • Bundler: Webpack (webpack.*.js); dev server: webpack-dev-server
  • Tests: Vitest + Testing Library (vitest.config.ts, src/test/setup.ts) — not Jest
  • Lint: ESLint on ./src/ (.tsx, .js); unused imports and variables are errors

Commands to run before you consider work done

From the repository root, after npm install:

Command Purpose
npm run type-check TypeScript (tsc --noEmit)
npm run lint ESLint on src/
npm test Vitest unit tests
npm run test:coverage Vitest with coverage (requires devDependency @vitest/coverage-v8)
npm run ci-checks Same as type-check + lint + test:coverage (run this before merging when possible)

Local development:

Command Purpose
npm run start:dev Webpack dev server
npm run build Production build into dist/

Repository layout

  • src/app/ — Application shell: routes, layout, feature pages (Dashboard, Settings, Support, NotFound)
  • src/app/AppLayout/ — Chrome (header/sidebar)
  • src/component/ — Shared or prototype components
  • src/index.tsx — Entry; dev-only react-axe wiring when not in production
  • webpack.common.js — Shared Webpack config (aliases, loaders)
  • vitest.config.ts — Test runner and @app alias for tests

Path aliases

  • @app/*src/app/* (Webpack and Vitest)
  • @assets/* → PatternFly packaged assets under node_modules/@patternfly/react-core/dist/styles/assets/*

Read the full file on GitHub · 76 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. yesterday First seen · 76 lines · 916 tokens per session scan A ded41c34fd7b

Subscribe to this mod's changes

patternfly-react-seed AGENTS.md is an instructions file published in the GitHub repository patternfly/patternfly-react-seed (97 stars, last pushed 21d ago), licensed MIT. It adds 916 tokens to every session, about $0.0046 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.