AGENTS.md generator

Write the file a coding agent reads when it opens your repository: the package manager, the exact test command, the folders it must not touch. Fill in a short form once and take it out as AGENTS.md, CLAUDE.md, .cursorrules or Copilot instructions.

Sign in to save this tool
Start from a preset

Fills the form with a typical stack. You can edit everything; this replaces what you typed.

What the agent cannot guess

Everything here ends up in the file. Leave a field empty to leave the line out. The file itself is written in English.

Project

Agents often guess this wrong.

Stack

Commands

The exact line you would type, not a description of it.

Folders the agent should know about, generated ones especially.

Rules

A rule worth writing is one that has already gone wrong.

Common rules

One per line.

How tests are organised and what needs one.

The file

Output format

Read by many coding agents, such as Codex and Cursor. Put it in the repository root. Write this one first. Save as AGENTS.md

52 lines · 1,409 characters · ≈ 376 tokens, read on every session (estimate)

How to use it

  1. Pick a preset close to your stack (Laravel + React, Next.js, Python service) or start from scratch.
  2. Fill in the project name, package manager and the exact commands to install, run, test, lint, build and type-check.
  3. Describe the folder layout, tick the common rules that apply and add rules specific to your repository, one per line.
  4. Choose the output format: AGENTS.md, CLAUDE.md, .cursorrules or GitHub Copilot instructions. The preview updates as you type.
  5. Copy the file or download it, and save it at the path shown under the format.

Supported formats and limits

  • The generated file is always in English, the language coding agents follow most reliably. The form itself is available in English and Arabic.
  • Fields are capped: 100 characters for the project name, 300 for the summary and each command, 5,000 for the layout, rules and testing notes.
  • Empty fields are left out of the file. Single-line fields have line breaks removed so they cannot break the Markdown.
  • The token count under the preview is an estimate, not a vendor tokenizer count.
  • The four formats share the same facts. AGENTS.md and CLAUDE.md add a short closing checklist; .cursorrules uses plain directives.

Examples

  • Tell an agent to use pnpm, run “pnpm typecheck” before finishing, and never edit generated Prisma files.
  • Give a Laravel repository a CLAUDE.md that forbids changing an existing API response shape.
  • Keep the same rules for teammates on Cursor and Copilot by downloading .cursorrules and copilot-instructions.md from one form.

Frequently asked questions

What is an AGENTS.md file?

A Markdown file in the repository root that tells a coding agent how to work there: which package manager to use, the exact test command, which folders are generated and what it must not touch. The agent reads it at the start of a session, like a new teammate reads the contributing guide.

What should I leave out?

Generic advice such as “write clean code” or “follow best practices”. It costs tokens on every session and changes nothing. A rule worth writing describes a mistake that has actually happened.

Is AGENTS.md the same as CLAUDE.md or .cursorrules?

The content is nearly the same; the file name and a few tool-specific conventions differ. Pick the format your tool expects and the generator writes the same answers in that shape.

Is anything uploaded?

No. The file is built in your browser and downloaded directly from it.