Toolkit
Capability 01 · reviewed 2026-08-01
On this page3 sections
Project Instructions
Project instructions give an durable context about how a repository works: architecture, commands, constraints, and the evidence required before work is considered complete. The filenames differ, but the capability is now common across Claude Code, OpenAI Codex, and GitHub Copilot.
The mechanism is advisory context. An instruction file can improve decisions; it cannot prove that a rule was followed. Put non-negotiable controls in executable policy, permissions, tests, or release gates.
The Portable Model
Separate the instruction system into three layers:
- Organization or user baseline — durable preferences and policies that apply across repositories.
- Repository contract — architecture, toolchain, commands, and completion criteria for the whole project.
- Scoped guidance — rules that apply only to a subtree, language, or file pattern.
Prefer the product's native filename, but keep the information architecture portable. A team supporting multiple agents can generate vendor entrypoints from one reviewed source or keep one canonical file and small product-specific adapters.
Where the Products Diverge
- Claude Code centers
CLAUDE.md, scoped rules, and auto memory. - Codex centers hierarchical
AGENTS.mdfiles. - Copilot supports several instruction formats, and the exact formats consumed vary across CLI, IDE, code review, and cloud-agent surfaces.
That surface variance is the reason this guide treats “Copilot support” as an incomplete statement unless the surface is named.
Decision Rule
Put stable facts every contributor needs in repository instructions. Put task-specific procedures in skills. Put deterministic checks in hooks or CI. Put accumulated, revisable context in memory. If violating a rule would create security, compliance, or release risk, instructions are the wrong enforcement layer.
The deeper lenses retain concrete Claude Code implementation examples. Use them as one product realization of this capability, not as a universal file-format specification.
Documented coverage · 2026-08-01
Project Instructions by product
These classifications are documentation findings, not empirical runtime tests. Surface names are explicit because product-family claims are too coarse.
Claude Code
Anthropic
CLAUDE.md and scoped rules provide first-party persistent instructions. They guide model behavior; they are not an enforcement boundary.
Basis: documentedSources: 2
OpenAI Codex
OpenAI
AGENTS.md is the documented repository instruction contract, with hierarchical scope for more specific directories.
Basis: documentedSources: 3
The reviewed AGENTS.md source does not establish one general web-surface loading contract outside the named Codex clients and cloud workflows.
Basis: documentedSources: 3
GitHub Copilot
GitHub
Copilot supports repository-wide, path-specific, and agent instruction files; exact file support varies by product surface.
GitHub documents instruction support on selected web experiences, but supported file types and behavior vary by feature.
Basis: documentedSources: 5
Source register
Project Instructions sources
Primary vendor documentation reviewed on the date shown. Links may change after publication.
- Claude Code overview (opens in a new tab)
Anthropic · official docs · accessed 2026-08-01
- How Claude remembers your project (opens in a new tab)
Anthropic · official docs · accessed 2026-08-01
- Custom instructions with AGENTS.md (opens in a new tab)
OpenAI · official docs · accessed 2026-08-01
- Adding custom instructions for GitHub Copilot CLI (opens in a new tab)
GitHub · official docs · accessed 2026-08-01
- Custom instructions support for GitHub Copilot (opens in a new tab)
GitHub · official docs · accessed 2026-08-01
Comparative implementation depth