GuidesUpdated

Share project instructions across Claude Code and Codex

Put durable project facts, CLI-specific instructions, reusable skills and MCP connections where Claude Code and Codex can each use them.

On this page

Two agents can share a repository without reading the same instruction files or tools. Put shared facts in the repository, then set up each CLI's instructions, skills and MCP connections on purpose.

Canopy shared project context beside coding-agent sessions
Canopy shared project context beside coding-agent sessions

Keep project facts in ordinary repository files

Put architecture, run and test commands, and API contracts in maintained README or docs files that any teammate or CLI can read. Put the current task's branch, checks, changed files, results and next action in a short handoff. That beats asking a second model to infer decisions from a private transcript.

Check which instruction files each CLI loaded

Codex reads AGENTS.md. Claude Code 2.1.277 and later can read AGENTS.md directly when no project-path CLAUDE.md or CLAUDE.local.md takes precedence; its Project instructions setting can change that. Older versions and some session modes need a CLAUDE.md with an @AGENTS.md import.

In a fresh Claude session, run /memory to see the loaded path. In Codex, check its reported project instructions and ask it to name one repository constraint. Canopy hosts the CLI; it doesn't change file discovery.

Use skills for repeatable work

A skill packages instructions and optional resources for a recurring task, like reviewing a migration or drafting a release note. Both ecosystems use SKILL.md-based skills, but discovery and invocation differ. Review a skill's commands before sharing it, and keep its description narrow.

Use MCP when the agent needs a live system

MCP servers expose tools or live data, such as doc search or a ticket system. A skill can say how to use them, but doesn't create the connection or grant access. Configure and authorize MCP in each CLI that needs it. Canopy discovers and inspects MCP servers across supported CLIs. Discovery isn't permission to copy credentials to another agent or teammate.

Hand off one bounded task

Pause the first agent at a stable commit. Give the second CLI the outcome, checkout, docs, changed files, evidence and one next action. A reviewer stays read-only until it reports findings; for implementation, decide who owns the worktree first.

Check for instruction drift

Monthly, or after a repeated agent mistake, remove obsolete commands, duplicates and conflicting rules. Two contradictory agent files cost more than a missing one. After changing setup, test both CLIs on a small, reversible task and record what you observed.

Copyable resources

Copyable cross-CLI instruction plan

Adapt paths to your repository and check the loaded files in fresh sessions.

README.md / docs/: canonical run commands, architecture and API contracts
AGENTS.md: short shared instructions for Codex and supported Claude Code setups
CLAUDE.md: for Claude-specific content or an @AGENTS.md import
Skills: one focused repeatable workflow per skill; test invocation in each CLI
MCP: configure and authorize live tools separately in each CLI
Task handoff: goal, acceptance checks, branch, changed files, tests, decisions, next action
Fresh-session check: inspect loaded instruction paths; ask each CLI for the run command and one constraint.

Frequently asked questions

Will Claude Code read my AGENTS.md?

Current Claude Code versions can read it directly, but a project-path CLAUDE.md can take precedence. Check your version, the Project instructions setting and /memory in a fresh session. Canopy doesn't change this discovery.

Are a skill and an MCP server the same thing?

No. A skill gives reusable instructions and resources. An MCP server connects to tools or live data, with its own configuration and access boundary.

Do shared skills or context share a paid model account?

No. Claude Code and Codex keep their own accounts, models, usage limits and provider billing.

More questions and answers →

Sources and further reading