A lightweight baseline prevents every coding agent from inventing its own workflow.
What to put in AGENTS.md
Start with the rules that are stable across the repository:
- how to install dependencies and run tests
- the expected Node.js version and package manager
- where application code, tests, and generated files live
- the commands that must pass before opening a pull request
- boundaries for secrets, migrations, and production changes
Keep tool-specific instructions in their native files. For example, use scoped Cursor rules for editor behavior and a short CLAUDE.md pointer when Claude Code needs extra context. This keeps the shared baseline readable and makes the rules easy to review.
A practical review loop
- Ask the agent to summarize the relevant rules before it edits.
- Make the smallest change that satisfies the task.
- Run the repository checks listed in AGENTS.md.
- Review the diff, including generated files and dependency changes.
- Update the rule only when the workflow truly changed.
Vildanden's free Agent Config sample includes a ready-to-adapt Next.js baseline, Cursor rules, and a CLAUDE.md pointer:
https://fairly-charlie-907.rehost.page/
The goal is not more prompt text. It is a small, explicit contract that keeps the agent's work scoped to the repository.
Top comments (0)