🛠️Agent Instruction File
Also known as AGENTS.md, Agent Rules File, Project Instructions File
A file with the house rules for AI agents in your code.
Think of it like
Think of it like a note on the fridge for a babysitter. It lists the house rules.
Example
Emma's project has a file with four house rules, from running the tests to leaving one folder alone. Her agent follows them in every task. Some tools call it AGENTS.md, and others CLAUDE.md.
Why it matters
You stop typing the same rules in every chat. The agent reads them from the file each time.
Definition
Example code
markdown
# Project notes for agents
- Run `npm test` before you say a task is done.
- Use two spaces, not tabs.
- Never edit files in `generated/`.
- Ask before adding a new library.Common mistake
Key takeaways
- 1House rules. How to work here.
- 2Read every task. No need to repeat.
- 3Keep it short. Only what matters.