aireg status¶
Check installed artifacts against the lockfile, and list the ones nothing manages.
Synopsis¶
Description¶
aireg status checks each artifact the lockfile records against what is on disk, without contacting any registry. Outside a project it checks your user scope. Each artifact gets one state:
| State | Meaning |
|---|---|
ok |
Installed as the lockfile records it. |
missing |
The stored copy, or a link in a target folder, is missing, or something else holds the path the link needs. |
replaced |
A target's link was replaced by a file or folder of yours, or points outside the scope. --json calls this state dangling. |
edited |
The installed copy was edited after it was installed. With --copy, that includes the copy in the target folder. |
The table shows each artifact's kind, version and registry, then a column per target it was installed for: ✓ when linked where that target reads it, missing, replaced, foreign when its link points outside the scope, or - when it isn't installed there. A version marked pinned is held by the manifest.
Lines under the table explain each - and, when something needs attention, what ok means.
status also warns when the lockfile no longer matches the manifest, as after a hand edit to .registry/manifest.yml; run aireg install to update it. It compares only the two files, so aireg install --frozen can still find a change status does not.
status ends with what to run next. Run aireg install to restore missing or replaced artifacts, which first moves a file or folder of yours that replaced a link to .registry/backups/, and aireg sync to compare an edit with the registry.
A link aireg did not make is missing too, with the reason: a folder of yours already at the path, or another artifact of the same name installed there. install leaves your folder alone, so move it. When another artifact holds the path, aireg install with defaults.name-collision set to rename, the default, installs this one under its namespace and name.
Below the table, status lists the unmanaged artifacts: skills and agents in your target folders that aireg didn't install. A link of yours counts, such as a skill kept in one folder and linked into each target: it is listed once per real folder, with every target that holds it or links it, at that folder's path. So does an agent in a target's own format, such as a Codex .toml agent, though aireg publish takes its Markdown file instead. Publish one to a registry to manage it, with aireg publish. aireg sync still never adopts a link of yours, since whoever made it owns what it points at.
Then status warns about duplicates: skills that have the same files, installed or not, and unmanaged skills that share a name but not their files. Files match apart from line endings in text files and the name in SKILL.md, so a renamed copy or one with Windows line endings is still a copy, but one changed line, one extra file, a different execute bit or a link inside the folder is not. Two unmanaged skills of one name in different target folders are different skills, each with its own row in the unmanaged table, and each target may load a different one. A link of yours is the folder it points at, never a copy of it. Remove the copies you do not need with rm -r, or aireg remove for an installed one. Duplicates don't change the exit status.
After that, status lists the dangling links in your target folders: links of yours whose destination is gone, which the target cannot load. Remove one with rm. A link aireg made that lost its target is reported as missing in the table instead.
In a project, status also warns about an artifact installed in both the project and your user scope, because your coding agent decides which one it loads.
Options¶
status takes -g, to check your user scope. See Command options.
JSON output¶
{"ok": true, "data": {
"scope": "project",
"artifacts": [{"name": "engineering/pr-review", "state": "ok", "targets": {"claude-code": "linked", "universal": "linked"}, "harnesses": {"claude": "linked", "agents": "linked"}, "needsApproval": [{"target": "tool", "harness": "tool", "run": "tool trust"}]}],
"shadowed": [],
"unmanaged": [{"name": "lint", "kind": "skill", "targets": ["claude-code"], "harnesses": ["claude"], "path": "/home/me/project/.claude/skills/lint"}],
"duplicates": [{"match": "identical", "artifacts": [{"name": "pr-check", "path": "/home/me/project/.claude/skills/pr-check"}, {"name": "pr-review", "path": "/home/me/project/.registry/artifacts/acme/engineering/skills/pr-review", "registry": "acme"}]}],
"dangling": [{"path": "/home/me/project/.claude/agents/old.md", "target": "/home/me/agents/old.md", "harness": "claude"}],
"lockfile": {"notLocked": ["acme/engineering/skill/lint"], "extraneous": []}
}}
In JSON, targets is keyed by target id, and a value is linked, missing, replaced or foreign. state uses dangling for what the table calls replaced. An artifact that isn't ok also has a detail saying why, starting with the folder. shadowed names the artifacts installed both here and in your user scope, which the warning above is about; it is always empty for -g. Each duplicates group has a match, identical for copies or name for unmanaged skills that share a name, and its artifacts, each with the real folder as path and, when installed, its registry. dangling gives each dangling link's path, what it links to as written (target), and the target folder it is in (harness, by the id aireg 0.1 used). lockfile lists where it disagrees with the manifest: notLocked holds each manifest entry the lockfile does not record, as written, and extraneous each installed artifact no entry asks for any more. needsApproval lists each target that loads the artifact only after a trust step, with the command to run; aireg never runs it.
Each field that names a target is also printed under the name aireg 0.1 gave it, with the id that version knows, for scripts written against it: harnesses beside targets, and harness beside target, such as claude for claude-code. A dangling entry keeps exactly the shape aireg 0.1 printed. Read targets and target; the earlier names are kept for compatibility and will be removed in a later release.
Exit status¶
0: every artifact isok, or nothing is installed. Unmanaged artifacts and duplicates don't change the exit status.2: an argument was given.3: at least one artifact ismissing,replacedoredited, or the manifest and the lockfile disagree.
Examples¶
Check this project:
1 installed in this project
artifact kind version from Claude Code Codex state
pr-review skill 0.1.0 acme ✓ ✓ ok
✓ Everything matches the lockfile.
Check your user scope:
Fail if anything installed in the project is out of date or was edited: