Coral

AGENTS.md file builder

One file every coding agent reads. Pick your stack, set your commands, tick your rules, copy.

Runs in your browser. Nothing is sent anywhere.

1 · Your stack

Pick the closest one. It fills in commands and conventions you can change.

2 · The project

3 · Commands

Exact commands, so the agent doesn’t guess. Leave a line empty to skip it.

4 · How to work

5 · Never

Agents treat these files as guidance, not locks. To block a command for sure, use permissions or a hook: Claude Code hooks →

Your file

# Project

A Next.js app in TypeScript, using the App Router and pnpm.

## Commands

- Install: `pnpm install`
- Run locally: `pnpm dev`
- Test: `pnpm test`
- One test: `pnpm test -- path/to/file.test.ts`
- Lint: `pnpm lint`
- Type check: `pnpm tsc --noEmit`
- Build: `pnpm build`

## Layout

- `app/`: routes and pages
- `components/`: React components
- `lib/`: shared code, no React
- `public/`: static files

## How to work

- TypeScript strict mode. No `any`; use `unknown` and narrow it.
- Server Components by default. Add "use client" only for state, effects or browser APIs.
- Use pnpm, never npm or yarn.
- Match the style of the code around you: naming, comments, file layout.
- Keep changes small and focused on the task. Don't refactor what you weren't asked to.
- Add or update a test for every behavior you change.
- Before you say you’re done, run `pnpm test` and `pnpm lint`, and fix what fails.

## Never

- Never commit secrets, `.env` files or API keys.
- Never run `git push --force`, `git reset --hard` or delete a branch without asking.
- Never edit generated files or lockfiles by hand.
- Never delete, skip or weaken a test to make it pass.

37 of 200 lines · 1.1 of 32 KiB for Codex

Save it at the root of your repo. Codex, Cursor, Copilot and others read it. Claude Code reads it too when there’s no CLAUDE.md.

A link shares your stack and the boxes you ticked. What you type stays on this page.

Questions

What is AGENTS.md?

An open format for guiding coding agents: a Markdown README for agents at the root of your repo. No required fields. Commands, layout, conventions and what never to do are the usual sections.

Which agents read AGENTS.md?

Codex, Cursor, GitHub Copilot’s coding agent, opencode, Gemini CLI, Jules, Aider, Zed, Warp, Windsurf, Amp and more, per agents.md. Claude Code reads it too since v2.1.277, when there’s no CLAUDE.md.

How does Codex read AGENTS.md?

It reads ~/.codex/AGENTS.md first, then walks from your Git root down to the current folder, one file per folder, joined in that order. Closer files come later, so they win. AGENTS.override.md replaces AGENTS.md in its folder.

How long can AGENTS.md be for Codex?

Codex stops adding files once the total reaches project_doc_max_bytes, 32 KiB by default. Raise it in ~/.codex/config.toml, or split the file into folders.

AGENTS.md or CLAUDE.md?

If you use more than one agent, AGENTS.md. Add a CLAUDE.md that says @AGENTS.md so Claude Code reads the same file in every version, with Claude-only lines below the import.

How do I check what Codex loaded?

Ask it: codex --ask-for-approval never "Summarize the current instructions." From a subfolder, add --cd subdir to see which files are active there.

From agents.md, OpenAI’s Codex docs and Anthropic’s memory docs, November 2026.

Coral isn’t affiliated with OpenAI, Anthropic or the AGENTS.md project.