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 Jude Eric ·
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/rulesfolder (.mdc), with a short header saying when they apply (for examplealwaysApply: true). - AGENTS.md: a plain Markdown file at the top of a project that many coding agents read for instructions. Claude Code reads
CLAUDE.mdthe 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 daysCite this page
Jude Eric, YeNo Rules. “Rules for AI agents.” Last updated . www.yenorules.com/guides/rules-for-ai-agents