Skip to content
agents-toolsPublic

About

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

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

agents logo

agents

Manage agent components from declared sources, resolved to exact versions.

CI Swift 6.3+ Platforms: macOS 15+ and Linux License: MIT

Overview · Quick look · Install · Usage · Requirements · Documentation · Contributing · License

Overview

Declare skills, instructions, commands, subagents, MCP servers and settings once, restore their locked content with install, and preview changes before applying an update. agents supports Codex, Claude Code, Cursor, Gemini CLI, OpenCode, and Antigravity through agents-tools/core.

The executable owns commands and terminal presentation. Core owns source resolution, declarations, locks, discovery, installation, and recovery.

Quick look

Install a skill and two instruction sections, watch their source, then apply an upstream change:

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

Install

On macOS, versions 0.1.2 and later and development builds require macOS 15 or later. Earlier releases retain their original requirements.

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 on macOS or Linux:

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

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 init review
agents instructions add . review
agents instructions list
agents instructions update --apply
agents instructions export --json
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
agents manifest dump --json
agents components list --json
agents components list /path/to/source --alias team --group tools --json
agents components add /path/to/source --alias team --group tools
agents components remove review --kind command
agents import review.md --root /path/to/source --format claudeCommandV1
agents import review.md --root /path/to/source --format claudeCommandV1 --apply
agents mcp test local-tools --binding token=TOOLS_TOKEN --json
agents plugins list --scope user --json
agents plugins sync --scope user
agents plugins sync --scope user --apply

Declarations live in .agent/agents.yaml for project scope or ~/.agents/agents.yaml for user scope. The manifest format uses a versioned YAML mapping. agents manifest dump --json prints the local declaration as a JSON object with source locations without resolving sources.

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 files with front matter, discovered in a source's instructions/ or .agents/instructions/ directory, or in the project's own .agent/instructions/ as source .. Each agent file is generated from its sections, a section with paths goes to the nested file of the directory its patterns share, and Claude is forwarded where needed. A file that agents did not generate is taken over only with --replace. Use --agent antigravity on instructions add to install one Markdown rule per selected section in .agents/rules/ (project) or ~/.gemini/config/rules/ (user). agents instructions init <name> creates .agent/instructions/<name>.md, and agents instructions export maps locked targets to their sections.

Named ChatGPT prompts are declared in agents.yaml 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 all declared components and applies them in one transaction. install restores the exact locked components in one transaction; doctor audits managed deployments without recovery or writes. All three support combined --json reports.

components list inspects current components or discovers an exported source group. components add applies that group; components remove uses an exact managed identity and optional occurrence when names are ambiguous. Producer-owned members remain editable at their declaring source. import previews an explicit producer document and applies its canonical intent only with --apply.

mcp test explicitly starts or contacts one selected managed MCP server and discovers its tools. Runtime bindings use repeated --binding NAME=ENV_VAR mappings on apply or test commands. Values are read only when Core requests that symbolic binding and are not included in reports. plugins list compares declared kind: hostPlugin entries against observed Codex, Claude Code, and Antigravity plugin state without running host commands; plugins sync previews reconciliation and applies changes only with --apply. See the CLI reference for supported profiles, selection options and report schemas.

Requirements

  • macOS 15 or later, or Linux (source build).
  • Swift 6.3 or later to build from source.
  • SQLite 3 headers and library for Linux source builds (libsqlite3-dev on Ubuntu).
  • Git for Git-backed sources.

Documentation

The documentation index links the command reference, JSON schemas, and release checklist. Start with the CLI reference for options, state locations, output, and exit codes. See the changelog for user-visible changes.

Contributing

Read the organization's contributing guide and maintenance change flow, then follow the repository's contributing guide and development instructions below.

Development

swift build
python3 - <<'PYTEST'
import os, subprocess, tempfile
with tempfile.TemporaryDirectory(prefix="agents-test-home-") as test_home:
    environment = {key: value for key, value in os.environ.items()
                   if key not in ("CODEX_HOME", "CLAUDE_CONFIG_DIR")
                   and not key.startswith(("XDG_", "GIT_"))}
    environment.update(HOME=test_home, GIT_CONFIG_NOSYSTEM="1",
                       GIT_CONFIG_GLOBAL="/dev/null")
    subprocess.run(["swift", "test"], env=environment, check=True)
PYTEST
swift build -c release
swift format lint --strict --configuration .swift-format --recursive Package.swift Sources Tests

Executable tests create local Git sources and isolated homes in the system temporary directory. Every child process uses an explicit environment rather than inheriting agent or Git configuration. Fixtures are removed after tests.

Core is pinned to an exact development revision in Package.swift and Package.resolved. To use an authorized local core worktree without changing the package manifest:

swift package resolve
swift package edit core --path /path/to/core-worktree
# Run the isolated test command above.
swift package unedit core

Keep the local edit inside your authorized development scope. Follow the release checklist when preparing a release. The CLI version is defined once in Sources/CLI/EntryPoint.swift.

Continuous integration

The workflows run on branch pushes, pull requests, and manual dispatch. Source policy also runs when a pull-request title changes. The required contexts are declared in the organization's maintenance standard:

Context Validation
policy / policy Conventional Commit subjects, PR title, and added-line policy
validate / result Strict format lint, package tests, release build, and terminal recording check

Package configuration selects Xcode 26.6 on macos-26 and a pinned Swift 6.4.1 Noble container image for Linux validation. The Linux job installs the SQLite development package and runs the CLI suite as the checkout owner. Package.swift defines the minimum toolchain and macOS versions. Formatting uses the default paths: Package.swift, Sources, and Tests. Executable tests cover help, version, and usage errors in an isolated environment.

The shared workflow's demo job builds agents and re-records script.yml. On drift it uploads the regenerated recording.json for review. Terminal SVGs and the committed social preview are rendered and checked locally with the github-readme-design toolchain against agents-tools/.github's DESIGN, fonts and catalog. See terminal demo maintenance.

Shared callers use the same full commit SHA from agents-tools/github-workflows. For workflow edits, run actionlint on every workflow alongside the development checks above. Verify the required contexts on a real candidate run before changing required-check settings. Weekly Dependabot updates cover Swift packages and GitHub Actions.

License

agents is available under the MIT License.

About

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

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages