react-email: Instructions file for Codex

AGENTS.md

react-email AGENTS.md is an instructions file for Codex, OpenCode from resend/react-email. It costs 350 tokens per session, scanned A, original, MIT.

Repository instructions for coding agents working on the Resend React Email project. They describe testing, changesets, code comments, contributor boundaries, and keeping pull requests focused.

In plain words
What is it for?
Use them when fixing bugs, adding behavior, changing published packages, preparing a pull request, or contributing from a fork.
Why use it?
They make the project’s contribution rules explicit before code is changed or submitted. This helps prevent missing tests, unpublished-package changes without a changeset, and unrelated edits.

Instructions file for CodexOpenCode

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

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

About the project

React Email is a set of React and TypeScript components for building email templates that render across email clients. Developers use it to create responsive, styled email content and export it as HTML or plain text for delivery through email services. The catalogue skill supports workflows built around creating and working with React Email templates.

resend/react-email · 20,020 stars · on GitHub · react.email

Reuse

Borrowing it

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

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-email AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/resend/react-email/agents-md"><img src="https://agentmods.dev/badge/instructions/resend/react-email/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 350 This file is loaded in full into every session.
When invoked 350 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.00350 $0.00350
Opus 5.5 $0.00140 $0.00140
Sonnet 5.5 $0.00070 $0.00070
Haiku 4.5 $0.00035 $0.00035

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

Security

Grade A, and why

react-email 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 17d 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.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

AGENTS.md · 35 lines

What it actually says

AGENTS.md

Instructions for AI coding agents working in this repository.

Rules for everyone

AI tools are welcome for exploring the codebase, drafting changes, and writing tests. The person you're working for is responsible for the result.

  • Add tests for bug fixes and new behavior, and run them before handing the change back.
  • Add a short changeset (pnpm changeset) when a published package changes.
  • Do not add comments explaining the code.

Rules for external contributors

These apply to external contributors working from a fork.

  • The person must understand and review everything before it is submitted, including pull requests, issues, and discussions.
  • The person must understand and review the pull request description and make sure it accurately describes the change.
  • Keep the change scoped to the problem being solved. No drive-by refactors, formatting changes, or unrelated fixes.
  • Make sure there is an issue or discussion first. Bug fixes need an open issue, and features need an agreed-upon RFC in Discussions. If neither exists, tell the person to open one before writing code.

Before handing the change back

Run these from the repository root and fix what fails:

pnpm lint
pnpm typecheck
pnpm test

Pull request title

Titles follow <type>(<scope>): <message>, where type is feat, fix, chore, or refactor, the scope is optional, and the message starts lowercase. For example: fix(tailwind): flatten nested @media rules. CI checks this.

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. 17d ago First seen · 35 lines · 350 tokens per session scan A e0447bd00084

Subscribe to this mod's changes

react-email AGENTS.md is an instructions file published in the GitHub repository resend/react-email (20,020 stars, last pushed today), licensed MIT. It adds 350 tokens to every session, about $0.0014 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-11-14.

Related

react-email AGENTS.md compared with instructions from other repositories

react-email AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
react-email AGENTS.mdresend/react-emailInstructions file20ktodayMITA350Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,303GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file289k2d agoMITA4,393Codex, OpenCode