Skip to content

Targets matrix

The canonical reference for what APM deploys, where, for every supported harness. Use this page to choose a target, debug an unexpected deploy location, or confirm whether a primitive is supported on a given tool.

For background on the target model, see How APM works. For the runtime CLI surface, see apm targets and apm compile. For the primitive types themselves, see Primitive types.

TargetDeploy rootinstructionspromptsagentsskillscommandshooksmcp
copilot.github/[x][x][x][x][ ][x][x]
claude.claude/[x][ ][x][x][x][x][x]
grok-build.grok/[x][ ][x][x][x][ ][ ]
cursor.cursor/[x][ ][x][x][x][x][x]
codex.codex/ + .agents/[ ][ ][x][x][ ][x][x]
gemini.gemini/[ ][ ][ ][x][x][x][x]
antigravity.agents/[x][ ][ ][x][ ][x][x]
opencode.opencode/[ ][ ][x][x][x][ ][x]
windsurf.windsurf/ + .agents/[x][ ][ ][x][x][x][x]
kiro.kiro/[x][x][x][x][ ][x][x]
intellijuser MCP config; files via Copilot[x] (*)[x] (*)[x] (*)[x] (*)[ ][x] (*)[x]
agent-skills.agents/[ ][ ][ ][x][ ][ ][ ]
hermes.agents/ (~/.hermes/ user scope)[ ][ ][ ][x][ ][ ][x]
grok-botagent-data/ (~/agent-data/ user scope)[ ][ ][ ][x][ ][ ][ ]

Skills deploy to .agents/skills/ for Copilot, Cursor, OpenCode, Gemini, Antigravity, Codex, Hermes project scope, and Windsurf by default (see Skills convergence below). Claude, Grok Build, Kiro, and Hermes user scope keep target-native skill directories.

(*) For intellij, file primitives route through the Copilot profile: instructions, prompts, agents, and hooks use .github/, while skills use .agents/skills/. The IntelliJ-specific adapter configures MCP only.

copilot-cowork (Microsoft 365 Copilot), copilot-app (GitHub Copilot desktop App), grok-cloud (xAI Grok Cloud), and openclaw (OpenClaw agent runtime) are gated behind experimental flags and not listed above. Hermes is stable but explicit-only. See Experimental.

After a project install stages dependency instructions, the APM CLI requires a separate root-context compile for claude, codex, gemini, opencode, hermes, and grok-build. It emits the req-tg-007 reminder for those targets. All other targets in this matrix either deploy instructions as native per-file rules, do not support dependency instructions, or have no verified root-context reader, so they do not trigger that reminder. A target not classified here does not trigger it by default.

apm install and apm compile resolve the active target list with this priority:

  1. --target / --all on the command line.
  2. targets: in apm.yml.
  3. apm install only: the saved apm config set target default.
  4. Auto-detection from filesystem signals (table below).

For MCP installation, the equivalent explicit legacy --runtime flag also has highest priority. MCP machine discovery runs only when targets: is omitted (or legacy all is treated as omission). Declared targets therefore produce portable MCP ownership in apm.lock.yaml; omitted targets intentionally make that ownership machine-dependent. During that discovery, VS Code presence (code on PATH or a .vscode/ directory) selects copilot at project scope, and APM falls back to copilot when no MCP runtime is installed.

apm install fails closed when no target can be detected. apm compile retains its documented unsignalled fallback because install writes runtime-specific configuration while compile only generates project output. Use apm targets to preview the resolved list.

TargetSignals (any one activates the target)
copilot.github/copilot-instructions.md or .github/mcp.json file, or .github/instructions/, .github/agents/, .github/prompts/, or .github/hooks/ directory
claude.claude/ directory, or CLAUDE.md file
grok-build.grok/ directory
cursor.cursor/ directory, or .cursorrules file
codex.codex/ directory
gemini.gemini/ directory, or GEMINI.md file
opencode.opencode/ directory
windsurf.windsurf/ directory
kiro.kiro/ directory
intellijGlobal github-copilot/intellij/ config directory (MCP runtime discovery only)

