How do I give Claude Code, Cursor or Copilot our business rules?
Updated · By Adam Polak, founder
Write the rules your team already knows into the instruction file each agent reads (CLAUDE.md for Claude Code, .cursor/rules for Cursor, .github/copilot-instructions.md for Copilot, or one AGENTS.md that all three read) as short plain-language rules, each with its source. Rules only someone else knows have to be captured first: RuleFoundry interviews that person, and your agent reads the finished rules, each linked to where it was said, through RuleFoundry's MCP server.
How to give an agent the rules
The file format matters less than what goes in it: rules, not raw notes, with their sources and the open questions marked.
- 1
Separate what you know from what only someone else knows
Rules the team already agrees on can go straight into an instruction file. Rules that live in one person's head, especially the exceptions, have to be asked for first; otherwise the agent may fill the gap with a plausible guess.
- 2
Write rules, not transcripts
One rule per line, as a condition and an outcome: "If a refund is over $500, a manager approves it." A meeting transcript buries the rules among false starts and later corrections, and the agent can't tell which version won.
- 3
Put them where the agent looks
Claude Code reads CLAUDE.md, Cursor reads project rules in .cursor/rules, and Copilot reads .github/copilot-instructions.md; all three can read AGENTS.md. Keep business rules in their own file or section, apart from build and style instructions.
- 4
Keep the source with each rule
Note who said it, or which document it came from. When the code and a rule disagree, a reviewer can check the source instead of guessing.
- 5
Mark what is not settled
List open questions separately and tell the agent to stop and ask rather than choose. An unsettled rule written as settled is worse than none.
- 6
Turn the rules into tests
Ask the agent for a test per rule, exceptions included, so a later change that breaks one fails visibly.
Where RuleFoundry fits
RuleFoundry handles the rules nobody has written down. It interviews the person who knows, by voice or text, and writes each rule in plain language, linked to the transcript lines it came from, with open questions kept apart. Then:
Your coding agent reads the rules through MCP
Connect RuleFoundry to Claude Code, Cursor, Codex or GitHub Copilot, and the agent can search the Extractions your account can access and read the finished rules. Connections are scoped and revocable.
The person who knows answers on their own time
RuleFoundry emails them a link; they talk it through in the RuleFoundry web app; your agent reads the result once it is done.
Rules with their sources, not a transcript
Each rule cites the lines it came from and is tentative until the expert confirms it, so the agent gets rules and a reviewer can still check them.
Setup for each assistant is on the integrations page. The Logic Twin answers questions from the same rules and says when they do not cover a question. The rules are only as complete as the conversation, so review them before relying on them; the facts page lists limits and prices.
See it run
Connect RuleFoundry to your coding agent (setup on the integrations page; for ChatGPT, see RuleFoundry in ChatGPT), then ask:
Use RuleFoundry to find our refund approval rules, then write a test for each one.
When something else fits better
- CLAUDE.md, for rules your team already knows, in Claude Code. Anthropic's docs describe CLAUDE.md files as instructions you write to give Claude persistent context across sessions, and say Claude Code can read a repository's AGENTS.md instead.
- Cursor rules, for the same, in Cursor. Cursor's docs describe project rules stored in .cursor/rules, version-controlled and scoped to the codebase, used among other things to encode domain-specific knowledge; Cursor also reads AGENTS.md.
- GitHub Copilot custom instructions, for the same, in Copilot. GitHub's docs describe repository instructions in .github/copilot-instructions.md, and Copilot also reads AGENTS.md files.
- AGENTS.md, when several agents work in one repository. Its site describes a simple, open format for guiding coding agents: a README for agents.
- Unblocked, when the context your agents need is already spread across code, issues, docs and conversations. Its site describes a context layer for coding agents that reasons across those sources and resolves conflicts between them.
- Trail, when the rules already exist in your company's documents and systems. Its site describes turning policies, procedures and know-how into one "Brain" that AI agents read, with each rule citing its source.
- RuleFoundry, when the rules, especially the exceptions, are still in someone's head, and your agent needs them asked for and written down with their sources first.
Descriptions of other products and formats come from their own websites and documentation, checked on 2026-11-23.
Questions people ask
- Should I give my coding agent the meeting transcript?
- Give it the rules instead. A transcript mixes the rules with false starts, guesses and later corrections, and the agent can't tell which version is final. Keep the transcript as the source each rule points back to.
- Where do business rules go: CLAUDE.md, .cursor/rules or AGENTS.md?
- Wherever your agents read. Claude Code, Cursor and GitHub Copilot can all read AGENTS.md, so one file can serve all three. Keep business rules in their own section, apart from build and style instructions.
- How do I give an agent exceptions that are only in people's heads?
- Ask for them first. Interview the person who knows about one decision, follow each exception, and write the answers down as rules with their sources. RuleFoundry runs that interview, and the agent reads the result through MCP.
- Which assistants can read RuleFoundry's rules?
- Claude Code, Cursor, Codex and GitHub Copilot, as well as ChatGPT and Cowork. The integrations page has the setup for each.
- Can the agent see everything in our RuleFoundry account?
- No. It can use only the workspaces, Extractions and artifacts your RuleFoundry account is permitted to access. Connections are scoped and revocable.
- What does it cost?
- Your first Extraction is free. Personal is $20 a month for unlimited Extractions, and Team is $20 per active member a month with a two-seat minimum.
Related: why coding agents still need expert interviews, turning expert interviews into business rules, RuleFoundry integrations.
What changed: 2026-11-23, first version.