react-nprogress AGENTS.md

Project instructions for coding agents working on a TypeScript React library that provides a slim progress bar's logic. They describe the project, commands, coding standards, and comment rules.

In plain words
What is it for?
Use them when developing, testing, formatting, building, or reviewing the react-nprogress library.
Why use it?
They give agents the project-specific rules they need before changing code, reducing guesswork and inconsistent edits.

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

Made for: Codex, OpenCode.

Per session 1,896 This file is loaded in full into every session.
When invoked 1,896 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.01896 $0.01896
Opus 5 $0.00948 $0.00948
Sonnet 5 $0.00379 $0.00379
Haiku 4.5 $0.00190 $0.00190

Measured 2d ago against content hash 5861816db94a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

react-nprogress 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 2d 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 · 189 lines

How it starts

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

Agent Instructions for react-nprogress

Keep these instructions concise. Only add information here that meaningfully changes agent behaviour and cannot be inferred from the codebase or tooling.

Project

TypeScript React library providing a slim progress bar primitive via two patterns: useNProgress hook and NProgress render-props component. Exports logic only, not rendering. All exports go through src/index.tsx. Types live in src/types.ts. There are no runtime dependencies: React and React DOM are peers.

Key Commands

npm test          # full suite: format and type checks, lint, build, size
                  # gate, then every test:* script
npm run build     # clean, then bundle with tsdown; the postbuild hook runs
                  # publint and arethetypeswrong over the packed tarball
npm run test:src  # source-only tests, the loop to use while developing
npm run format    # fix lint and formatting

Code Standards

Comments

  • Use // line comments only, never /* */ or /** */
  • Explain why, not what; wrap at 80 characters
  • End every comment with a full stop, even single-line comments

Language

Use New Zealand English in all user-facing text, variable names, and comments (e.g. "colour", "behaviour", "organisation"). Standardised API names (color, textAlign) are fixed: leave them unchanged.

const progressColour = '#0066cc'
const centredLayout = { textAlign: 'center' } // API name stays 'center'

Commits

Subject line (max 50 chars)

Body wrapped at 72 chars. Present tense, imperative mood. Capitalise
subject, no trailing period, blank line between subject and body.

Dependencies

Managed by Renovate (config:js-lib preset):

  • devDependencies: pinned exact versions (no ^ or ~)
  • dependencies: caret ranges (^)
  • peerDependencies: explicit OR ranges (e.g. ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0)
  • Do not add allowedVersions to renovate.json without a documented reason

Read the full file on GitHub · 189 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. 2d ago First seen · 189 lines · 1,896 tokens per session scan A 5861816db94a

Subscribe to this mod's changes

react-nprogress AGENTS.md is an instructions file published in the GitHub repository tanem/react-nprogress (464 stars, last pushed 2d ago), licensed MIT. It adds 1,896 tokens to every session, about $0.0095 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.