automagent install

Install agent.yaml as native IDE agent files for Claude Code, Cursor, and Copilot

Usage

$ automagent install [target] [path] [options]

Both arguments are optional. Without a [target], the CLI auto-detects which IDEs are present. The [path] defaults to ./agent.yaml.

Options

FlagDescriptionDefault
--globalInstall to user-level agent directoryOff
--forceOverwrite existing filesOff

Targets

TargetOutput filesGlobal directory
claude-code.claude/CLAUDE.md~/.claude/agents/
cursor.cursor/.cursorrules or .mdcNot supported
copilot.github/copilot-instructions.md~/.copilot/agents/

How it works

  1. Reads and validates the local agent.yaml
  2. Determines which targets to install to:
    • If a target is specified, installs only to that target
    • Otherwise, detects IDE directories (.claude, .cursor, .github) in the current project
    • If no IDE directories are found, installs to all targets
  3. Generates native agent files for each target
  4. Writes the files to the project directory (or the global agent directory with --global)

Examples

Auto-detect IDEs and install:

$ automagent install

Install for a specific IDE:

$ automagent install claude-code

Install from a different agent file:

$ automagent install cursor ./agents/support.yaml

Install globally (user-level):

$ automagent install claude-code --global

Overwrite existing files:

$ automagent install --force

Notes

  • The command validates agent.yaml against the schema before installing. Invalid definitions are rejected.
  • Use --global to install agents to your user-level directory so they are available across all projects. Cursor does not support global agents and will be skipped.
  • Without --force, existing files are not overwritten. The CLI prints an error for each file that already exists.

See also