Concepts
Runtime adapters
Compare runtime adapter delivery for Claude Code, Codex, Cursor, DeepSeek Harness, Grok, Pi, Oh My Pi, and OpenCode.
Coding assistants do not share one file layout, tool set, or lifecycle event model. A runtime adapter converts a Kit into the surfaces the selected assistant can actually discover and use.
An adapter is a compatibility boundary, not a promise of identical behavior. If a runtime has no equivalent for a component, AgentKit may preserve it as inactive supporting content, drop it with a warning, or report it as unsupported.
Setup targets and adapter stages
ak setup and onboarding offer seven released runtime IDs, and
ak kit init --target accepts them too (it also accepts the export-only agy
and portable). ak setup --adapter also lists the Production-stage
opencode adapter.
Adapter stages come from the AgentKit runtime support matrix and describe how
far each adapter's development has gone. A stage is not a support claim: a
Production adapter can still fail on an operating system, and a Spike adapter
can be certified everywhere. Read the support tiers below for what was measured.
| Runtime | Target ID | Adapter stage |
|---|---|---|
| Claude Code | claude-code | Production |
| Codex | codex | Production |
| Cursor | cursor | Production |
| DeepSeek Harness | dsh | Production |
| Grok Build | grok | Spike |
| Oh My Pi | omp | Spike |
| Pi | pi | Spike |
Three capabilities are separate, and a target can offer one without the others:
- Projection writes Kit content into the runtime's files. All seven targets support it, but file projection does not prove live runtime behavior.
- Skill dispatch runs one resolved Skill with
ak run --target. It acceptsclaude-code,codex,cursor,dsh,grok,omp, and theopencode(Production, beta channel). Pi is projection-only and has noak run --target pi. - Agent and session orchestration is a runtime or workflow capability, not a result of installing a Kit.
Two other names are not setup targets. agy and portable are export-only
routes that write files without creating installed lifecycle state, and Cloud
Harness is a distribution channel rather than a local setup runtime.
OpenCode: Production on the beta channel
OpenCode 1.x and 2.x share the same native layout. Starting with release
v3.3.0-beta.1, the registry publishes both Kits for OpenCode. With that CLI
and release channel, install with
ak kit init <kit> --target opencode --channel beta and refresh with
ak update --target opencode --channel beta. Older builds that register the adapter use
ak kit init --local --kits-dir <dir> --target opencode.
ak setup --adapter opencode records the adapter, and
ak run --target opencode dispatches a Skill. From v3.3.0-beta.15 the
adapter is at the Production stage on the beta channel, until a stable release
ships it. OpenCode 1.18.18 is Certified on macOS (Apple silicon), 2.4.1 was
live-tested there, and Windows and Linux stay Assumed. See
Using AgentKit with OpenCode for setup and known limits. The Desktop installer does not list OpenCode.
Support tiers: certified and assumed
The adapter stage describes how far an adapter's development has gone. The support tier is the support claim: it describes how much evidence exists for one runtime on one operating system. Each runtime and OS combination in the table below is one of:
| Tier | Meaning for you |
|---|---|
| Certified | A measured run passed install, discovery, invocation, and uninstall on that OS. |
| Assumed | The runtime ships on source and unit tests, but no measured run has certified it on that OS. It is expected to work, but unverified behavior is more likely. |
Current tiers:
| Runtime | macOS | Windows | Linux |
|---|---|---|---|
| Claude Code | Certified | Certified | Certified |
| Pi | Certified | Certified | Certified |
| Oh My Pi | Certified | Certified | Certified |
| DeepSeek Harness | Certified | Certified | Certified |
| Codex | Certified | Assumed | Certified |
| Cursor | Assumed | Assumed | Assumed |
Antigravity (agy) | Assumed | Assumed | Assumed |
Runtimes not listed, such as Grok Build, have no recorded tier yet.
The columns cover the measured hosts only: macOS means Apple silicon (arm64), Windows and Linux mean x64 (amd64), and Linux means Ubuntu under WSL2. On any other host, such as an Intel Mac or an ARM machine, every listed runtime is reported as assumed.
If you hit a problem with an assumed runtime, please
report it with your
runtime, OS, and ak doctor output. Reports are how an assumed combination
becomes certified.
To see which of your installed runtimes are assumed on this machine, run
ak doctor --check runtime_support_tier.
Desktop shows the same tier next to each detected agent during
onboarding.
Project and user scope
Scope answers where the installation is available:
| Scope | Availability | Use it when |
|---|---|---|
| Project | The current workspace | The Kit should travel with or apply only to one project. This is the default. |
| User | The runtime's user directories | You want the Kit available across projects for your user account. The CLI selects this with --global. |
Scope does not determine ownership of your repository. A project-scoped install lets AgentKit manage its recorded installation files in that project; it does not make every project file AgentKit-owned.
Project and user copies can coexist. The runtime may then shadow or duplicate a command or Hook, and updating or removing one scope does not automatically delete the other. Inspect both scopes when behavior appears twice or a runtime loads a different copy than expected.
Committing a project install
You can commit a project-scoped Claude Code install so the team shares the Kit.
A native project install registers the AgentKit status line in
.claude/settings.json with the same portable form that project Hooks use:
node "${CLAUDE_PROJECT_DIR}/.claude/ak-<kit>-statusline.cjs"Claude Code sets CLAUDE_PROJECT_DIR to the project root when it runs the
status line. The committed file therefore keeps working after you clone the
project on another machine or into another path, without running ak there.
Running ak update on different machines leaves the entry byte-identical. Like
project Hooks, the command finds node on the PATH Claude Code runs with.
By default, a project-scope plugin install places its plugin directory at
<project>/ak-<kit>/ and registers the status line in the same .claude/settings.json with the
equivalent portable form:
node "${CLAUDE_PROJECT_DIR}/ak-<kit>/ak-<kit>-statusline.cjs"User-scope (--global) installs, including user-scope plugin installs, and a
project plugin whose status line script sits outside that
<project>/ak-<kit>/ directory still record the absolute node binary and
script path.
To manage the Kit from a fresh clone, run ak kit init <kit> --yes there
once. The clone does not carry the install record that AgentKit keeps under
.agentkit/ (it stays out of Git), so this first run adopts the committed files
that still match the Kit byte for byte, rebuilds the record, and needs no
--force. Install the same Kit version that was committed (pass
--version <version> if a newer one is out), because only files that match it
are adopted. A committed file your team edited is kept and reported, not
overwritten. Until that run, ak update in the clone prints this exact command;
afterwards it refreshes the Kit as usual.
A project install made by an older ak records absolute paths. Run ak update
once (in a fresh clone, run ak kit init <kit> --yes first) and commit the
result: AgentKit re-points its own
entry to the portable form when its script sits in this checkout's .claude
directory (or, for a project plugin install, any ak-<kit> plugin directory, including
one in another checkout),
or when the recorded script is missing on this machine (a file committed on
another machine). A second run changes nothing. Uninstall removes
the portable form and this checkout's absolute form. A status line you
customized, one that belongs to another Kit or tool, one written with another
variable such as $CLAUDE_PROJECT_DIR without braces, or one whose recorded
.claude script still exists elsewhere on this machine (such as another checkout of the
same project) stays untouched, and AgentKit prints a warning explaining how to
switch to the AgentKit status line.
Status line context percentage
The Engineer and Marketing Kit status lines show how full the context is. From
v3.3.0-beta.17, when Claude Code's CLAUDE_CODE_AUTO_COMPACT_WINDOW setting is
a positive whole number below the model's context window, the percentage is
measured against that window, because that is where Claude Code compacts. For
example, with the setting at 500000 and about 120k tokens in context, the
status line shows about 32% instead of a much lower share of a 1M window.
The status line reads the value from the environment first, then from the env
block of .claude/settings.local.json, .claude/settings.json, and your user
settings.json (under CLAUDE_CONFIG_DIR when it is set). A blank value is
skipped, and the first place that sets a value wins. If that value is not a
whole number, is not smaller than the model window, or is too small to leave
room for the compaction buffer, the status line keeps the previous behavior: the
percentage of the full model window.
Native and plugin delivery
Delivery answers how the runtime loads the installation:
- Native delivery writes supported components to the runtime's normal project or user locations. It is the default install mode.
- Plugin delivery packages and activates the Kit through a runtime's plugin
mechanism. In the current supported model, this is an explicit Claude Code
choice made with
--switch-to-plugin, at either project or user scope.
Scope and delivery are independent. Claude Code can therefore use project-native,
user-native, project-plugin, or user-plugin delivery. Codex, Cursor, DeepSeek
Harness, Grok, Pi, and Oh My Pi installs use their native project or user layouts.
Local-source Grok and DeepSeek Harness installs remain available for development
and CI with an explicit --local --kits-dir source.
--switch-to-plugin does not select plugin delivery for these targets.
Within one scope, native and plugin delivery for the same Claude Code Kit are mutually exclusive. Selecting the other mode starts an explicit transition; it does not leave both AgentKit-owned copies active in that scope.
Switching delivery mode is a lifecycle transition. Review the preview because AgentKit may need to withdraw its old registration and create a new one while preserving foreign or modified content.
Capability differences
The supported adapters share core file and tool workflows, but their active surfaces differ:
| Runtime | What to expect |
|---|---|
| Claude Code | Native or explicit plugin delivery. Skills, agents, slash commands, rules, hooks, and the AgentKit status line can be active at project or user scope. A native project install, and a project plugin install whose plugin directory is inside the project, register the status line with a portable ${CLAUDE_PROJECT_DIR} command, so a committed .claude/settings.json works on any clone. |
| Codex | Native Skill discovery, rules, and Agent dispatch through the local AgentKit runtime. Rules are active for user-scope installs only: Codex does not read the <project>/.codex/AGENTS.md a project install writes, and ak doctor --check codex_runtime_limits lists such files. Hook support is partial; unsupported groups are not projected, and task-state refresh occurs at supported turn and subagent boundaries rather than after every task tool call. Kit command files remain inactive supporting content, and Codex has no AgentKit status-line surface. |
| Cursor | The adapter projects Skills, agents, rules, and hooks at project or user scope. Kit command files remain inactive supporting content, there is no AgentKit status-line surface, and the adapter does not expose a dedicated plan-management tool. Kit hook scripts also get runnable copies below .cursor/scripts/, beside the hooks, so a hook's require('../scripts/...') resolves; install and refresh keep those copies current and uninstall removes them, but Cursor does not load that tree on its own. Live install, update, and invocation coverage is not complete across provider setups, so do not infer full parity from source support alone. |
| DeepSeek Harness | Signed registry Kit target with native projection under <project>/.dsh/, plus Skill dispatch through ak run --target dsh. Setup records the enabled adapter and resolves AGENTKIT_DSH_BIN or dsh; it does not install Kit packages. Confirm the user-scope destination from the install summary. Commands and unsupported exports remain inactive sidecars. Explicit local-source installs remain available for development and CI. |
| Grok Build | Signed registry Kit target with native projection. Rules, Skills, agents, and supported Hooks go below <project>/.grok or ${GROK_HOME:-~/.grok}; lifecycle metadata stays separately below <project>/.agentkit/adapters/grok/<kit> or ${AGENTKIT_HOME:-~/.agentkit}/adapters/grok/<kit>. Kit hook scripts get runnable copies below .grok/hooks/scripts/, beside the hooks, so a hook's require('../scripts/...') resolves; install and refresh keep them current and uninstall removes them. Commands and unsupported exports remain inactive sidecars. Explicit local-source installs remain available for development and CI. |
| Pi | Source-registered --target pi Kit projection. ak setup --adapter and onboard --target list pi as an emitter-only Kit target. Project installs write portable ak-<slug> Skills below .pi/skills/, remapped Agents below .pi/agents/, owned rules below .pi/rules/, and first-party extensions below .pi/extensions/. Conditional global installs write directly under the active Pi coding-agent profile. Pi remains a spike for dispatch: no ak run --target pi, no complete harness wrapper, no .pi/commands/, and inactive sidecars stay under lifecycle ownership. Pi keeps its native TUI footer by default; AgentKit calls setFooter only when an explicit non-none statuslineMode is supplied. |
| Oh My Pi | Native install target for project or user scope, plus non-interactive Skill dispatch through ak run --target omp. Skills, Agents, rules, and Kit instructions use OMP-native discovery surfaces; unsupported exports remain inactive sidecars. Oh My Pi owns its configured backend and credentials. |
| OpenCode | Native projection (Production, beta channel). Skills, Agents, and commands go below <project>/.opencode/ or $XDG_CONFIG_HOME/opencode (default ~/.config/opencode, override AGENTKIT_OPENCODE_HOME), and rules merge into one marker-bounded Kit section of AGENTS.md; uninstall removes only that section. Agents project as mode: subagent without a model, so the session or opencode.json model applies. From v3.3.0-beta.17, Kit MCP servers merge into the project or global opencode.json with per-server ownership. From v3.3.0-beta.20, Hooks run on OpenCode 2.x through an AgentKit-owned plugin in plugins/agentkit-<kit>/. Hooks on OpenCode 1.x, the status line, output styles, schemas, and scripts stay inactive sidecars. OpenCode also loads .claude/skills and .agents/skills, so a same-named Claude Code or Codex Skill is offered twice; the install warns and touches neither. |
Pi projection and discovery
A project install with ak kit init <kit> --target pi writes portable Skill
directories such as .pi/skills/ak-cook/SKILL.md, remapped Agents such as
.pi/agents/Explore.md, .pi/agents/Plan.md, and kit-scoped
.pi/agents/ak-<kit>-*.md, plus owned rules under .pi/rules/. Hooks,
coding-level files, the emitted kit statusline .cjs, runnable scripts, and
sidecars live under .pi/extensions/agentkit-hooks-<kit>/; the shared Agent
runner lives under .pi/extensions/agentkit-agent/. AgentKit does not write
.pi/commands/ or register Pi slash commands. The kit statusline file is
emitted beside the extension; Pi keeps its native TUI footer unless you pass an
explicit non-none statuslineMode.
Successful asset projection does not guarantee an active extension bridge.
If the adapted Hook closure falls below the required failure-closed security
floor, Skills and Agents still project, but the bridge entrypoint stays inactive
or AgentKit retires that Kit's own earlier bridge. The summary names the missing
security-coverage pairs and warns when the Kit has bridge-delivered content:
Hooks, rules, output styles, or statusline. With none of that content, there is no
inactive-bridge warning. An inactive bridge does not load the Kit's Hooks, rules,
output styles, statusline, or ask_user tool.
The Hook bridge runs Hook scripts with Node.js, so node must be on the PATH
Pi starts with. Pi can run as a compiled single-file binary, so the bridge
reuses Pi's own executable only when that executable is itself Node. Without
Node, the bridge reports AGENTKIT_NODE_MISSING, and Hook groups that fail
closed block the call with AgentKit security hooks could not run. Install
Node.js and restart Pi, or uninstall the Kit from Pi.
With --global, AgentKit writes directly below the active Pi coding-agent
profile, resolved from PI_CODING_AGENT_DIR or ~/.pi/agent; it does not add an
extra .pi/ segment under that profile. A fresh install refuses an occupied
profile by default. Pass --force only after reviewing the occupied paths and
deciding to authorize the overwrite. ak update --global refreshes a global Pi
install from the registry or a local source, like the other registry runtimes.
Pi projection is separate from Oh My Pi dispatch: this release does not provide ak run --target pi or wrap Pi's agent
loop.
Oh My Pi projection and discovery
A project install with ak kit init <kit> --target omp writes portable Skills
below .omp/skills/ak-<slug>/, with top-level name: ak-<slug> in each projected
SKILL.md. Agents go to .omp/agents/<name>.md, and rules go to
.omp/rules/<name>.md. Body aliases such as /ak-cook and $ak-cook are not
rewritten. AgentKit also adds one Kit-scoped block to the project's
AGENTS.md, delimited by <!-- AGENTKIT-OMP:START:<kit> --> and
<!-- AGENTKIT-OMP:END:<kit> -->. Updating or uninstalling that Kit changes only
its managed block and preserves user content.
With --global, AgentKit resolves the OMP root in this order:
AGENTKIT_OMP_HOME, OMP_HOME, PI_CODING_AGENT_DIR, then ~/.omp/agent.
The same skills/, agents/, and rules/ directories plus AGENTS.md live
below that resolved root. Commands, Hooks, schemas, scripts, status-line files,
and other unsupported Kit surfaces stay inactive under
.agentkit/adapters/omp/<kit>/sidecars/ instead of being projected as native
OMP behavior.
Installation and dispatch are separate routes. ak kit init ... --target omp
creates the discoverable Kit projection; ak run <kit>/<skill> --target omp
runs one resolved Skill through the local OMP CLI without replacing that
installed inventory or changing the <kit>/<skill> selector.
Trusted project OMP also discovers project .agents/skills. If canonical forms
such as ak-advise and ak-advise collide, a project OMP install in
.omp/skills shadows the project .agents/skills copy. When you use a global
OMP install from that trusted project, the project .agents/skills copy shadows
the OMP profile copy. ak kit init --target omp warns and continues: it still
emits OMP content, does not delete or rewrite either Skill, does not alter
.agents or OMP settings, and does not require --force or return exit 6.
Native Grok exec-form command Hooks use the owned
agentkit-grok-envelope-shim.cjs launcher to add the Claude-shaped fields and
tool names that Kit scripts expect. HTTP handlers and command handlers without
exec-form arguments receive Grok's raw camelCase envelope. Project Hooks remain
inactive until you explicitly trust the project. Hook timeout, crash, malformed
output, and shim errors fail open; only an applicable PreToolUse denial blocks
the action, so pair safety-sensitive Hooks with Grok permissions.
ak run <kit>/<skill> --target dsh and ak run <kit>/<skill> --target grok
are native AgentKit dispatch routes. DeepSeek Harness resolves AGENTKIT_DSH_BIN
or dsh; Grok resolves AGENTKIT_GROK_BIN or grok. AgentKit owns process
framing, while the runtime and user own the model, authentication, trust,
permissions, sandbox, and native config. Grok dispatch is separate from Grok's
Claude-compat scanner reading .claude settings. Remote DeepSeek Harness and
Grok init and refresh use signed registry packages. Use --local --kits-dir
only when you intentionally select a development or CI source.
For native Claude Code Hooks, AgentKit checks the complete runtime closure before changing files. Preflight stops without mutation when untracked or modified content would collide with runtime-owned output. Replacement requires an explicitly authorized force operation, and a collision introduced after preflight is still rejected by the final check instead of being overwritten.
A Codex projection limit does not fail the installation. A fully unsupported
group is omitted and listed under Hook groups not projected; JSON can include hooksDropped and droppedHookSummaries. A partial
matcher keeps its handlers on the supported atoms and is listed under Hook
matchers narrowed (some tool matches unsupported on this target); JSON can
include hookMatchersNarrowed and narrowedHookSummaries. All four fields are
optional and omitted at zero.
For Engineer, the unsupported task-state PostToolUse group is fully dropped,
while two shared matchers are narrowed. For Marketing, three matchers are
narrowed and no group is fully dropped. These are capability disclosures, not
new failure classes. Claude Code and Cursor adapter destinations and inventories
are unchanged; do not infer new Cursor parity from shared package changes.
A global Codex home installed before AgentKit claimed its Hook scripts can
still hold older copies of shared Hook files such as
hooks/lib/ck-config-utils.cjs. A global install or refresh
(ak kit init or ak kit refresh <kit> --target codex --global --yes, or
ak update) replaces such a file with the kit's current version only when its
exact bytes match a version AgentKit shipped at that path and no other
installed kit claims it. It snapshots the old copy first, and the notice names
the backup and ak backups restore <id>. If the snapshot fails, nothing is
replaced and the command fails. A file with any other content, such as your own
edit, is kept, and the warning names its path and the refresh command to run
after you move it aside. The same run removes a duplicate hooks.json entry
that an earlier install wrote for the same script with different quoting, so
Codex no longer runs that Hook twice, again after a snapshot. Neither cleanup
runs under --fresh or for a project install. If you installed several kits
before this, refresh each of them. After hooks.json changes, Codex runs a new
or moved Hook only after you trust it: open Codex and review /hooks.
On Windows, AgentKit can make an eligible .cjs Hook inside the resolved Codex
home work from an ordinary path containing spaces by creating a managed
sibling .cmd shim. This does not cover a spaced external path, a path with
cmd.exe metacharacters, a non-ASCII shim name, or unsafe/non-ASCII baked
arguments; those cases remain unsupported on Windows and warn. Empty arguments
are rejected distinctly, identical same-path shims deduplicate, and a conflicting
same-path shim keeps the first emitted content and warns. Paths that do not need
a shim continue to use the direct command.
On Windows, Codex runs Hook commands through the session shell, which defaults
to PowerShell and can turn exit code 2 into 1. Codex treats only exit code 2 as
a block, so on Codex the AgentKit guard Hooks (privacy, scout, secrets, context
firewall, and simplify gate) block through the JSON decision Codex honours on
exit 0 instead: permissionDecision: "deny" for PreToolUse and
decision: "block" for UserPromptSubmit. Blocking therefore works under both
the PowerShell and cmd.exe session shells. Other runtimes keep exit code 2.
A wrapper-managed Codex home may link only its final hooks leaf to the
resolved user's canonical ~/.codex/hooks directory. The link may be a POSIX
symlink or a Windows directory junction. AgentKit resolves that alias once and
uses the canonical path for Hook writes, commands, rollback, and ownership. A
linked parent, or a leaf that resolves to anything other than the canonical user
hooks directory, is refused.
Do not infer runtime support from a file name or from another runtime's behavior. Use the install summary and the relevant Skill documentation as the authority for what became active. A warning about preserved or omitted content is a capability result, not necessarily a failed installation.
Choosing an adapter
- Choose the assistant where you will run the workflow.
- Choose project or user scope based on where it should be available.
- For Claude Code, keep native delivery unless you deliberately want plugin activation and lifecycle.
- Choose DeepSeek Harness with
--target dshwhen you want the signed DeepSeek Harness Kit package, or useak run --target dshfor direct Skill dispatch through the localdshbinary; add--local --kits-dironly for development or CI sources. - Choose Grok Build with
--target grokwhen you want the signed Grok Kit package; add--local --kits-dironly for development or CI sources. - Choose Oh My Pi with
--target ompwhen you want the signed OMP Kit package, or useak run --target ompfor direct Skill dispatch. - Review adapter warnings after installation, especially for Hooks and runtime-only UI surfaces.
- Start a fresh runtime session if the assistant has not reloaded newly installed content.
For installation commands, see Installing kits. For the component model, see Kits, Skills, Agents, and Hooks.
Runtime capability matrix
Package availability is release-bound; installation does not prove dispatch or live provider parity.
| Runtime | Registry package | Project / global | Setup/onboard | ak run | Limits |
|---|---|---|---|---|---|
| Claude Code | Yes | Yes / Yes | Yes | Yes | Native/plugin |
| Codex | Yes | Yes / Yes | Yes | Yes | MCP runtime dispatch |
| Cursor | Yes | Yes / Yes | Yes | Yes | Production projection; live parity is not fully verified |
DeepSeek Harness (dsh) | Yes | Yes / Yes | Yes | Yes | Native projection and dispatch |
| Grok / Oh My Pi | Yes | Yes / Yes | Yes | Yes | Provider authentication is runtime-owned |
| Pi | Yes | Yes / Yes | Yes | No | Emitter target; orchestration is separate |
Cloud Harness (cloud-harness) | Yes (distribution-only) | No / No | No | No | Signed package published for the Cloud Harness MCP harness; ak rejects it as a local install target |
| AGY | No | No / Yes | No | No | Global-only Skill and optional Agent export; signed Claude Code package source; no project, Hook or MCP projection |
| Portable | No | Export with --out | No | No | Standalone files; no installed runtime lifecycle |
| OpenCode | From v3.3.0-beta.1 | Yes / Yes | Setup only | Yes | Beta channel from v3.3.0-beta.15 (Production). Older builds require a local Kit source. MCP servers merge into opencode.json from v3.3.0-beta.17; Hooks run on OpenCode 2.x from v3.3.0-beta.20. |
AGY is not a full refresh peer. Its global export and ownership cleanup do not imply ak run --target agy support. Setup target choices exclude export-only targets. cloud-harness is likewise not a kit init, setup, or ak run target; the Cloud Harness MCP harness consumes its signed package directly. No fresh live provider canary is claimed by this matrix.
hooksDeferred is a subset of hooksDropped: the harness bridge defers that subscription, which does not mean the runtime cannot express it. Read the summary to distinguish deferred from unsupported groups.
For model selection and Agent-specific overrides, read Agent models across runtimes.