Skip to content
Agents tracked: 258 Downloads (7d): 219M up 6.1% GitHub stars: 5.5M VS Code installs: 148M Releases (7d): 327 Agent status: 1 with issues Updated Oct 7, 2026

Amp: AGENTS.md location, format and template

Where Amp reads project instructions, whether it reads AGENTS.md, and what the format allows. From the official documentation, checked Oct 7, 2026. See also Amp: pricing, popularity and alternatives.

Project files

  • AGENTS.md in your folder and every parent up to your home folder
  • AGENTS.md in a subfolder once Amp reads a file there
  • Falls back to AGENT.md or CLAUDE.md in a folder without AGENTS.md

Global (all projects)

  • ~/.config/amp/AGENTS.md or ~/.config/AGENTS.md

AGENTS.md

✓ Native format.

Format and limits

  • @-mention files to include them (@doc/style.md, globs allowed); a mentioned file can declare globs: to load only for matching files.

Sources: ampcode.com/docs/customize/agents-md

Templates

AGENTS.md for a TypeScript projectAGENTS.md
# AGENTS.md

## Project
One paragraph: what this repository does and who uses it.

## Commands
- Install: `pnpm install`
- Dev server: `pnpm dev`
- Tests: `pnpm test` (run before you finish)
- Lint and types: `pnpm lint && pnpm typecheck`

## Layout
- `src/app/`: routes and pages
- `src/lib/`: shared logic, no UI code
- `tests/`: mirrors `src/`

## Conventions
- TypeScript strict mode; avoid `any`.
- Follow the patterns already in `src/` before adding new ones.
- Small, focused functions; name things for what they do.

## Boundaries
- Never read or edit `.env*` files or commit secrets.
- Ask before adding a dependency or changing a public API.

## Done means
Tests pass, lint is clean, and the change is explained in the PR description.
Nested AGENTS.md in a monorepopackages/api/AGENTS.md
# API package

Applies to everything under `packages/api/`, on top of the root AGENTS.md.

- Run `pnpm --filter api test` instead of the full test suite.
- Handlers live in `src/routes/`, one file per resource.
- Validate every request body with the schemas in `src/schemas/`.
- Database access only through `src/db/`; no raw SQL in handlers.

Written by AgentGid as a starting point; swap in your own commands and folders.

Other agents

All agents and the one-file setup →