Project rules file

Store standing instructions for the tool in a file or setting that it reads automatically in every session for that project.

What it is

A project rules file is a plain text file that sits alongside your code and tells an AI coding tool how your project works. It might say which language and frameworks to use, how to name things, which commands run the tests, and what the tool must never touch. The tool reads it automatically at the start of every session, so nobody has to paste the same instructions into each new chat. Claude Code and Cursor are examples of tools that offer this.

Why it matters

AI coding tools forget everything between sessions. Without a rules file, the same corrections get repeated every day, and different team members get different results from the same tool. A shared file keeps the output consistent and lets a new colleague get the same behaviour on day one. If you only use the tool for one-off scripts, you can skip it. If several people work on one codebase for months, it saves a lot of rework.

What to check

  • Ask where the file lives and whether it is stored in the project, so it travels with the code and is shared by the whole team.
  • Test it by adding one clear rule, such as a naming convention, and check that a fresh session follows it without being reminded.
  • Find out whether rules can be set per folder or per user as well as per project.
  • Check whether there is a size limit, since very long rule files can be partly ignored.

Tools with Project rules file

  • Cursor logo
    ToolValue creation
    An AI code editor with coding agents that write, edit and review code across your repositories for product teams.

    AI coding

    From $20/moFree plan
  • Claude Code logo
    ToolValue creation
    Anthropic's coding agent that reads your codebase, edits files and runs commands from your terminal, editor or browser.

    AI coding

    From $16.67/mo yearly

In AI coding ranking order; the number is each tool's place.