Install and update agent skills and instructions, resolved to exact versions.

Works with Codex, Claude Code, Cursor, Gemini CLI and OpenCode. Instructions become managed sections of each agent's instruction file, upstream changes are previewed before you apply them, and the same instructions render for ChatGPT.

Quick look

Terminal session: install pdf and two instruction sections, watch their source, and apply an upstream change to AGENTS.md.

Install

Development builds and the next release require macOS 15 or later. Earlier releases retain their original requirements; the Homebrew formula's requirement changes with the release that ships this minimum.

Install the latest release from the Homebrew tap:

brew install agents-tools/tap/agents
agents --help

For a development build of master, use:

brew install --HEAD agents-tools/tap/agents

See the tap documentation for packaging and channel details.

To build from source instead:

git clone https://github.com/agents-tools/cli.git
cd cli
swift build -c release
.build/release/agents --help

Place .build/release/agents in a directory on your PATH. To run from this checkout, use .build/release/agents or swift run agents.

Usage

agents skills add https://github.com/anthropics/skills.git --all --agent codex
agents skills list
agents skills list --scope user --json
agents instructions add /path/to/rules canonical-artifacts
agents instructions list
agents instructions update --apply
agents instructions render chatgpt weekly | pbcopy
agents watch add https://github.com/anthropics/skills.git
agents watch
agents watch diff https://github.com/anthropics/skills.git
agents watch seen https://github.com/anthropics/skills.git
agents install
agents update
agents update --apply
agents skills remove pdf
agents skills init my-skill
agents doctor --root /path/to/project-a /path/to/project-b --json

Project scope is the default and uses the current directory. User scope is selected with --scope user. Commands never prompt for confirmation.

watch subscribes to sources without installing content, reports upstream changes since the last watch seen, and previews file differences. Removing a subscription with watch remove keeps installed skills and instructions.

Instructions are Markdown sections discovered in a source's instructions/ or .agents/instructions/ directory. Managed blocks preserve surrounding custom content in agent files, with Claude forwarding where needed. --agent on instructions add, remove, or update sets the recipients of the scope's entire section list. agents instructions init <name> creates <name>.md.

Named ChatGPT prompts are declared in agents.json and locked with agents instructions update --apply; render emits only their locked sections and optional custom content. Updates identify changed prompts to re-paste. Top-level update previews skills and instructions together and applies them in one transaction. install and doctor process skills then instructions. All three support combined --json reports.

Repositories

Use agents

  • cli

    The agents command: add skills and instructions from local paths, Git repositories or well-known indexes, write them for each agent, restore them from the lock and watch sources for changes.

Build on it

  • core

    Swift library behind agents and skill: sources, declaration, lock, cache, skills and instructions.

  • github-workflows

    Shared GitHub Actions workflows and checks for agents-tools and skill-cli repositories.

Install

Learn