Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,22 @@ publication follows the [release checklist](Documentation/Reference/Release.md).

## Unreleased

## [0.3.2] - 2026-11-30

Built on agents-tools/core 0.3.2.

### Added

- List declared and observed host plugins with `agents plugins list`. Preview
changes with `agents plugins sync` and synchronize with `--apply`.
- Doctor reports advisory host plugin drift, skill collisions, legacy Codex
shared skill links, and skill listing budgets.

### Changed

- New user-scope Codex skill installations use `~/.codex/skills`. Use
`agents doctor --scope user --agent codex` to identify legacy shared links.

## [0.3.1] - 2026-11-29

### Added
Expand Down
103 changes: 89 additions & 14 deletions Documentation/Reference/CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
`agents` manages declared agent components. Resolution, installation,
state, and recovery operations use `AgentsCore`, `AgentsSkills`, and
`AgentsInstructions`. Combined lifecycle, content audit, component inspection,
import and MCP tests use `AgentsUpdates`. `AgentsManifest` owns declaration
import, host plugin synchronization, skill governance, and MCP tests use
`AgentsUpdates`. `AgentsManifest` owns declaration
parsing and editing, and the manifest dump contract.

## Commands
Expand Down Expand Up @@ -31,6 +32,8 @@ agents components inventory [--scope project|user]
agents components list [<source> --group <group> --alias <alias>] [--json] [--scope project|user]
agents components add <source> --group <group> [--alias <alias>] [--binding NAME=ENV_VAR] [--scope project|user]
agents components remove <name> [--kind <kind>] [--identity <id>] [--occurrence <id>] [--agent <agent>] [--binding NAME=ENV_VAR] [--scope project|user]
agents plugins list [--scope project|user] [--agent <agent>…] [--declared-only] [--json]
agents plugins sync [--scope project|user] [--agent <agent>…] [--apply] [--json]
agents import <document> --format <profile> [--root <directory>] [--select <member>] [--apply | --json] [--binding NAME=ENV_VAR] [--scope project|user]
agents bundle init <directory> --name <package> --package-version <version>
agents bundle pack [--output <file> | --publish-to <directory>] [--reviewed-digest <digest>]
Expand Down Expand Up @@ -75,14 +78,14 @@ agents lifecycle trusted [--json]
agents lifecycle untrust [<path> | --root-id <id>] [--json]
agents install [--json] [--binding NAME=ENV_VAR]
agents update [--apply | --json] [--binding NAME=ENV_VAR] [--replace] [--changing-access]
agents doctor [--root <dir>…] [--ci] [--require-organization-policy] [--json]
agents doctor [--scope project|user] [--agent <agent>…] [--root <dir>…] [--ci] [--require-organization-policy] [--json]
agents export-patch [--scope project|user] [--dry-run] [-o <directory>] [--json]
agents audit [--scope project|user] [--file <path> | --agent <agent>…] [--ci] [--format markdown|json|sarif]
agents audit --file <path> --strip [--scope project|user] [--apply]
```

`agents --help`, `agents skills --help`, `agents instructions --help`,
`agents watch --help`, `agents manifest --help`, `agents auth --help`, and each
`agents watch --help`, `agents plugins --help`, `agents manifest --help`, `agents auth --help`, and each
command's `--help` describe their options.
Running a group without a subcommand prints help, except `agents watch`, which
runs `watch status` and accepts its options. `agents --version`
Expand All @@ -109,14 +112,16 @@ Examples:
| --- | --- | --- |
| `--scope project\|user` | Where state lives: project (./.agent) or user (~/.agents). Default: project. | Commands with a scope option. Lifecycle trust commands use the current project or the user trust store. |
| `--agent <agent>` | Agent to install for: codex, claude-code, cursor, gemini-cli, opencode, or antigravity. Repeat for several. Default: the agents already recorded for this skill or source, else the declaration's agents, else codex and claude-code. | `skills add` |
| `--agent <agent>` | Limit to this agent: codex, claude-code, cursor, gemini-cli, opencode, or antigravity. Repeat for several. Default: all recipients. | `skills list`, `skills remove`, `doctor` |
| `--agent <agent>` | Limit to this agent: codex, claude-code, cursor, gemini-cli, opencode, or antigravity. Repeat for several. Default: all recipients. | `skills list`, `skills remove`, `plugins list`, `plugins sync`, `doctor` |
| `--agent <agent>` | Select instruction recipients. `add` can select Antigravity rules for specific sections. `remove` and `update` set the scope's instruction recipient list. Repeat for several. | `instructions add`, `instructions remove`, `instructions update` |
| `--path <subdir>` | Search this subdirectory of the source. | Both kinds' `add` and `list <source>`, `watch add` |
| `--full-depth` | Discover recursively beyond conventional skill directories | `skills add`, `skills list <source>` |
| `--mode link\|copy\|edit` | How to install: link (default), copy, or edit (a live link to a local source). | `skills add` |
| `--root <dir>…` | Audit or map these project directories read-only. Repeat for several. | `doctor`, `instructions export` |
| `--replace` | Take over target files that agents did not generate. | `instructions add`, `instructions update --apply` |
| `--json` | Emit a versioned JSON report on stdout | Both kinds' `list`, `install`, `doctor`, all update previews, `instructions export`, `watch status`, `watch diff`, `auth check`. `manifest dump` requires it. |
| `--declared-only` | Show only host plugins declared in the selected scope. | `plugins list` |
| `--apply` | Synchronize declared host plugins and verify the resulting state. | `plugins sync` |
| `--json` | Emit a versioned JSON report on stdout | Both kinds' `list`, `install`, `doctor`, all update previews, `plugins list`, `plugins sync`, `instructions export`, `watch status`, `watch diff`, `auth check`. `manifest dump` requires it. |

Skill and instruction recipients are `codex`, `claude-code`, `cursor`,
`gemini-cli`, `opencode`, and `antigravity`. Cursor instructions use
Expand All @@ -126,7 +131,7 @@ recipients use the agents already recorded for the skill or source, then
declaration defaults (initially Codex and Claude Code). On skill list, skill
remove, and doctor, omission covers all recipients. Source listing shows
available content regardless of recipients.
Doctor's agent filter limits skill installation checks; skill source checks and
Doctor's agent filter limits skill installation and governance checks. Skill source checks and
instruction diagnostics cover the scope. Instruction targets can be shared by
several agents, and are audited as physical files.

Expand Down Expand Up @@ -208,6 +213,9 @@ is a usage error.
Both require a Git repository for local sources and read committed content.
`edit` links live local directories and accepts no requirement.

New Codex skill installations use `.agents/skills` in project scope and
`~/.codex/skills` in user scope by default. User scope honors `CODEX_HOME`.

Requirement options on add populate a source's `requirement` mapping in
`agents.yaml`:

Expand Down Expand Up @@ -415,6 +423,59 @@ Native component update previews print changed or unchanged component rows,
symbolic before/after content, required binding names and permission changes.
Completion lines identify the component and target after a successful apply.

## Host Plugins

Add a `kind: hostPlugin` component to the selected scope's `agents.yaml` with a
name and either a `pluginId` (with exactly one explicit recipient in `agents`)
or one bundle selected by `source` and `path` (with one or more explicit
recipients in `agents`). Set `enabled: false` to request disabled state. The default
is enabled. Core supports Codex, Claude Code, and Antigravity. Claude Code
defaults to the selected agents scope, with an optional `claudeScope` of
`user`, `project`, or `local`.

`plugins list` reads local host records for the selected scope and reports
declared desired state, observed installation and enablement, locations and
drift. It includes unmanaged host entries by default. Use `--declared-only`
to show only declared entries.

`plugins sync` previews commands and settings changes for the declarations in
the selected scope. Listing and previewing run zero subprocesses. Use
`--apply` to execute the planned vendor commands or settings edits and read
back the resulting host state. Antigravity project registration can use a
local bundle through workspace discovery settings. The ordinary `agents
install` and `agents update` lifecycle continues to manage `kind: plugin`
components separately.

Completed previews exit 0. Applied sync exits 0 when every result is
`installed`, `enabled`, `disabled`, or `unchanged`. It reports all results
and exits 1 if any outcome is `unsupported`, `cliUnavailable`,
`authRequired`, `timeout`, or `failed`.

### Host Plugin JSON

`plugins list --json` emits `schemaVersion: 1`, `kind: "hostPlugins"`,
`scope`, and `plugins`. Each plugin has `agent`, `scope`, `name`,
`locations` (absolute filesystem paths), and `drift` (`current`, `missing`,
`enablement`, `unsupported`, or `unverified`). It includes `claudeScope`,
`pluginId`, `desiredEnabled`, `installed`, `explicitEnabled`,
`effectiveEnabled`, and `diagnostic` where available. Unmanaged entries omit
`desiredEnabled`.

`plugins sync --json` emits `schemaVersion: 1`, `kind: "hostPluginSync"`,
`scope`, `applied`, `ok`, and `results`. Each result has `preview`, current
`status` in the same shape as a list entry, `commandsRun`, and optional
`outcome` and `diagnostic`. The preview contains the initial `status`,
`commands`, and `configurationChanges`. Commands are arrays of arguments with
the executable first. `commandsRun` contains attempts, including commands
that failed. Each configuration change contains an absolute `file` path,
a `key` array of settings path segments, optional `before`, and `after`.
Configuration values use a boolean for enablement, a string array for
replacement lists, and a string for a path to append.

A dry run sets `applied: false` and `ok: true`, leaves `commandsRun` empty,
and omits `outcome`. An applied report sets `applied: true` and uses `ok`
to report whether every result succeeded.

## Import

`import <document> --format <profile> [--root <directory>]` previews one explicit
Expand Down Expand Up @@ -907,13 +968,21 @@ Each root is an explicit project directory; `--root` cannot combine with user
scope. A nonexistent root is an error. Without roots, project scope uses the
current directory and user scope uses HOME.

Doctor also inspects declared host plugin drift, legacy Codex shared skill
links, and collisions between standalone and effectively enabled plugin
skills. It estimates each selected agent's listing size from deduplicated
skill names and descriptions in UTF-8 bytes. The advisory threshold is
8,000 bytes by default. Claude Code accepts a nonnegative integer override
through `SLASH_COMMAND_TOOL_CHAR_BUDGET`. Governance warnings remain advisory
under `--ci`. Doctor skips governance when transaction recovery is pending.

| Scope | Declaration | Lock | Cache |
| --- | --- | --- | --- |
| Project | `.agent/agents.yaml` | `.agent/agents.resolved` | `.agent/cache/` |
| User | `~/.agents/agents.yaml` | `~/.agents/agents.resolved` | `~/.agents/cache/` |

A project commits its declaration and lock; the cache stays local. `agents.yaml`
uses the [manifest format](https://github.com/agents-tools/core/blob/25d965fa18465f60341ba81bff4a511766d7659b/Documentation/Reference/Manifest.md),
uses the [manifest format](https://github.com/agents-tools/core/blob/0.3.2/Documentation/Reference/Manifest.md),
a versioned YAML mapping with required `version: 1`. Sources are named mappings;
components are ordered sequences. Unknown structural fields produce located
diagnostics. The declaration schema and parser are owned by core. Lifecycle
Expand Down Expand Up @@ -1045,8 +1114,8 @@ final newline behavior; only diagnostics go to stderr.

| Code | Meaning |
| --- | --- |
| `0` | Success, including help/version, unchanged previews, and doctor warnings |
| `1` | Operation failure or a completed doctor report containing an error check |
| `0` | Success, including help/version, completed plugin previews, unchanged update previews, and doctor warnings |
| `1` | Operation failure, an applied plugin sync with a failed result, or a completed doctor report containing an error check |
| `64` | Invalid usage, including unknown commands, options, or invalid option combinations |

Unknown commands and subcommands report `Unknown command '<name>'` and exit
Expand All @@ -1061,8 +1130,9 @@ the skill `unresolved-transaction` check and both pending-recovery findings
are errors.
Other instruction diagnostics, including drift and missing targets, are
warnings. Other skill severities are supplied by core.
A failed operation emits no successful JSON report. JSON stdout contains only
one object and a trailing newline; recovery notices remain on stderr.
A completed doctor or host plugin sync can emit a JSON report with `ok: false`
and exit 1. JSON stdout contains only one object and a trailing newline.
Recovery notices remain on stderr.

## JSON Schemas

Expand Down Expand Up @@ -1103,6 +1173,8 @@ schema version. Diagnostic IDs are core-defined strings, not a closed enum.
| `lifecycle … --json` | [Lifecycle reports](Schemas/lifecycle.schema.json) | `schemaVersion`, `kind` and fields for each command |
| `install --json` | [Install](Schemas/install.schema.json) | `schemaVersion`, `scope`, `skills`, `instructions`, `components` |
| `doctor --json` | [Doctor](Schemas/doctor.schema.json) | `schemaVersion`, `ok`, `roots` |
| `plugins list --json` | [Host plugin JSON contract](#host-plugin-json) | `schemaVersion`, `kind: "hostPlugins"`, `scope`, `plugins` |
| `plugins sync --json` | [Host plugin JSON contract](#host-plugin-json) | `schemaVersion`, `kind: "hostPluginSync"`, `scope`, `applied`, `ok`, `results` |
| `components list --json` | [Components](Schemas/components-list.schema.json) | `schemaVersion`, `kind`, `scope`, `components` |
| `import --json` | [Import](Schemas/import.schema.json) | `schemaVersion`, `kind`, `format`, `sources`, `components`, `diagnostics`, `bindings`, `resources` |
| `mcp search --json` | [MCP registry search](Schemas/mcp-registry-page.schema.json) | `schemaVersion`, `servers` |
Expand Down Expand Up @@ -1145,9 +1217,12 @@ Rows include unchanged membership and are sorted by agent ID. A missing lock
means before membership is unrecorded. Regular skill file snapshots add boolean
`executable`; existing `kind` and `base64` retain their meanings. These fields
are optional in the schema.
Doctor checks add `kind: "skills" | "instructions" | "components"`; existing fields and IDs
remain, and instruction IDs use core's diagnostic names. Consumers distinguish
checks by `(kind, id)` because kinds may use the same ID.
Doctor checks use `kind` to identify skills, instructions, components, source
policy, organization policy, marketplace, or governance diagnostics. Consumers
distinguish checks by `(kind, id)` because kinds may use the same ID. A root
includes `skillBudgets` when estimates are available. Each budget contains
`agent`, `skills`, `utf8Bytes`, `advisoryThreshold`, and a description in
`estimate`. Roots with no estimates or pending recovery omit the property.

The shared [instruction definitions](Schemas/instructions.schema.json) describe:

Expand Down
7 changes: 6 additions & 1 deletion Documentation/Reference/Release.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,12 @@ unset checked_commit checked_version verified_tag &&
checked_commit=$release_commit
```

