Docs / Interfaces / CLI

The engine CLI

pinkyai (short alias pk) is the same binary the hooks call — every command below reads real local state, nothing here calls out for an answer it could compute itself. Run pinkyai --help any time for your installed version's exact, current list; this page mirrors engine 0.7.0 and groups commands for readability.

Setup & control

Setup & control commands
status Show engine status (hooks installed?, daemon up?, mode).
on / off Enable enforcement, or disable it instantly (panic switch; off requires --yes).
install / uninstall Install or remove Claude Code hooks, idempotently, with a settings backup.
daemon Mode B proxy daemon: start | stop | status | env | install | uninstall — opt-in.
doctor Diagnose the local setup.
config Show or locate the resolved config (defaults < user < project < org-policy).
license Auth0 device-flow account: login | logout | status.
override Grant a TTL'd, audited override for a denied path.
profile Named security-rule profiles: list | show | set <strict|standard|relaxed>.

Dashboard & reports

Dashboard & reports commands
dashboard Serve the local dashboard: Home, Activity, Agents & usage, Rules and Settings.
report / card Export this week's value report, or a one-page shareable card, as local HTML.
quarantine Review quarantined tool outputs: list | show <id> | release <id>.

Security & audit

Security & audit commands
mcp-audit MCP config audit: inventory configured MCP servers (permissions, env usage, unpinned-npx risk, config drift). Reads config only.
secret-sprawl Redacted-secret hashes reused across more than one project (values never stored).
audit-verify Verify the tamper-evident, hash-chained security audit trail is intact.
secrets-staleness-audit Flag an OS-keychain credential this engine manages that's overdue for rotation.
risk-exceptions .pinkyaiallow entries with an expiry, tagged expired/expiring-soon/active.
guardrail-friction / guardrail-roi Approved-anyway vs. genuinely-blocked accounting per security rule.
policy-diff Plain-language summary of what an applied org policy bundle just changed.
team Local reviewer roster and co-sign clearance for blocked irreversible commands.
incidents Browse this install's frozen incident snapshots, captured on a real security Deny.

Token savings & mechanisms

Token savings & mechanisms commands
savings Per-rule tokens-saved attribution from shadow-mode history, never double-counted.
mechanisms / mechanism-registry Per-mechanism fire counts and tokens saved; the canonical mechanism inventory.
cost-savings $ cost avoided via cache-TTL extension and model routing — never summed with tokens-saved.
waste-rollup Machine-wide waste-pattern rollup: top repos by avoidable cost, top mechanisms each.
effectiveness-audit / coverage-audit Flag live mechanisms with zero fires, or config/metrics that disagree.
compaction-roi Whether deliberately breaking the prompt cache now would be worth it, from real waste numbers.
compression Prose-compression toggle and reporting: enable | disable | status | savings.
redaction-benchmark / terseness-benchmark Synthetic-corpus benchmarks for redaction and prose compression.

Session & workflow economics

Session & workflow economics commands
rework-rate / rework-by-model Recorded commits that look reverted or re-edited soon after landing.
prompt-coaching Which prompt shapes correlate with higher rework, from this repo's own history.
time-to-green / cost-per-outcome Elapsed time and estimated $ saved per landed commit.
cost-attribution This operator's $ cost avoided, rolled up across every locally-discoverable session.
context-rot Scan the current transcript for stale rereads and duplicate injections.
handoff Generate a handoff note (state, decisions, open items) for a clean restart.

Benchmarks & quality

Benchmarks & quality commands
edge-case-corpus Verify the trigger/near-miss fixture corpus against real mechanisms.
benchmark-corpus Screen locally-discoverable sessions for a scanner-clean benchmark subset.
full-mechanism-benchmark / mechanism-quality Real measured tokens-per-fire and outcome-correlated quality, per mechanism.
security-detection-benchmark Whether real rule triggers still get caught in full session context, not bare strings.
benchmark-cadence Snapshot both benchmarks and report any regression against the last snapshot.
semantic-caching-pilot Lexical-overlap semantic-caching pilot against real local transcripts, with a go/no-go.

Repo tools & routing

Repo tools & routing commands
repo-map Directory tree + top-level-symbol skeleton for cheap orientation.
blast-radius Every first-party file that transitively imports a changed file.
optimize-claudemd / fewshot-audit Find duplicate/stale CLAUDE.md lines, or an over-example-heavy preset.
presets Curated terse-output CLAUDE.md presets: list | install <name>.
route Model Optimizer routing: show | set <task> <model> | disable | log | quality.
queue Persistent, cross-session task queue for this working directory.

Global flags

-h, --help shows help for any command. -v, --version prints the installed engine version.

Next: Local dashboard →