All commands support these global options:
| Option | Description |
|---|---|
--repo PATH |
Repository root (default .) |
--json |
Machine-readable JSON output |
--verbose, -v |
More diagnostics on stderr |
--quiet, -q |
Suppress non-essential human output |
Validate the current machine and repo prerequisites.
rkp doctorInitialize .rkp/, extract claims, and create the local index.
rkp initShow index health, freshness, review backlog, and managed-file drift.
rkp statusstatus expects the repo to have been initialized first.
Review claims interactively or in batches.
rkp review [OPTIONS]Common options:
| Option | Description |
|---|---|
--approve-all |
Batch-approve claims above a threshold |
--threshold FLOAT |
Threshold used by --approve-all |
--type TYPE |
Filter by claim type |
--scope SCOPE |
Filter by claim scope |
--state STATE |
Filter by review state |
Preview projected artifacts without writing them.
rkp preview --host codexHosts: codex, agents-md, claude, copilot, cursor, windsurf
Preview includes unreviewed claims but hides suppressed and tombstoned claims.
Write projected artifacts to disk.
rkp apply --host claudeCommon options:
| Option | Description |
|---|---|
--host HOST |
Projection target |
--dry-run |
Show changes without writing |
--yes, -y |
Skip confirmation |
Only approved and edited claims are written.
Run the MCP server on stdio transport.
rkp serveImport existing instruction files as governed claims.
rkp importAuto-discovery looks for:
AGENTS.mdCLAUDE.md.github/copilot-instructions.md.github/workflows/copilot-setup-steps.yml.cursor/rules/
Run rkp init first so the repo has .rkp/config.yaml and a local index.
Re-extract the repo and refresh freshness/drift signals.
rkp refreshQuery the governance audit trail.
rkp audit [OPTIONS]Permanently delete tombstoned claims plus their evidence, history, and override files.
rkp purge --dry-runThis does not delete the entire database.
Run the adapter quality harness.
rkp quality --report quality-report.jsonThe harness exercises conformance, sensitivity leakage, drift handling, and import fidelity.
| Code | Meaning |
|---|---|
0 |
Success |
1 |
Command returned findings or a non-fatal failure condition |
2 |
Usage error or command failure |
3 |
Repo not initialized |
130 |
Interrupted |