react-starter-kit: Instructions file for Codex

AGENTS.md

react-starter-kit AGENTS.md is an instructions file for Codex, OpenCode from kriasoft/react-starter-kit. It costs 1,409 tokens per session, scanned A, original, MIT.

Project-specific instructions for working on a web application split across several related packages, including its frontend, API, email templates, database, infrastructure, and documentation.

In plain words
What is it for?
Use them when changing features, running database commands, checking builds, or working across this monorepo—a repository that contains multiple connected applications and shared packages.
Why use it?
They give a coding agent the project’s layout, tools, commands, and runtime limits so it can make changes that fit the existing codebase.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is kriasoft/react-starter-kit's own configuration. It tells Codex and OpenCode how to work on react-starter-kit 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 react-starter-kit configures →

About the project

React Starter Kit is a full-stack monorepo template for building SaaS web applications with React, TypeScript, tRPC, and Cloudflare Workers. A monorepo keeps related applications and packages in one repository, while the template provides frontend, backend, authentication, billing, database, and development-tool foundations. The catalogue instructions, skills, and command help developers work with this starter kit.

kriasoft/react-starter-kit · 23,707 stars · on GitHub · reactstarter.com

Reuse

Borrowing it

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

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 react-starter-kit AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/kriasoft/react-starter-kit/agents-md"><img src="https://agentmods.dev/badge/instructions/kriasoft/react-starter-kit/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,409 This file is loaded in full into every session.
When invoked 1,409 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.01409 $0.01409
Opus 5.5 $0.00564 $0.00564
Sonnet 5.5 $0.00282 $0.00282
Haiku 4.5 $0.00141 $0.00141

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

Security

Grade A, and why

react-starter-kit 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 1mo 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 · 82 lines

How it starts

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

Monorepo Structure

  • apps/web/ – Astro marketing site, served by an edge worker that also routes traffic to the app/api workers via service bindings
  • apps/app/ – Main SPA (React, TanStack Router file-based routing)
  • apps/api/ – API server (Hono + tRPC + Better Auth)
  • apps/email/ – React Email templates (built before API dev server starts)
  • packages/ui/ – shadcn/ui components (new-york style)
  • packages/core/ – Shared utilities
  • db/ – Drizzle ORM schemas and migrations (Neon PostgreSQL)
  • infra/ – Terraform (Hyperdrive and optional R2 storage; Wrangler owns Workers and DNS)
  • docs/ – VitePress docs; docs/adr/ for architecture decision records

Tech Stack

  • Toolchain: Bun >=1.4.0 (package manager, scripts, local API server), TypeScript 7.0 (native compiler), Oxlint + Oxfmt, ESM ("type": "module")
  • Production runtime: Cloudflare Workers (workerd) – not Bun. Code that ships must run on Workers APIs.
  • Frontend: React 19, TanStack Router, TanStack Query, Jotai, shadcn/ui (new-york), Tailwind CSS v4
  • Backend: Hono, tRPC 11, Better Auth (email OTP, passkey, Google OAuth, organizations)
  • Database: Neon PostgreSQL, Drizzle ORM (snake_case casing), Cloudflare Hyperdrive
  • Email: React Email, Resend
  • Testing: Vitest, Happy DOM, PGlite (in-process Postgres, no service to start)
  • Deployment: Cloudflare Workers (Wrangler), Terraform

Commands

bun dev                        # Start web + api + app concurrently
bun run build                  # Build email, web, api, and app workspaces
bun run test                   # Vitest (watch mode; --run for single run)
bun lint                       # Oxlint
bun run format:check           # Oxfmt (bun run format writes)
bun typecheck                  # tsc --build (builds apps/email for its types)
bun infra:check                # Terraform fmt + validate, no credentials or state
bun ui:add <component>         # Add shadcn/ui component to packages/ui
bun deploy:{staging,production} # Build and deploy api → app → web; no migrations

# Per-app: bun {web,app,api}:{dev,build,deploy}; test for app/api, check for web
# Database: bun db:{push,generate,migrate,studio,seed,export}
#   :staging / :production on migrate, studio, export; seed stops at :staging;
#   generate is local-only, and push refuses a non-local database

Read the full file on GitHub · 82 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. 1mo ago Changed · +5 lines · +90 tokens per session d1db06336071
  2. 2mo ago First seen · 77 lines · 1,319 tokens per session scan A 3dc195ff07db

Subscribe to this mod's changes

react-starter-kit AGENTS.md is an instructions file published in the GitHub repository kriasoft/react-starter-kit (23,707 stars, last pushed 4d ago), licensed MIT. It adds 1,409 tokens to every session, about $0.0056 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

react-starter-kit AGENTS.md compared with instructions from other repositories

react-starter-kit AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
react-starter-kit AGENTS.mdkriasoft/react-starter-kitInstructions file24k4d agoMITA1,409Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode