Rules file

Also called AGENTS.md, CLAUDE.md, or project rules

A file in your project, such as AGENTS.md or CLAUDE.md, with standing instructions that an AI coding agent reads at the start of every task.

What is Rules file?

A rules file holds the instructions you would otherwise repeat in every prompt: the stack, how to run and test the app, naming and style conventions, and things to never do. Coding agents load it automatically, so every conversation starts from the same ground rules.

Tools look for different files. AGENTS.md is an open format that many agents read, including Codex, while Claude Code reads CLAUDE.md, and some editors keep rules in their own folder. Many tools also read a personal rules file in your home folder that applies to every project.

Keep it short and concrete. "Use Tailwind classes, never inline styles" works better than "write clean code." The file takes up room in the context window on every request, so cut rules the AI already follows and add one when you catch it repeating a mistake.

All terms

Context window

The amount of text an AI model can consider at once, including your messages, its replies, and the files it reads, measured in tokens.

Prompt

The instruction you give an AI model. In AI coding tools, the prompt describes what to build or change, and its detail shapes the result.

AI agent

An AI model that works toward a goal on its own by planning, using tools, checking the results, and repeating until the task is done.

MCP

The Model Context Protocol: an open standard that connects AI apps to outside tools and data, such as files, databases, and design apps.