One set of AI coding rules for the whole company: what Copilot, Cursor, Claude Code and Codex offer

Every vendor has a company-level feature. Each one covers its own tool, and less of it than you would think

December 5, 2026 6 min read

Sooner or later someone at the company asks a reasonable question: can we write our AI coding rules once and have them apply in every repo? Each vendor now has an answer. Each answer covers that vendor's tool only, and most of them cover less of it than the name suggests.

This is what the four big tools offer at company level, taken from the vendor docs as they read on 5 December 2026, and where each one stops.

GitHub Copilot: organization custom instructions

An organization owner on Copilot Business or Enterprise can type instructions into a text box under Settings, Copilot, Custom instructions. No files, no pull requests.

The catch is in the support note on the same page: organization instructions are "currently supported for sessions running on the GitHub website (in cloud sandboxes or on GitHub Actions) and for Copilot code review. They are not supported in local client sessions."

So the developer typing into Copilot Chat in VS Code or JetBrains, which is where most of the day is spent, gets none of it. GitHub's support reference agrees: organization instructions appear under GitHub.com features and are missing from the VS Code and Copilot CLI lists.

They are also the weakest layer. GitHub's precedence order puts personal instructions first, repository instructions second and organization instructions last. A repo file that disagrees with the company rule wins.

Cursor: Team Rules

Cursor (renamed Grok Build on 30 November) has the strongest company-level feature of the four. From the rules docs: "Team and Enterprise plans can create and enforce rules across their entire organization from the Cursor dashboard. Admins can configure whether or not each rule is required for team members."

The help page adds the details that matter:

Where it stops: it is a dashboard text field, so it sits outside version control and outside code review. And it reaches Cursor's agent only. A teammate on Claude Code or Copilot never sees a word of it.

Claude Code: a managed CLAUDE.md on every machine

Anthropic's route goes through IT. The memory docs describe a centrally managed CLAUDE.md at a fixed path:

You push it with MDM, Group Policy or Ansible. It loads before user and project files, and a developer who excludes other CLAUDE.md files with claudeMdExcludes cannot exclude this one.

Two limits, both stated in the docs. If a developer starts a session with CLAUDE.md loading turned off altogether, the managed content is not loaded either. And Anthropic is direct about what the file is for: "Use the file for guidance, and enforce rules with managed settings such as permissions.deny."

The practical limit is simpler. You need device management that reaches every laptop, including the contractor's.

Codex: a global file, per person

OpenAI's AGENTS.md guide describes one layer above the repo: a file in the Codex home directory, ~/.codex/AGENTS.md, read before any project file. It is each developer's own file on each developer's own machine. The guide describes no dashboard and no organization setting for it, so a company-wide version means distributing that file yourself.

Side by side

ToolCompany-level featureWhere it stops
CopilotOrganization custom instructionsGitHub website sessions and code review only. Lowest precedence
CursorTeam Rules, can be enforcedCursor only. Lives in a dashboard, outside git
Claude CodeManaged CLAUDE.mdNeeds device management. Guidance, by Anthropic's own description
Codex~/.codex/AGENTS.mdPer user, per machine

What this means in practice

A company with developers on three tools would need three separate company-level setups, kept in agreement by hand, and would still miss the local Copilot sessions. That is why most teams end up with the layer every tool shares: files committed to each repo. AGENTS.md for most tools, a CLAUDE.md that imports it, and tool-specific folders only where a tool needs them.

Use the company-level features for the handful of rules that must hold everywhere, such as "never commit secrets" or "never touch the billing service without review". Keep them short, because every one of them is added to every request.

Everything else lives in the repos, and that is where the real work is. Fifty repos means fifty sets of files, written by different people in different months, each read differently by each tool. One repo has rules in .cursor/rules saved as .md, which Cursor ignores. Another has an AGENTS.md that Claude Code skips because someone added a CLAUDE.md next to it. Nothing reports either.

Three questions to answer for every repo

  1. Which instruction files exist, and which tool is each one for?
  2. For each tool your team uses, does it load them all, some of them, or none?
  3. Has anything been cut off for size?

You can answer these by hand with each tool's own check. We listed them in the compatibility matrix. For five repos that is an afternoon. For fifty it does not get done.

That is the job we built contextarch for teams for. Point it at a folder of repos and it writes one page: every repo down the side, every tool across the top, and for each cell whether that tool loads the instructions, loads part of them, or loads nothing, with the fix and the vendor's documentation for each problem. It runs on your own machine and in your own CI and connects to nothing. It is $299 a year for one company, however many repos and developers.

Whichever way you do it, do the inventory before you write a company-wide rule. A rule that half the tools never load is only a document.

contextarch.ai·Context Doctor·Setup check·Generator·Templates·Blog·Newsletter