AI harness engineering compatibility matrix
Compare which harness config files each AI coding tool reads, what they control, and how support changes across surfaces.
Scroll horizontally to compare products and surfaces. The config column stays pinned.
| Config file | GitHub CopilotVS Code harness | GitHub Copilot appDesktop | GitHub Copilot CLITerminal | GitHub CopilotCloud agent | Claude CodeLocal: desktop + CLI + IDE | OpenAI CodexLocal: ChatGPT app + CLI + IDE | CursorLocal: editor + CLI |
|---|---|---|---|---|---|---|---|
AGENTS.mdroot of repo |
Yes | Yes | Yes | Yes | Fallback | Yes | Yes |
The broadest shared instruction file in this matrix. Put durable repo guidance here: stack, architecture, naming rules, forbidden patterns, and team conventions. GitHub Copilot, OpenAI Codex, and Cursor read it directly. Claude Code v2.1.277+ reads AGENTS.md when no CLAUDE.md, .claude/CLAUDE.md, or CLAUDE.local.md exists in or above the working directory, and can be configured to load both formats. Some Claude sessions still require an explicit @AGENTS.md import. The VS Code Copilot harness discovers nested AGENTS.md files natively; only VS Code's separate Local harness keeps nested discovery experimental. | |||||||
CLAUDE.mdroot + subdirectories |
— | Fallback | Fallback | Fallback | Yes | — | — |
Claude Code's native repo instruction file. Its local clients share hierarchical loading from root and subdirectories. When both formats exist, Claude Code reads CLAUDE.md by default; use the Project instructions setting to load both, or import @AGENTS.md for a shared base. Copilot CLI and cloud agent discover CLAUDE.md as a compatibility format. The VS Code Copilot harness does not load it as project instructions; VS Code's Claude and Local harnesses do. Copilot code review on GitHub.com now also supports CLAUDE.md. | |||||||
GEMINI.mdroot of repo |
— | — | Fallback | Fallback | — | — | — |
Gemini's instruction file, read by Copilot as a third compatibility format. GitHub lists GEMINI.md alongside AGENTS.md and CLAUDE.md for Copilot CLI, cloud agent, and code review on GitHub.com. It remains a compatibility read rather than Copilot's own repository format. | |||||||
copilot-instructions.md.github/ |
Yes | Yes | Yes | Yes | — | — | — |
Copilot's original repo-wide instruction file. It lives at .github/copilot-instructions.md and loads into Copilot requests. Use AGENTS.md for shared rules and this file for Copilot-only additions. Copilot CLI can generate one with /init; VS Code can create one from the Agent Customizations editor. | |||||||
github-app.yml.github/ (app project config) |
— | Yes | — | — | — | — | — |
The GitHub Copilot app's project configuration. .github/github-app.yml stores trusted app-specific instructions, setup/run/archive scripts, server detection, browser behavior, and automation settings. The legacy filename .github/copilot-desktop.yml remains a compatibility alias. | |||||||
*.instructions.md.github/instructions/ (glob scoped) |
Yes | Yes | Yes | Yes | — | — | — |
Copilot path-scoped instructions. Each file uses applyTo frontmatter, such as "**/*.tsx", so rules apply only to matching files. Use these for framework, language, or directory-specific conventions. Claude Code's equivalent is .claude/rules/*.md with paths. | |||||||
.claude/rules/*.mdscoped via paths property |
— | — | Fallback | — | Yes | — | — |
Claude Code's scoped instruction files. They use a paths array instead of Copilot's applyTo. If paths is omitted, the rule applies generally. Copilot CLI merges .claude/rules/**/*.md as a compatibility instruction source. In VS Code, this folder belongs to the Claude or Local harness rather than the Copilot harness. | |||||||
.cursor/rules/*.mdc.cursor/rules/ (frontmatter scoped) |
— | — | — | — | — | — | Yes |
Cursor's native scoped rules. MDC files in .cursor/rules/ support four activation modes: always-on, glob match, “Apply Intelligently” model selection, and manual @rule-name. When alwaysApply: true, Cursor ignores globs and description. | |||||||
.github/agents/*.md.agent.md or .md in VS Code |
Yeshard | Yeshard | Yeshard | Yeshard | — | — | — |
Specialized Copilot roles selected by name or delegated to as subagents. Each file defines instructions, tool access, model preferences, skills, hooks, and optional agent-scoped MCP servers, with exact field support varying by surface. Repository agents live in .github/agents/. GitHub documentation uses AGENT-NAME.md; VS Code accepts both .md and .agent.md. Copilot CLI also provides built-in agents such as explore, task, research, rubber-duck, and security-review. | |||||||
.claude/agents/*.mdClaude subagents |
Fallback | — | Fallback | — | Yeshard | — | Fallback |
Claude Code's subagent system. These agents run with isolated context and explicit tools across the desktop app, CLI, and editor integrations. Frontmatter covers tools, disallowedTools, model, permissionMode, maxTurns, skills, mcpServers, hooks, memory, and isolation: worktree. Built-ins include Explore, Plan, and general-purpose. Copilot CLI and VS Code can load this directory as a compatibility agent source, with runtime-specific field conversion; Cursor also reads it. | |||||||
.codex/agents/*.tomlproject-scoped custom agents |
— | — | — | — | — | Yeshard | — |
OpenAI Codex custom agents. Standalone TOML files in .codex/agents/ or ~/.codex/agents/ define name, description, and developer_instructions, plus optional model and reasoning settings or capability reductions. Built-ins are default, worker, and explorer. Custom agents inherit the parent session's sandbox, approval policy, provider, MCP servers, and permission boundary; those settings cannot be widened from the agent file. | |||||||
.codex/agents/*.mdCursor compatibility format |
— | — | — | — | — | — | Fallback |
A Cursor compatibility location, not a Codex agent file. Cursor scans .codex/agents/ for Markdown agent definitions. OpenAI Codex uses TOML in the same directory, so the two clients share a folder name but not a file format. | |||||||
.cursor/agents/*.mdCursor subagents |
— | — | — | — | — | — | Yeshard |
Cursor's subagent format. Markdown files use name, description, model (default inherit), readonly, and is_background frontmatter. Project agents live in .cursor/agents/ and user agents in ~/.cursor/agents/; .cursor/ wins name conflicts over compatibility locations. Built-ins are Explore and Browser. Subagents can run foreground or background and can use isolated worktrees or cloud environments when requested. | |||||||
.github/skills/*/SKILL.mdCopilot native path |
— | Yes | Yes | Yes | — | — | — |
One of Copilot's three first-class skill paths. A skill is a folder with SKILL.md plus optional scripts, templates, and assets. Copilot loads metadata first and the full body only when needed. .claude/skills/ and .agents/skills/ are equally first-class in Copilot. | |||||||
.claude/skills/*/SKILL.mdClaude Code native path |
Yes | Yes | Yes | Yes | Yes | — | Fallback |
Claude Code's native skill path. Claude supports auto-invocation, explicit /skill-name invocation, forked subagent execution, and chaining up to six skills in one command across its local clients. GitHub Copilot reads this as a first-class project skill path, while Cursor supports it as a compatibility location. | |||||||
.agents/skills/*/SKILL.mdcross-agent standard path |
Yes | Yes | Yes | Yes | — | Yes | Yes |
The broadest shared skill path among these products. GitHub Copilot, OpenAI Codex, and Cursor read project .agents/skills/ natively, and their local clients also support user-level skill locations. The folder contents follow the open Agent Skills specification. | |||||||
.cursor/skills/*/SKILL.mdCursor native path |
— | — | — | — | — | — | Yes |
Cursor's native skill path. Skills live at .cursor/skills/<name>/SKILL.md, or globally at ~/.cursor/skills/, with name and description frontmatter. Cursor loads metadata until invocation and reads .agents/skills/ natively. A skill can also be pinned as a Custom Mode. | |||||||
.codex/skills/*/SKILL.mdCursor compatibility path |
— | — | — | — | — | — | Fallback |
A Cursor compatibility path. Cursor scans project and user .codex/skills/ folders for Agent Skills. OpenAI Codex itself uses .agents/skills/, so this path exists for migration and interoperability rather than as Codex's native skill location. | |||||||
.claude/commands/*.mdClaude custom commands |
— | — | — | — | Yes | — | — |
Claude Code's legacy slash-command path. Custom commands have merged into skills: .claude/commands/deploy.md and .claude/skills/deploy/SKILL.md both create /deploy. Existing command files still work, but skills are canonical for new workflows and add supporting files, invocation controls, and auto-invocation. | |||||||
.github/hooks/*.jsonany .json filename |
Preview | Yes | Yes | Yes | — | — | — |
GitHub Copilot lifecycle hooks. Any .json file in .github/hooks/ is read; the filename is free-form. Hooks are available in the Copilot app, CLI, cloud agent, and VS Code Preview, but event names, payloads, and controls differ by surface. Copilot CLI combines policy, user, repository, inline settings, plugin, and agent-scoped hooks. Cloud jobs load repository hooks only and honor a smaller non-interactive subset. | |||||||
.claude/settings.jsonhooks key |
Preview | — | Fallback | — | Yes | — | Fallback |
Claude Code's hook system — the broadest event surface here, at roughly 33 documented events. Handlers can run shell commands, HTTP endpoints, MCP tools, prompts, or agents. Events cover setup, sessions, prompt expansion, tool calls and batches, permissions, subagents and teams, tasks, compaction, model switches, worktrees, config and instruction loading, file and directory changes, MCP elicitation, notifications, display, and stop/failure. Claude's prompt and agent handlers are inferential sensors. Copilot CLI and the VS Code Copilot harness read repository .claude/settings.json hooks as a compatibility source. Cursor also imports a mapped subset when third-party configuration imports are enabled. | |||||||
.codex/hooks.json bothrepo or ~/.codex/ |
— | — | — | — | — | Yesdefault-on | — |
OpenAI Codex lifecycle hooks. Local Codex clients load hooks.json or inline [hooks] tables from active configuration layers, plus enabled plugins. Hooks are enabled by default, require per-definition trust outside managed policy, and cover sessions, prompts, model requests, tools, permissions, compaction, interrupts, subagents, and stopping. Current handlers execute commands or connected MCP tools; prompt and agent handlers are parsed but skipped. | |||||||
.cursor/hooks.json bothproject or ~/.cursor/ |
— | — | — | — | — | — | Yes |
Cursor's hook system. Project hooks live at .cursor/hooks.json; user hooks live at ~/.cursor/hooks.json. Command hooks receive JSON on stdin, and prompt hooks use a model to return an allow/block judgment. Project hooks run in cloud agents for the documented writable-environment subset, including beforeSubmitPrompt; user hooks and IDE-only lifecycle events such as workspaceOpen do not carry into cloud agents. | |||||||
.vscode/mcp.jsonVS Code workspace |
Partialforwarded | — | — | — | — | — | — |
VS Code's editor-native MCP format. VS Code forwards eligible servers from .vscode/mcp.json to Copilot harness sessions; the agent does not read the file directly. Servers that require interactive ${input:...} values are not forwarded. Use workspace-root .mcp.json when the Copilot harness should load a portable server configuration itself. | |||||||
.mcp.jsonrepo root |
Yes | Yes | Yes | — | Yes | — | — |
A shared project MCP path for the Copilot harness and Claude Code. VS Code Copilot sessions read workspace-root .mcp.json directly. Copilot CLI walks from the working directory to the repository root, and those repository servers are also available in the Copilot app. Claude Code reads a root-level file across its local clients. Committed server definitions require workspace or repository trust. | |||||||
.github/mcp.jsonshared Copilot repository config |
— | Yes | Yes | Yes | — | — | — |
GitHub Copilot's committed repository MCP path. The app automatically exposes repository and CLI servers, Copilot CLI reads this file after folder trust, and the cloud agent uses it for repository-scoped servers. VS Code Copilot harness sessions use workspace-root .mcp.json directly or receive eligible servers forwarded from .vscode/mcp.json. | |||||||
.codex/config.tomlrepo root (mcp_servers) |
Fallback | — | Fallback | — | — | Yes | — |
OpenAI Codex's project-scoped MCP config. MCP servers are defined under [mcp_servers.<name>] tables in TOML. The ChatGPT desktop app, CLI, and IDE extension share the local configuration layers; user-level config lives at ~/.codex/config.toml. | |||||||
.cursor/mcp.json.cursor/ (project + global) |
— | — | — | — | — | — | Yes |
Cursor's MCP config. Project-scoped at .cursor/mcp.json, user-scoped at ~/.cursor/mcp.json, with team-distributed MCP now available for organizations. Supports stdio, SSE, and streamable HTTP transports. | |||||||
permission / approval policyrules, classifier guidance, or UI |
Yessettings.json | Yesapp settings | Yes~/.copilot/ | UI onlyrepo settings | YesUI + settings | YesUI + config | YesAuto-review + CLI |
How each surface gates calls before execution. GitHub Copilot, Claude Code, OpenAI Codex, and Cursor expose deterministic rules, approval modes, or automatic reviewers. Claude Code resolves deny, then ask, then allow. Codex's newer named permission profiles are Beta and do not compose with legacy sandbox_mode settings. Cursor desktop's Allowlist mode is deterministic; Auto-review uses a classifier and .cursor/permissions.json provides plain-English guidance, not a security boundary. Cursor CLI stores deterministic allow/deny tokens in ~/.cursor/cli-config.json and project .cursor/cli.json. Cursor sandbox.json separately controls enforced filesystem and network access and can override CLI sandbox settings. | |||||||
OS-level sandboxfilesystem + network isolation |
YesAgent Host | YesMXC GA | YesMXC GA | YesActions VM | YesSeatbelt / Bubblewrap | Yesplatform native | YesSeatbelt / Landlock |
OS-level isolation goes beyond permission prompts. GitHub Copilot local sandboxing is generally available in the app, CLI, and VS Code Agent Host sessions, powered by MXC over native platform controls; the cloud agent runs in an isolated hosted environment. Claude Code uses Seatbelt on macOS and Bubblewrap on Linux/WSL2. Codex uses Seatbelt on macOS, Bubblewrap on Linux/WSL2, and a native Windows backend. Cursor uses Seatbelt on macOS and Landlock plus seccomp on Linux, with Bubblewrap as a fallback. | |||||||
plugin.jsonAgent Plugins 1.0 or legacy Copilot |
Yes | Yes | Yes | Yes | — | Yes | Yes |
The portable bundle format shared by GitHub Copilot, OpenAI Codex, and Cursor. Agent Plugins 1.0 requires root plugin.json, discovers Agent Skills under skills/, and reads portable MCP configuration from root mcp.json. The v1 standard deliberately defines only skills and MCP servers, and each host can support those components differently. Copilot also accepts a legacy schema-less root plugin.json. Cursor supports the standard but uses ${CURSOR_PLUGIN_ROOT} instead of expanding the standard ${PLUGIN_ROOT} and ${PLUGIN_DATA} placeholders in mcp.json. | |||||||
.claude-plugin/plugin.jsonClaude plugin manifest |
Fallback | — | Fallback | — | Yes | — | — |
Claude Code's plugin and marketplace system, also accepted as a compatibility plugin format by VS Code and Copilot CLI. A plugin root holds .claude-plugin/plugin.json alongside skills/, agents/, hooks/, output-styles/, and .mcp.json. Claude plugin subagents cannot use hooks, mcpServers, or permissionMode frontmatter. Compatibility hosts translate only the components and fields they support. | |||||||
.codex-plugin/plugin.jsonCodex compatibility manifest |
— | — | — | — | — | Yes | — |
OpenAI's compatibility plugin manifest. Codex and the ChatGPT desktop app continue to support .codex-plugin/plugin.json, including OpenAI-specific presentation, registered MCP mappings, skills, and lifecycle hooks. New portable packages should prefer root Agent Plugins plugin.json; the built-in plugin creator may still scaffold this compatibility layout. | |||||||
.cursor-plugin/plugin.jsonCursor-specific plugin manifest |
— | — | — | — | — | — | Yes |
Cursor's richer vendor plugin format. Cursor Plugins can package rules, skills, agents, commands, MCP servers, hooks, variables, and canvases. Use this manifest when a bundle needs Cursor-specific components; use root Agent Plugins plugin.json when portable skills and MCP servers are enough. | |||||||
copilot-setup-steps.yml.github/workflows/ |
— | — | — | Yes | — | — | — |
Provisioning for the Copilot cloud agent's ephemeral environment. A standard GitHub Actions workflow containing a single job named copilot-setup-steps, run before the agent starts: preinstall toolchains and dependencies, pick the runner, and start services. copilot-code-review.yml does the same for code review. It answers a question no instruction file can — what environment does the agent actually run in — and it is committed and reviewable like any other harness file. | |||||||
Key takeaways
AGENTS.md is now the portable instruction baseline across all four product families. Claude Code v2.1.277+ reads it when no Claude instruction file exists in or above the working directory and can be configured to load both.
.agents/skills/ remains the broadest shared skill path: GitHub Copilot, OpenAI Codex, and Cursor read it natively, while Claude Code uses the same Agent Skills format from .claude/skills/.
Portable standards now matter alongside compatibility reads. Agent Plugins 1.0 gives GitHub Copilot, OpenAI Codex, and Cursor one schema-qualified root plugin.json format for skills and mcp.json. Host behavior and vendor extensions still differ.
Compatibility remains exact-file behavior, not just a shared directory. Copilot CLI reads Claude rules and agents, Cursor imports Claude hooks, and Cursor scans .codex/agents/ for Markdown while Codex expects TOML.
Surface splitting is useful only when the harness changes. GitHub Copilot stays split, and the VS Code column means the Copilot harness rather than every harness VS Code can host. Claude Code and OpenAI Codex local clients share their core layers.
Claude Code has the richest hook system at roughly 33 documented events. Claude's prompt/agent handlers and Cursor's prompt hooks are inferential sensors; current Codex hooks execute commands or connected MCP tools.
MCP remains fragmented, but .mcp.json is shared by the VS Code Copilot harness, GitHub Copilot app, GitHub Copilot CLI, and Claude Code. VS Code can also forward eligible .vscode/mcp.json servers.
OS-enforced isolation is standard for every local product family shown here. GitHub Copilot local sandboxing is generally available in the app, CLI, and VS Code Agent Host sessions.
The unit of configuration is shifting from the file to the governed bundle. A plugin can carry executable hooks and MCP servers beside guidance, so marketplace policy, trust review, and managed settings matter as much as discovery.
Precedence & conflicts
GitHub Copilot partial
- Instructions: applicable files are combined. Copilot CLI defines no general precedence among user and repository instruction files; GitHub.com prioritizes personal > repository > organization while still sending all relevant sets.
- VS Code harness: the Copilot harness reads
.github/copilot-instructions.md, path-scoped instructions, and nestedAGENTS.md.CLAUDE.mdand.claude/rules/belong to the separate Claude or Local harness. - CLI compatibility: Copilot CLI also merges
CLAUDE.md,GEMINI.md, and.claude/rules/**/*.md, and loads custom agents from.claude/agents/. - App project config: trusted
.github/github-app.ymlinstructions follow global app instructions and can also define scripts and automation. - Path-scoped
*.instructions.md: merges with repo-wide.excludeAgentfrontmatter can opt out per surface (code-review,cloud-agent). - CLI MCP: closer
.mcp.jsonfiles beat broader files;.mcp.jsonbeats.github/mcp.jsonin the same directory, and project definitions beat user config. - Plugins: root Agent Plugins
plugin.jsonis portable; Copilot-only agents, hooks, commands, rules, and extensions live undercom.github.copilot/. Repository defaults use.github/copilot/settings.json. - Local sandbox: MXC sandboxing is GA in the app, CLI, and VS Code Agent Host sessions. It remains off by default unless user or enterprise policy enables it.
- Org-managed:
copilot/managed-settings.jsonin a.github-privaterepo (or an MDM policy path) overrides everything below it, includingpermissions.disableBypassPermissionsModeandsandbox.enabled. Managed sandbox restrictions combine with user settings in the most restrictive direction.
Claude Code documented
- Local surfaces: the desktop app, CLI, and editor integrations read the same settings files; cloud sessions are outside this column because they load only a subset.
- Settings (high → low): managed (org policy) > CLI args >
.claude/settings.local.json>.claude/settings.json>~/.claude/settings.json. - Permissions: rules resolve
deny>ask>allowacross scopes. A broader deny cannot be carved open by a narrower allow. - CLAUDE.md: walk-up from cwd, all files concatenated. Subdirectory files lazy-load.
CLAUDE.local.mdappended afterCLAUDE.md(effectively higher priority). - AGENTS.md: the default is
CLAUDE.mdor, when none exists,AGENTS.md. The Project instructions setting can load both;@AGENTS.mdremains useful when importing explicitly. - Hooks: user + project both fire (merge).
allowManagedHooksOnly: trueblocks user/project. Array settings concat across sources. - MCP: managed denylist always wins over allowlist;
allowManagedMcpServersOnlylocks to admin list. - Plugins: project enablement lives in
.claude/settings.json; plugin subagents cannot widen permissions withhooks,mcpServers, orpermissionModefrontmatter.
OpenAI Codex documented
- Local surfaces: the ChatGPT desktop app, CLI, and IDE extension share the local agent configuration model; CLI-only flags remain the highest-precedence one-off override.
- Settings (high → low): CLI flags and
--configoverrides > trusted project.codex/config.tomlfiles (closest wins) > selected profile >~/.codex/config.toml> cloud-managed defaults > system config > built-in defaults. - AGENTS.md: global guidance loads first, then project files from root down to cwd. Files closer to cwd appear later in the combined prompt and override earlier guidance.
AGENTS.override.mdbeats regular files in the same directory. - Hooks: hooks are enabled by default and merge across
hooks.json, inline[hooks], managed sources, and plugins. Project hooks require trust, and changed definitions require review again. - MCP per-tool approval:
default_tools_approval_modeon the server, with[mcp_servers.NAME.tools.X]overrides per tool — explicit override. - Permissions: named permission profiles are Beta and do not compose with legacy
sandbox_mode. Custom agents inherit the parent permission and sandbox boundary. - Plugins: root Agent Plugins
plugin.jsonis preferred;.codex-plugin/plugin.jsonremains supported. Repo marketplaces live at.agents/plugins/marketplace.json.
Cursor documented
- Rules (high → low): Team Rules > Project Rules (
.cursor/rules/) > User Rules. Conflicts resolved earliest-wins. - AGENTS.md: nested files combine with parent-dir; deeper (more specific) instructions take precedence.
- Team Rule enforcement: admin can mark a Team Rule "Enforce" so users cannot disable it.
- Hooks: project
.cursor/hooks.jsonand user~/.cursor/hooks.jsonboth load; enterprise team and system tiers can also distribute hooks. With third-party imports enabled, Claude settings hooks merge below native Cursor sources. - Custom Modes: not a config file — any skill can be pinned as a persistent mode with Option/Alt+Enter.
- Subagents:
.cursor/agents/beats.claude/agents/and.codex/agents/on name conflicts; project scope beats user scope. - User Rules scope: Agent (Chat) only. Not applied to Inline Edit (Cmd/Ctrl+K) or Cursor Tab.
- Permissions: desktop Auto-review guidance merges project and user
permissions.json, but the classifier is not a security boundary; team policy wins. Deterministic CLI rules usecli-config.jsonand project.cursor/cli.json. Sandbox access usessandbox.json. - MCP: project, user, and team-distributed tiers are available; same-name conflict behavior remains undocumented.
- Plugins: Agent Plugins provide portable skills and MCP servers;
.cursor-plugin/plugin.jsonadds Cursor rules, agents, commands, hooks, variables, and canvases.
Sources & methodology
Every support state was re-checked against primary product documentation, current reference pages, and published standards on November 5, 2026. “Compatible” means a documented cross-tool or alternate-harness format; “partial” covers preview, disabled-by-default, or surface-specific behavior.
GitHub Copilot
- Customization cheat sheet
- Custom instruction support
- VS Code harness instruction reference
- VS Code custom agent reference
- VS Code Local prompt files
- VS Code MCP configuration reference
- VS Code agent plugin reference
- GitHub Copilot app repository configuration
- Plugins
- Copilot CLI command and compatibility reference
- Copilot CLI plugin reference
- Hooks reference
- Copilot CLI and repository MCP configuration
- Cloud and local sandboxes
- Local sandboxing GA announcement
- Copilot feature matrix