Lint must produce zero findings. Set the intended version explicitly. `agents`
Lint must produce zero findings. Before tagging, also run a read-only smoke
check of the built release binary against realistic user host configuration
(such as `.build/release-validation/release/agents plugins list --scope user --json`
and `.build/release-validation/release/agents doctor --scope user --json`) to
verify real-scale configuration parsing without mutating host state. Set the
intended version explicitly. `agents`
uses unprefixed `X.Y.Z` tags, matching agents-tools/core.

Before using the intended version, run the guard below once with a deliberately
Expand Down
38 changes: 37 additions & 1 deletion Documentation/Reference/Schemas/doctor.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@
"components",
"sourcePolicy",
"organizationPolicy",
"marketplace"
"marketplace",
"governance"
]
}
},
Expand All @@ -65,6 +66,41 @@
"message"
]
}
},
"skillBudgets": {
"type": "array",
"description": "Per-agent skill listing estimates. Omitted if no estimates are available or recovery is pending.",
"minItems": 1,
"items": {
"type": "object",
"properties": {
"agent": {
"type": "string"
},
"skills": {
"type": "integer",
"minimum": 1
},
"utf8Bytes": {
"type": "integer",
"minimum": 0
},
"advisoryThreshold": {
"type": "integer",
"minimum": 0
},
"estimate": {
"type": "string"
}
},
"required": [
"agent",
"skills",
"utf8Bytes",
"advisoryThreshold",
"estimate"
]
}
}
},
"required": [
Expand Down
6 changes: 3 additions & 3 deletions Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ let package = Package(
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.7.0"),
.package(
url: "https://github.com/agents-tools/core.git",
"0.3.1"..<"0.4.0"),
"0.3.2"..<"0.4.0"),
],
targets: [
.executableTarget(
Expand Down
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,13 @@ 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](https://github.com/agents-tools/core/blob/0.3.1/Documentation/Reference/Manifest.md)
`~/.agents/agents.yaml` for user scope. The [manifest format](https://github.com/agents-tools/core/blob/0.3.2/Documentation/Reference/Manifest.md)
uses a versioned YAML mapping. `agents manifest dump --json` prints the
local declaration as a JSON object with source locations without resolving sources.

Expand Down Expand Up @@ -156,7 +159,10 @@ 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. See the [CLI reference](Documentation/Reference/CLI.md)
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](Documentation/Reference/CLI.md)
for supported profiles, selection options and report schemas.

## Requirements
Expand Down
Loading
Loading