TaskPrio

AGENTS.md

AGENTS.md is the open, tool-agnostic file that tells AI coding agents how to work in your repo — stack, commands, conventions, what not to do, definition of done. It lives at your repo root and is read by 28+ tools, so you write the rules once instead of per tool.

Generate your AGENTS.md free →

What is AGENTS.md?

A plain-Markdown file at the root of your repository — no required frontmatter, no schema. Its whole job is to give a coding agent the context a new teammate would need: what the project is, how to run it, the conventions, the landmines, and what "done" means. Because the format is vendor-neutral, agents converged on it — OpenAI Codex, Cursor, Aider, Cline, Continue, Goose, Jules, Zed and more read it directly.

What goes in an AGENTS.md file?

AGENTS.md example

A clean, lean example you can adapt:

# Acme Web — agent guide

> Senior full-stack engineer. Small, reviewable diffs. Tests with every change.

## Stack
Next.js 15 (App Router) · TypeScript · Tailwind · Drizzle ORM · Postgres (Neon)

## Commands
```
dev:    pnpm dev
build:  pnpm build
test:   pnpm test
lint:   pnpm lint && pnpm typecheck
```

## Conventions
- Server components by default; add "use client" only when needed.
- All DB access goes through src/db/ (Drizzle) — never raw SQL in routes.
- Match the surrounding file's style; don't reformat unrelated code.

## Don't
- Don't add dependencies without asking.
- Don't edit generated files in src/db/migrations/.
- Don't commit secrets — use .env.local (see .env.example).

## Definition of done
- pnpm lint + pnpm test pass.
- New UI works at 375px mobile width.

Make one for your project →

Best practices

Where do I put it?

At the repo root. In a monorepo you can also drop an AGENTS.md in a subdirectory — the file nearest to the code being edited wins, so each package layers its own rules over the root.

AGENTS.md and the other files

Same guidance, different filenames per tool:

FileTool
AGENTS.mdCodex, Cursor, Aider, Cline, Continue, Goose, Zed… (28+)
CLAUDE.mdClaude Code — see AGENTS.md vs CLAUDE.md
.cursor/rules/*.mdcCursor (glob-scoped)
.github/copilot-instructions.mdGitHub Copilot
GEMINI.mdGemini CLI

Generate all of them, free

Fill in your project's rules once and get AGENTS.md + CLAUDE.md + Cursor + Copilot + Gemini, correctly formatted, with a token-budget warning so they stay lean. No signup.

Open the Agent Memory Compiler →

Keep it in sync with your work

Generated files drift the moment your project changes. In TaskPrio your rules live in one place and your agents pull them over MCP with get_next_task — the memory and the task queue become one source of truth. Edit once; every agent stays current. See the MCP queue →

FAQ

What is AGENTS.md?

An open, tool-agnostic Markdown file at your repo root telling AI coding agents how to work — stack, commands, conventions, don't-dos, definition of done. Read by 28+ tools.

What goes in it?

Overview, stack, commands, conventions, don't-dos, definition of done — kept lean. No required schema.

Where does it go?

Repo root; subdirectory files override for that subtree (nearest-file-wins).

Generate your AGENTS.md →   AGENTS.md vs CLAUDE.md →