CLI Recipes
These recipes assume exactly one active readable Auditaur session. If commands report ambiguity, copy databasePath from auditaur apps --json and add --db "<databasePath>".
Simplest agent loop
Section titled “Simplest agent loop”With .auditaur\config.json checked into the app repo, agents can use one session file and four commands:
auditaur startauditaur drillauditaur inspectauditaur stopUse auditaur drill <name> when the config defines multiple drills. start writes .auditaur\session.json; drill, inspect, and stop read it so agents do not need custom wrappers for readiness polling, session IDs, database paths, or process cleanup.
Scaffold agent helpers in a consuming repo
Section titled “Scaffold agent helpers in a consuming repo”auditaur init skillauditaur init extensioninit skill installs the Auditaur debugging workflow for agents. init extension installs the Copilot canvas extension that can render drill human gates as action cards. Use --path <repo-root> to target another repository.
Inspect the latest active app
Section titled “Inspect the latest active app”auditaur apps --jsonauditaur health --jsonauditaur sessions --jsonUse this before deeper debugging. apps tells you what Auditaur discovered; health summarizes database readability, schema validity, heartbeat state, churn, and capability skew.
Triage a fresh failure
Section titled “Triage a fresh failure”auditaur errors --jsonauditaur exceptions --jsonauditaur traces --failed --jsonauditaur ipc --failed --jsonauditaur events --jsonStart with grouped exceptions and failed IPC. Move to traces when you need causality.
Explain one failing trace
Section titled “Explain one failing trace”auditaur trace <traceId> --jsonauditaur timeline --trace <traceId> --jsonauditaur explain --trace <traceId>Use trace for structured detail, timeline for chronological context, and explain for obvious failure findings.
Watch readiness while a developer starts the app
Section titled “Watch readiness while a developer starts the app”npm run tauri devauditaur debug --app my-tauri-app --active --require-frontend --json watch --until-readyUse attach mode when the developer owns the app process. Add --require-drive-bridge when selector actions must be available before the run is considered ready.
Start the app under observation
Section titled “Start the app under observation”auditaur debug --app my-tauri-app --require-frontend --require-drive-bridge --json run --timeout-seconds 180 --write-session .auditaur\session.json -- npm run tauri devUse wrapper mode when an agent or script owns startup but should leave the app running after readiness for inspection. With --app, debug run ignores matching sessions that existed before spawn, waits for the newly started Auditaur session, and writes .auditaur\session.json with exact sessionId, instanceId, pid, databasePath, and selector arguments for follow-up commands. Prefer those exact selectors over --active or --latest in later automation.
Run a pass/fail confidence drill
Section titled “Run a pass/fail confidence drill”auditaur drill run --app my-tauri-app --require-drive-bridge --selector "#ready" --expect-text "Ready" -- npm run tauri devUse drill mode when Auditaur should start the app, wait for a fresh session, check readiness, optionally drive one selector/text assertion, write a report, and clean up the app process tree.
Pause for a human approval inside a drill
Section titled “Pause for a human approval inside a drill”auditaur drill run --app my-tauri-app --require-drive-bridge --script .auditaur\drills\github-login.json -- npm run tauri devUse a human gate when the flow requires OAuth consent, OS permissions, elevation, browser handoff, or hardware-key approval. The gate runs after Auditaur pins the spawned app session and before final evidence collection, so the report stays tied to one session. A tester can answer in the terminal, through list_pending_human_gates/respond_human_gate over MCP, or through the auditaur-human-gate canvas installed by auditaur init extension.
Verify the Tauri-native drive bridge
Section titled “Verify the Tauri-native drive bridge”auditaur debug --app my-tauri-app --active --require-drive-bridge --json watch --until-readyauditaur drive --app my-tauri-app --active --json inspectauditaur drive --app my-tauri-app --active --json exists --selector "#ready" --visible-onlyauditaur drive --app my-tauri-app --active --json screenshot --selector "#ready" --output ready.pngUse read-style actions before mutating the UI. Selector screenshots first try native WebView capture and crop the selected element when possible.
Produce a GitHub issue draft
Section titled “Produce a GitHub issue draft”auditaur exceptions --jsonauditaur exceptions --fingerprint <id> --markdown --output issue.mdReview and redact the generated Markdown before posting it outside the machine.
Produce a bounded handoff bundle
Section titled “Produce a bounded handoff bundle”auditaur bundle --redacted --output auditaur-bundle.jsonBundles are intended for bug reports and agent handoffs. They are bounded and redacted, but you should still review local telemetry before sharing.
Query through MCP
Section titled “Query through MCP”auditaur mcpUse MCP when an agent can call tools directly. Use the CLI for quick local checks, scripts, and shell-friendly JSON.