Adapt
Fill in AGENTS.md with verified, project-specific facts: what the project is, its stack, the commands that build, test, and lint it, its conventions, and its architecture.
Workflow
- Read before editing. Read the current
AGENTS.md, any ancestor guidance, and the nestedAGENTS.mdfiles the edit affects. Keep intentional project guidance: architecture, commands, conventions, safety rules, and custom workflows. - Analyze the project. Read manifests and task runners (
package.json,Cargo.toml,go.mod,pyproject.toml,Makefile,justfile, CI workflows), linter and formatter configs, and test layout. - Verify, then write. Run or inspect each command before documenting it. Fill placeholders and fix stale facts; prefer pointers to canonical docs over copied inventories or file trees.
- Keep the agent-work section current. It should say to keep self-contained work in the conversation, create a work item when people need to review direction or the work must outlive the conversation, and follow
.agents/work/AGENTS.mdfor the rest. Replace older generic dot-agents text with that short section: work-item file trees or artifact lists (prd.md,progress.md,decisions/,plans/,handoff-*.md), copied task-field formats, workflow diagrams, and references tofeature-planning,tmux, mandatory plans, or mandatory handoffs. Leave project-specific workflows alone. - Report what changed, which commands you verified, and any section you left unchanged because its intent was unclear.
Example
## Overview
my-app - A Next.js web application with a PostgreSQL backend.
## Tech Stack
- TypeScript, Next.js 14, PostgreSQL with Prisma, Jest and Playwright
## Commands
pnpm install # install
pnpm dev # develop
pnpm test # unit tests
pnpm test:e2e # browser tests
pnpm lint # lint and format check
## Conventions
- kebab-case file names; components in `src/components/`; API routes in `src/app/api/`