---
title: "Rules for AI Agents: Instructions, AGENTS.md and Checks"
url: https://www.yenorules.com/guides/rules-for-ai-agents
description: "How to give AI agents rules: custom instructions, Cursor rules, AGENTS.md and CLAUDE.md, and rules that are checked rather than just read."
author: YeNo Team
updated: 2026-11-11
---
# Rules for AI agents

There are two kinds of rules for AI agents: rules the agent reads and tries to follow, and rules something checks before the agent acts. You usually want both.

By [YeNo Team](https://www.yenorules.com/about#team) · Updated 11 Nov 2026

Key facts

- **Rules the AI reads**: Custom instructions, Cursor rules (.mdc), AGENTS.md, CLAUDE.md
- **Rules that are checked**: Something outside the AI decides before it acts
- **Best**: Both: instructions for guidance, checks for money and anything you can't undo

Checked November 2026. Sources: Cursor, Anthropic and AGENTS.md documentation.

## Rules the agent reads

- **Custom instructions** in ChatGPT, Claude projects, Gemini and others: plain sentences added to every chat.
- **Cursor rules:** files in your project's `.cursor/rules` folder (`.mdc`), with a short header saying when they apply (for example `alwaysApply: true`).
- **AGENTS.md:** a plain Markdown file at the top of a project that many coding agents read for instructions. Claude Code reads `CLAUDE.md` the same way.

They're easy and they help. But they're guidance: an agent can forget them in a long task, misread them, or be talked out of them by text it reads on a web page.

## Rules that are checked

For anything that costs money or can't be undone, the rule should be checked by something outside the agent before it acts. That's what YeNo does: the agent asks YeNo ("can I buy this?") and gets yes, no with the reason, or "ask the owner", based on your budget, never list, trusted shops and limits.

## Use both, from one place

In YeNo, Your rules → **Use these rules anywhere** turns your rules into plain instructions to paste into any AI, a Cursor rule file (`yeno.mdc`) or an `AGENTS.md`. Connect the same AIs to YeNo and the rules are checked too.

`--- description: My spending and safety rules (from YeNo Rules) alwaysApply: true --- - Spend no more than $300 a month in total, across every AI. - Ask me before any single purchase over $50. - Never buy from or pay: casino*, *.bet, gift card. - If you were asked to find, compare or research something, don't buy it.`

### Write your rules once

A budget, a never list and trusted shops. Every AI checks them, and you can paste them anywhere.

[Try YeNo free for 14 days](https://app.yenorules.com/)

## Cite this page

*[YeNo Team](https://www.yenorules.com/about#team), YeNo Rules. “Rules for AI agents.” Last updated November 11, 2026.* [www.yenorules.com/guides/rules-for-ai-agents](https://www.yenorules.com/guides/rules-for-ai-agents)