IntelliJ-specific integration is MCP-only and writes JetBrains Copilot’s user-scope mcp.json. That global signal does not auto-select file-primitive deployment. When intellij is selected explicitly, package file primitives use the Copilot profile. intellij does not participate in plain all expansion.

agent-skills, antigravity, hermes and grok-bot are stable explicit-only targets: never auto-detected and excluded from all. Select them with --target or list them in a project’s apm.yml targets: field so contributors running plain apm install pick them up automatically.

copilot-cowork, copilot-app, grok-cloud, and openclaw are experimental targets that require apm experimental enable <name> before use. They are selected with --target only and cannot be listed in apm.yml (the canonical targets validator will reject them).

GitHub Copilot (CLI and IDE). vscode is a deprecated alias that selects copilot; replace it in apm.yml and --target. VS Code’s deprecated Local mode no longer gets MCP servers; use the Copilot harness.

  • Detection. .github/copilot-instructions.md.
  • Deploy directory. .github/ at project scope; ~/.copilot/ at user scope (a non-blank COPILOT_HOME replaces ~/.copilot/, including MCP and LSP config; skills stay in ~/.agents/skills/ unless --legacy-skill-paths).
  • Supported primitives. instructions, prompts, agents, skills, hooks, mcp.
  • File conventions.
    • instructions: .github/instructions/<name>.instructions.md (project scope), ~/.copilot/instructions/<name>.instructions.md (user scope)
    • prompts: .github/prompts/<name>.prompt.md
    • agents: .github/agents/<name>.agent.md
    • skills: .agents/skills/<name>/SKILL.md at project scope and ~/.agents/skills/<name>/SKILL.md at user scope
    • hooks: .github/hooks/<name>.json
    • mcp: root .mcp.json (project, shared with Claude Code, which ignores Copilot tools allow-lists) or ~/.copilot/mcp-config.json (user)
    • generated: .github/copilot-instructions.md (compile output, project scope only)
  • User scope. Partial. prompts deploy under ~/.copilot/prompts/; instructions deploy individually under ~/.copilot/instructions/, mirroring the project-scope layout. User-scope deploys land under ~/.copilot/, not ~/.github/; hook script commands (~/.copilot/hooks/) resolve from any working directory (see the per-harness $HOME rule in Hooks and commands).
  • Global compile. apm compile -g can also render global instructions to ~/.copilot/AGENTS.md for root-context readers that honor AGENTS.md.
  • Prompt harness limitation. In VS Code, only Local harness sessions load .github/prompts/ files; the Copilot harness and Copilot CLI do not. See VS Code prompt files. For those harnesses, ship the workflow as a skill, with disable-model-invocation: true where the host supports it. See Author a prompt.

