Targets

Where artifacts get installed.

Overview

Targets define the directories where AGPM installs artifacts. Only targets explicitly configured in agpm.json will receive artifacts - if a target is not listed, it won't be installed to.

Supported Targets

AGPM supports these built-in targets:

TargetSkills DirectoryCommandsHooks
claude-code.claude/skills/.claude/commands/.claude/hooks/
opencode.opencode/skills/-.opencode/hooks/
codex.codex/skills/--

Configuring Targets

Target values can be:

  • true - Enable target (simplified form)
  • {} - Enable target (allows future options)
  • false - Disable target
{
  "targets": {
    "claude-code": true,
    "opencode": true
  }
}

How It Works

When you run agpm install:

  1. Each artifact is copied to all explicitly configured target directories
  2. Directory structure is created if it doesn't exist
  3. Files are copied preserving the artifact's internal structure

Enabling Multiple Targets

Install to multiple AI tools by listing them:

{
  "targets": {
    "claude-code": true,
    "opencode": true,
    "codex": true
  }
}

Enabling a Single Target

To install only to a specific tool, configure only that target:

{
  "targets": {
    "claude-code": true
  }
}

See Also