What is an instructions file for an AI tool?
An instructions file is a note in your product’s folder that your AI tool reads when a chat starts. Claude Code reads CLAUDE.md, and Codex and Cursor read AGENTS.md.
An example
Yours might say: “Explain things in plain words. Run the site with npm run dev to check a change.” Then you don’t have to repeat it in every new chat.
Where you’ll meet it
- Write a short CLAUDE.md · How to use Claude Code
- Write a short AGENTS.md · How to use Codex
- Write a short AGENTS.md · How to use Cursor
- What’s the fastest way to start working with an AI tool? · Working with an AI agent
- Claude Code, Codex or Cursor: which AI tool fits me? · Working with an AI agent
- What changes about working with an AI tool as my product grows? · Working with an AI agent
- How does an AI tool like Claude Code work underneath? · Working with an AI agent
Related tools
- Claude Code · Ask Claude Code to follow a problem through your project files, explain what it finds, and make a fix you can try.
- Codex · Give Codex a task in your project, such as adding a search box. It can edit the files and run checks, then show you the changes.
- Cursor · Edit code and ask questions in the same window. In Cursor, you can point to a file or a few lines and see the edits the AI suggests.