AgentKit
DocsKitsCLI ReferenceDesktop App
BetaYou are reading docs for the beta channel (2.13.0-beta.20). Features may change before the next stable release.Switch to stable →

ak diagnostics

ak diagnostics

Find the redacted support-export command without collecting data from the parent command itself.

ak diagnostics is the command group for support-safe diagnostic exports. Run the parent with no subcommand to view its help; collection starts only when you run ak diagnostics export.

Usage

ak diagnostics

The documented parent command accepts no positional arguments or command-specific flags and performs no health checks, network requests, file writes, or redaction by itself. The current parent tolerates extra positional tokens and still displays help; do not rely on that implementation detail.

Export a bundle

ak diagnostics export --json > agentkit-diagnostics.json
ak diagnostics export --offline --json > agentkit-diagnostics.json

The export runs ak doctor --json, applies known secret, email, and local-path redactors, and writes one JSON support artifact to stdout. Use --offline when you do not want the embedded doctor run to perform network-dependent checks.

Redaction covers known patterns, not every possible sensitive value. Inspect the generated artifact before sharing it.

Exit behavior

ExitMeaning
0The command-group help was displayed, including when the current parent tolerated extra positional tokens.
2A flag could not be parsed.

Export has its own runtime exits and output contract. The parent has no preview, apply, force, confirmation, authentication, entitlement, backup, or recovery behavior.