react-native-chat: Instructions file for Codex

AGENTS.md

react-native-chat AGENTS.md is an instructions file for Codex, OpenCode from kesha-antonov/react-native-chat. It costs 5,719 tokens per session, scanned C, original, MIT.

A set of instructions for coding agents working on a React Native and web chat component library. It explains the package setup, its separate example app, required tools, and common checks.

In plain words
What is it for?
Use it when developing the chat library, running its tests or type checks, linting it, or working with the separate example application.
Why use it?
It clarifies that the example app is a separate project rather than part of a Yarn workspace, so dependencies and commands are run in the right directory. It also records the expected Node, Yarn, test, type-check, and lint setup.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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-native-chat AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/kesha-antonov/react-native-chat/agents-md"><img src="https://agentmods.dev/badge/instructions/kesha-antonov/react-native-chat/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5,719 This file is loaded in full into every session.
When invoked 5,719 The same file — it is already loaded in full.
Security scan C 2 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.05719 $0.05719
Opus 5.5 $0.02288 $0.02288
Sonnet 5.5 $0.01144 $0.01144
Haiku 4.5 $0.00572 $0.00572

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

Security

Grade C, and why

react-native-chat AGENTS.md scanned grade C with 2 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 3d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

| `yarn build` | `rm -rf lib`, `tsc` for the declarations, then Babel with the React Compiler (`babel.build.cjs`) for the JavaScript - emits `lib/`, which is gitignored and is what gets published. The build fails if the

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

`curl 'localhost:<n>/node_modules/expo-router/entry.bundle?platform=android&dev=true' -o /dev/null`.
AGENTS.md · 366 lines

How it starts

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

AGENTS.md

Guidance for AI coding agents working inside this repository.

If you are instead helping someone use this library in their own app, read llms.txt - it is a compact integration guide and does not require the checkout.

What this is

@kesha-antonov/react-native-chat is a chat UI component library for React Native and Web - a maintained continuation of react-native-gifted-chat. It ships as compiled JavaScript plus type definitions; there is no native code in this package.

Setup

Requires Node >= 20 and Yarn 4 (pinned via packageManager; use yarn, never npm).

yarn install          # library
cd example && yarn install && cd ..   # example app - a SEPARATE yarn project

The repo is not a Yarn workspace. example/ has its own package.json, its own yarn.lock, and its own node_modules, and depends on the library via link:... Installing at the root does not install the example, and vice versa.

Commands

Run these from the repo root:

Command What it does
yarn test Jest suite, run under TZ=Europe/Paris (snapshots contain formatted times, so the timezone is pinned). Must stay green.
yarn test:watch / yarn test:coverage Same suite, watching or with coverage.
yarn typecheck tsc --noEmit over src/. Must stay clean.
yarn lint ESLint over both src/ and example/. Must report 0 errors and 0 warnings.
yarn lint:fix Auto-fix what ESLint can.
yarn build rm -rf lib, tsc for the declarations, then Babel with the React Compiler (babel.build.cjs) for the JavaScript - emits lib/, which is gitignored and is what gets published. The build fails if the compiler has to skip any component.
yarn prepublishOnly lint + test + build, i.e. the full gate.

Inside example/: yarn lint and yarn typecheck cover the example app on its own. Note that the root yarn lint also lints example/, under stricter rules than the example's own expo lint - so a change that passes cd example && yarn lint can still fail at the root. Always run the root yarn lint before you finish.

Read the full file on GitHub · 366 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. 3d ago Changed · +117 lines · +2,263 tokens per session fe65af1c1475
  2. 2mo ago Changed · +98 lines · +1,669 tokens per session f9de3fb4d0e5
  3. 2mo ago First seen · 151 lines · 1,787 tokens per session scan C b9581d5027b6

Subscribe to this mod's changes

react-native-chat AGENTS.md is an instructions file published in the GitHub repository kesha-antonov/react-native-chat (77 stars, last pushed 4d ago), licensed MIT. It adds 5,719 tokens to every session, about $0.0229 per session on Opus 5.5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

react-native-chat AGENTS.md compared with instructions from other repositories

react-native-chat AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
react-native-chat AGENTS.mdkesha-antonov/react-native-chatInstructions file774d agoMITC5,719Codex, 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