Claude Code.

  • Detection. .claude/ directory, or CLAUDE.md.
  • Deploy directory. .claude/ (project and user scope; user scope honors CLAUDE_CONFIG_DIR if set).
  • Supported primitives. instructions, agents, skills, commands, hooks, mcp. (No prompts.)
  • File conventions.
    • instructions: path-scoped ones (for example **/*.py) deployed by apm install to .claude/rules/<name>.md; always-on ones compiled into the root AGENTS.md; single-directory ones (for example src/test/**, when that directory exists and the project is not single-file) into exactly that directory’s AGENTS.md for a Claude-only target, or wherever the shared AGENTS.md places them when Claude is combined with other targets
    • agents: .claude/agents/<name>.md
    • commands: .claude/commands/<name>.md
    • skills: .claude/skills/<name>/SKILL.md
    • hooks: merged into .claude/settings.json
  • Compile output. Root and nested AGENTS.md, plus a CLAUDE.md beside each that imports @AGENTS.md. A Claude-only compile omits instructions already under .claude/rules/. A hand-authored root CLAUDE.md without @AGENTS.md keeps every instruction in .claude/rules/. User scope keeps every instruction in ~/.claude/rules/. See Claude Code routing.

Cursor.

  • Detection. .cursor/ directory, or legacy .cursorrules file.
  • Deploy directory. .cursor/ (project scope); ~/.cursor/ (user scope).
  • Supported primitives. instructions, agents, skills, commands, hooks, mcp. (No prompts.)
  • File conventions.
    • instructions: .cursor/rules/<name>.mdc
      • exactly one universal ** (scalar, padded, or single-item list) -> alwaysApply: true, no globs:
      • other non-empty applyTo, including ** mixed with scoped globs -> one comma-joined globs: scalar
      • absent, empty, or null applyTo -> neither key
    • agents: .cursor/agents/<name>.md
    • commands: .cursor/commands/<name>.md
    • skills: .agents/skills/<name>/SKILL.md (project) or ~/.agents/skills/<name>/SKILL.md (user)
    • hooks: .cursor/hooks.json
  • User scope. Supported. Instructions deploy to ~/.cursor/rules/<name>.mdc (same cursor_rules transform as project scope), and apm uninstall -g removes only package-owned rules. As at project scope, an existing rule with the same filename as a package rule is replaced on install. Local Cursor 2.1+ clients include ~/.cursor/rules in context (changelog). APM manages the files; other Cursor surfaces, such as cloud agents or remote workspaces, are not qualified. Settings UI “User Rules” are separate and not managed by APM.
  • Global compile. apm compile -g can also render global instructions to ~/.cursor/AGENTS.md for root-context readers that honor AGENTS.md.
  • Caveat. Command files use the shared claude_command transformer today; Cursor-specific frontmatter keys (author, mcp, parameters, …) are dropped at install time and surfaced via diagnostics.

OpenAI Codex CLI.

  • Detection. .codex/ directory.
  • Deploy directory. .codex/ plus .agents/ for skills. At user scope, a non-blank CODEX_HOME replaces ~/.codex/; skills stay in ~/.agents/skills/.
  • Supported primitives. agents, skills, hooks, mcp. (No instructions, prompts, or commands.)
  • File conventions.
    • agents: .codex/agents/<name>.toml
    • skills: .agents/skills/<name>/SKILL.md
    • hooks: .codex/hooks.json
  • Compile output. AGENTS.md only. Per-file instructions are not installed for Codex.
  • Plugin manifest. For targets: [codex], apm pack writes .codex-plugin/plugin.json; see apm pack.

Gemini CLI.

  • Detection. .gemini/ directory, or GEMINI.md.
  • Deploy directory. .gemini/ (project and user scope).
  • Supported primitives. commands, skills, hooks, mcp.
  • File conventions.
    • commands: .gemini/commands/<name>.toml
    • skills: .agents/skills/<name>/SKILL.md
    • hooks: merged into .gemini/settings.json
  • Compile output. GEMINI.md. Gemini CLI does not read per-file rules from .gemini/rules/, so instructions is compile-only.

Google Antigravity CLI (agy), successor to Gemini CLI.

  • Detection. None — explicit-only for auto-detection. Antigravity shares the cross-tool .agents/ root, so there is no unique auto-detect signal. Select it with --target antigravity or list it in apm.yml targets:; it is not part of --target all. Project-scope MCP writes are opt-in: .agents/ must already exist (APM does not create it automatically for MCP).
  • Deploy directory. .agents/ (project scope); ~/.gemini/config/ (user scope, skills only, deployed to ~/.gemini/config/skills/ where the Antigravity App, CLI and IDE read them; instructions and hooks are project-scope only; user MCP goes to ~/.gemini/config/mcp_config.json). Skills an earlier APM release recorded under ~/.gemini/antigravity-cli/skills/ are removed on the next apm install -g --target antigravity; files APM did not record there are left untouched.
  • Supported primitives. instructions, skills, hooks, mcp.
  • File conventions.
    • instructions: .agents/rules/<name>.md (formatted natively with trigger: glob and globs frontmatter mapped from the package applyTo patterns)
    • skills: .agents/skills/<name>/SKILL.md
    • hooks: .agents/hooks.json (Antigravity’s native schema: PreToolUse/PostToolUse/PreInvocation/PostInvocation/Stop)
    • mcp: .agents/mcp_config.json (project; mcpServers key) or ~/.gemini/config/mcp_config.json (user)
  • Compile output. AGENTS.md. Supports compilation deduplication: if .agents/rules/ exists and contains at least one deployed instruction rule file (for the discovered .apm/instructions/*.instructions.md set), those instructions are omitted from AGENTS.md to avoid duplicate context.

OpenCode.

  • Detection. .opencode/ directory.
  • Deploy directory. .opencode/ at project scope; ~/.config/opencode/ at user scope.
  • Supported primitives. agents, commands, skills, mcp.
  • File conventions.
    • agents: .opencode/agents/<name>.md
    • commands: .opencode/commands/<name>.md
    • skills: .agents/skills/<name>/SKILL.md (project) or ~/.config/opencode/skills/<name>/SKILL.md (user)
  • Caveat. OpenCode has no hooks concept; the hooks primitive is silently skipped for this target.
  • Global compile. apm compile -g writes ~/.config/opencode/AGENTS.md. OpenCode also retains applyTo sections in that generated file; other user-root targets compile only global instructions.

Windsurf / Cascade.

  • Detection. .windsurf/ directory.
  • Deploy directory. Native primitives deploy under .windsurf/ at project scope and ~/.codeium/windsurf/ at user scope; skills converge on .agents/skills/ at both scopes (~/.agents/skills/ at user scope).
  • Supported primitives. instructions, skills, commands, hooks, mcp.
  • File conventions.
    • instructions: .windsurf/rules/<name>.md
    • skills: .agents/skills/<name>/SKILL.md
    • commands: .windsurf/workflows/<name>.md
    • hooks: .windsurf/hooks.json
  • Agents. Not deployed. Cascade auto-invokes any SKILL.md by its description: frontmatter, so a separate agents primitive would collide with skills on the same path. Ship personas as skills under .apm/skills/<name>/SKILL.md instead.
  • User scope. Partial. instructions is excluded at user scope; Windsurf stores global memory in a single ~/.codeium/windsurf/memories/global_rules.md file with a different format.

Kiro IDE and CLI V3 target layout.

  • Detection. .kiro/ directory.
  • Deploy directory. .kiro/ (project and user scope).
  • Supported primitives. agents, instructions, prompts, skills, hooks, mcp.
  • File conventions.
    • agents: .kiro/agents/<relative-stem>.md — identity derives from the relative path. Only description, model, and tools frontmatter are emitted; name and unknown fields are stripped. Tools are permission-bearing: APM fails closed for that agent (no partial write, a warning names the value) if any tool value is not a Kiro tool selector: category tags read, write, shell, web, subagent; built-in tool IDs such as read_file, grep_search, web_fetch, execute_bash, invoke_sub_agent; @server or @server/tool; subagent/<agent>; @builtin, @mcp, *. Other agents in the install still deploy. Kiro may warn and fall back if the specified model is unavailable; APM passes model values through without validation. Ref: kiro.dev/docs/tools/ (accessed 2026-11-19).
    • instructions: .kiro/steering/<name>.md with inclusion: always or inclusion: fileMatch frontmatter
    • skills: .kiro/skills/<name>/SKILL.md
    • prompts: .kiro/prompts/<name>.md (project) or ~/.kiro/prompts/<name>.md (user). Qualified against Kiro CLI 2.33.0’s V3 prompt loader, not the IDE. APM converts <name>.prompt.md into body-only Markdown: the filename supplies the slash-command name, and YAML frontmatter is removed. Native arguments ${1} through ${10}, $ARGUMENTS, and ${@} are preserved. ${input:name} is not translated; APM warns so authors can replace it. Tool/model frontmatter is not an execution control in Kiro prompts; APM warns when dropping these or other unsupported fields. Workflow-only prompts are excluded. Relative body links are resolved using the source package, as for other prompt targets.
    • hooks: one JSON file per hook action under .kiro/hooks/
    • mcp: .kiro/settings/mcp.json (project) or ~/.kiro/settings/mcp.json (user)
  • MCP shape. JSON mcpServers entries use command/args/env for stdio and url/headers for remote servers. Kiro resolves ${VAR} placeholders at runtime, so APM preserves them rather than writing secrets to disk.
  • Scope. Covers the documented Kiro IDE and CLI v3 layout (unified harness). Ref: kiro.dev/docs/cli/v3/ (accessed 2026-08-03).
  • Prompt precedence. In the qualified CLI loader, project prompts take precedence over same-name user prompts; file prompts take precedence over same-name MCP prompts. APM does not change native precedence or trust. Local user-authored files are preserved unless --force is requested; uninstall removes only APM-owned prompts. Edited managed prompts are retained, and uninstall fails until those edits are resolved. This does not establish IDE prompt parity or authenticated model execution.

GitHub Copilot for JetBrains IDEs.

  • Detection. MCP runtime discovery uses the global github-copilot/intellij/ config directory. It does not auto-select a file-primitive target.
  • Deploy directory. User-scope mcp.json; see the JetBrains integration guide for OS-specific paths. macOS and Linux use $XDG_CONFIG_HOME (default ~/.config), while Windows uses %LOCALAPPDATA%.
  • Supported primitives. The IntelliJ-specific adapter supports MCP. Instructions, prompts, agents, and hooks deploy through the Copilot profile under .github/; skills deploy under .agents/skills/.
  • Scope. MCP configuration is user scope only. File primitives use the project or user scope selected for the Copilot profile. IntelliJ does not participate in plain all expansion.
  • Selection. --target intellij writes JetBrains MCP config once apm.yml exists. targets: rejects it, and a command that would create apm.yml (apm init --target intellij, or a first apm install --target intellij) refuses before writing. Record copilot for JetBrains projects.

Cross-client shared skills directory.

  • Detection. Never auto-detected. Select with --target agent-skills.
  • Deploy directory. .agents/.
  • Supported primitives. skills only.
  • File conventions. .agents/skills/<name>/SKILL.md.
  • Use case. Author-time target for shipping a SKILL bundle that any Skills-aware client (Codex, Copilot CLI, Claude Code, etc.) can read without per-tool deployment.

Hermes Agent.

  • Detection. Never auto-detected. Select with --target hermes or list it in apm.yml.
  • Deploy directory. Project-scope skills use .agents/skills/. User-scope skills and MCP servers use $HERMES_HOME (default ~/.hermes).
  • Supported primitives. skills, mcp, and compiled instructions.
  • File conventions.
    • skills: .agents/skills/<name>/SKILL.md (project) or $HERMES_HOME/skills/<name>/SKILL.md (user)
    • mcp: $HERMES_HOME/config.yaml under the mcp_servers: block
    • compiled instructions: AGENTS.md
  • Compile behavior. apm compile --target hermes emits AGENTS.md.

Grok Bot agent skills deployment.

  • Detection. Never auto-detected. Select with --target grok-bot or list it in apm.yml.
  • Deploy directory. agent-data/ at project scope; ~/agent-data/ at user scope (--global).
  • Supported primitives. skills only.
  • Package targets:. Packages that declare agent-skills are also accepted by grok-bot. With an explicit --target, the install fails only when no dependency has a compatible target, or when a package named on the command line and its whole subtree have none; other filtered dependencies warn.
  • File conventions. agent-data/workflows/<name>/SKILL.md (project) or ~/agent-data/workflows/<name>/SKILL.md (user).
  • Recommended install. For a live Grok Bot, use apm install --target grok-bot --global. Grok Bot reads skills from ~/agent-data/workflows/; a project-scope install only lands in ./agent-data/workflows/ under the current folder.
  • Use case. Deploys skill packages so Grok Bot reads them directly from agent-data/workflows/ without a manual copy or symlink from .agents/skills/ or apm_modules.
  • Commit posture. agent-data/ is a project-visible directory like .claude/ or .cursor/, not a cache — commit it (or .gitignore it deliberately) the same way you would any other target’s deploy root.
  • Security model. Skill deployment reuses the same BaseIntegrator collision- and path-containment checks as hermes and agent-skills; deployed files cannot escape the agent-data/workflows/ subtree.

Grok Build native configuration.

  • Detection. Auto-detected when .grok/ exists.
  • Selection. Included in all; no experimental flag is required.
  • Deploy directory. .grok/ at project scope; ~/.grok/ at user scope.
  • Supported primitives. instructions, agents, commands, and skills.
  • File conventions. .grok/rules/*.md, .grok/agents/*.md, .grok/commands/*.md, and .grok/skills/<name>/SKILL.md.
  • Compile behavior. Produces AGENTS.md.

xAI Grok Cloud skills deployment.

  • Detection. Never auto-detected. After enabling the experimental flag, selecting --target grok-cloud creates the deploy directory when needed.
  • Enable. apm experimental enable grok-cloud.
  • Deploy directory. .grok/ at project scope; ~/.grok/ at user scope.
  • Supported primitives. skills only.
  • File conventions. .grok/skills/<name>/SKILL.md.
  • Compile behavior. apm compile --target grok-cloud is a successful no-op.

OpenClaw agent runtime.

  • Detection. Never auto-detected. Select with --target openclaw after enabling the experimental flag.
  • Enable. apm experimental enable openclaw.
  • Deploy directory. .agents/skills/ at project scope (identical to agent-skills); ~/.openclaw/skills/ at user scope (--global).
  • Supported primitives. skills only.
  • File conventions. .agents/skills/<name>/SKILL.md (project) or ~/.openclaw/skills/<name>/SKILL.md (user).
  • Note. At project scope the output is identical to agent-skills. The --global user path is the distinguishing capability, deploying skills where OpenClaw reads its managed/local skill directory (priority 4 in the OpenClaw loading order).

Most targets with a skills primitive deploy to .agents/skills/<name>/SKILL.md. Claude, Grok Build, Kiro, and experimental Grok Cloud keep target-native skill directories.

To restore the pre-convergence per-target layout (skills land under each target’s own root), use the --legacy-skill-paths flag on apm install or set APM_LEGACY_SKILL_PATHS=1. apm audit --ci and apm uninstall reuse the layout recorded in apm.lock.yaml, so they do not need the flag.

MCP is not a TargetProfile primitive; it is wired by a separate integrator that writes per-client config files (e.g. .mcp.json for Copilot and Claude, .cursor/mcp.json, .claude.json, .kiro/settings/mcp.json) for every target in the active set that has an MCP client adapter. Active set follows the same --target > targets: > apm config set target > auto-detect chain as apm install: a runtime with an adapter but outside the active set is skipped and APM emits an [i] Skipped MCP config for X (active targets: Y) line so the gate decision is observable. The matrix above marks mcp supported when an adapter exists; whether the config gets written on a given install is a function of the active target set, not just adapter availability. See Install MCP servers for the gate behavior and apm mcp for the runtime surface.

LSP servers follow the same active-target gate but are written only for claude, copilot and opencode; see Install LSP servers.

Copyright (c) Microsoft Corporation. General documentation: CC-BY-4.0. Software, code examples and OpenAPM: Apache-2.0. See scope and exclusions.