AgentKit
ReferenceCLI commands
BetaYou are reading docs for the beta channel (2.4.1-beta.1) — updated automatically on every beta release.Switch to stable →

CLI commands

ak audit

Check installed kits for drift

Read-only integrity check. Compares each installed AgentKit kit's plugin tree against the install-time fingerprint recorded at install (per-file sha256) and reports every divergence: modified (content changed), removed (file deleted), and added (untracked file). With no argument it audits every installed kit; pass a kit name to audit just that one. Exits 0 when the install matches its manifest and exits 1 when any drift is found. Pass --strict to also fail when the install manifest or plugin manifest is missing/unreadable. Use ak audit scripts for the advisory hook/skill script risk scanner.

Who it's for: Both: power devs (--json for CI integrity gates) and non-technical users (interactive summary with a repair hint).

When to use it: After an upgrade, after manual edits under ~/.claude/plugins/, or when something behaves unexpectedly and you suspect the install drifted.

What changes on disk: Read-only. Never writes; suggests ak kit refresh engineer --remote --yes for paid kit drift and ak kit refresh core --yes for public kit drift.

Usage

ak audit [kit] [flags]

Examples

ak audit                         # audit every installed kit
ak audit engineer                # audit one kit
ak audit engineer --strict       # fail if the manifest anchor is missing
ak audit engineer --plugin-mode --project-dir . # audit a project plugin
ak audit --json                  # machine-readable, schema_version-wrapped
ak audit scripts ./kits/core     # scan hook and skill scripts

Flags

FlagDescription
-h, --helphelp for audit
--jsonEmit machine-readable JSON (implies --no-interactive)
--no-interactiveDisable interactive prompts (CI-safe)
--plugin-modeAudit a Claude Code project plugin instead of a native project install
--project-dir stringAudit a native project install; combine with --plugin-mode for a project plugin
-q, --quietSuppress non-error output on stderr
--strictExit non-zero when an installed AgentKit plugin lacks a readable install manifest
-V, --verboseExtra diagnostic output on stderr (loses to --quiet)
-y, --yesAssume yes for all prompts

Output modes

ModeBehavior
prettydefault on TTY (colors, ASCII markers)
plainauto when stdout piped or --no-interactive
json--json (single-object envelope, NDJSON-safe)

Exit codes

CodeMeaning
0success
1runtime error
2invalid flags
3user-cancel (SIGINT, prompt-cancel)
0every audited kit matches its recorded manifest (no drift)
1drift detected, or the command itself failed (I/O error)
2invalid kit name argument

On this page