Skip to content
Guide Reference Download app

@claxedo/agent-extensions

@claxedo/agent-extensions lets a host install one package and materialize the supported components into runner-native locations: skills, MCP server configs, and local runner plugins. The package owns the deterministic mechanics (source parsing, fetch/cache, lock files, install lifecycle, materialization, and owned-artifact cleanup); product hosts own authorization, catalog allowlists, and fan-out to workspace runtimes.

Terminal window
npm install @claxedo/agent-extensions
Terminal window
pnpm add @claxedo/agent-extensions
Terminal window
bun add @claxedo/agent-extensions
import { createAgentExtensions } from "@claxedo/agent-extensions"
const extensions = createAgentExtensions({
projectDir: process.cwd(),
})
await extensions.install({
source: "acme/review-tools",
targets: ["codex", "claude", "opencode"],
})
console.log(await extensions.list())

The source uses supported owner/repo GitHub shorthand. For local project packages, use extensions.installCached({ packagePath, id, targets }) instead.

Terminal window
agent-extensions install acme/review-tools --targets codex,claude
agent-extensions list --json
agent-extensions materialize --targets codex,claude,opencode,cursor
agent-extensions doctor

--cache-dir controls durable package data; --runtime-dir controls generated runtime state (default <project>/.agent-extensions).

  • Targets["opencode", "claude", "codex", "cursor"].
  • Package shape — an extension bundles SKILL.md, mcp.json, and/or .cursor-plugin/plugin.json; conventional skills/, mcp/, plugins/ directories are also supported.
  • Snapshot & replayextensions.snapshot({ policyOverrides }) then applyRuntimeAgentExtensions(snapshot, dir) from /replay.
  • Safety model — ownership records in .agent-extensions/materialized.json; refuses to overwrite unmanaged paths; GitHub packages locked by resolved SHA and verified against recorded digests.

See the README on GitHub for the complete CLI reference, package-shape conventions, host-integration boundaries, and the safety model.