Skip to content

Reference

CLI

This page is generated from the CLI source by triagelab docs; run make docs-generate after changing commands, flags, or configuration. Do not edit it by hand.

Run one investigation: collect the bounded case, create a standalone sandbox, run the kagent investigator, and write JSON and Markdown reports.

triagelab investigate [options]
Flag Default Description
--agent (none) agent name configured under manual_agents
--config (none) JSON configuration (default: built-in localhost settings)
--description (none) local issue description
--description-file (none) UTF-8 issue description file
--dry-run false validate and print the case files that would be ingested without contacting kagent
--exclude (repeatable) glob pattern excluding repository files or directories from ingestion (repeatable)
--file (repeatable) attachment (repeatable)
--include (repeatable) glob pattern restricting repository files to ingest (repeatable)
--log (repeatable) log file (repeatable)
--namespace (none) namespace configured under run_namespaces (default: the configured namespace)
--output reports parent directory for private reports
--repo (none) small local repository or fixture directory
--telemetry (none) optional OTLP telemetry configuration exporting logs, metrics, and traces

Ask an active investigation to settle its turn, capture evidence, and suspend its sandbox. The report confirms when it is safely paused. Requires the TriageLab kagent controller fork; release controllers keep running without pausing.

triagelab pause --report <report.json> [options]
Flag Default Description
--config (none) JSON configuration (default: built-in localhost settings)
--report (none) saved report.json for pause, resume, close, or cleanup
--telemetry (none) optional OTLP telemetry configuration exporting logs, metrics, and traces

Continue a paused manual investigation in its saved sandbox and session with a fresh bounded turn. Saved settings and tools are reused; ticket continuations require review in the signed-in workspace.

triagelab resume --report <report.json> --description <new-information> [options]
Flag Default Description
--config (none) JSON configuration (default: built-in localhost settings)
--description (none) local issue description
--description-file (none) UTF-8 issue description file
--exclude (repeatable) glob pattern excluding repository files or directories from ingestion (repeatable)
--file (repeatable) attachment (repeatable)
--include (repeatable) glob pattern restricting repository files to ingest (repeatable)
--log (repeatable) log file (repeatable)
--repo (none) small local repository or fixture directory
--report (none) saved report.json for pause, resume, close, or cleanup
--telemetry (none) optional OTLP telemetry configuration exporting logs, metrics, and traces

Release an investigation’s retained session and sandbox using its private lifecycle record. Keep the reports and previous rounds.

triagelab close --report <report.json> [options]
Flag Default Description
--config (none) JSON configuration (default: built-in localhost settings)
--report (none) saved report.json for pause, resume, close, or cleanup
--telemetry (none) optional OTLP telemetry configuration exporting logs, metrics, and traces

Serve the authenticated browser workspace on loopback, sharing the CLI’s investigation workflow and report directory.

triagelab serve [options]
Flag Default Description
--allow-resource-writes false allow the workspace to save kagent definitions in the configured namespace
--assets web/dist built frontend directory
--auth (none) optional sign-in configuration JSON with an oidc section
--chat (none) optional results chat model configuration JSON
--clients (none) API client file for OAuth access (default /.auth/clients.json)
--config (none) JSON configuration (default: built-in localhost settings)
--gitops (none) optional GitOps JSON configuration for TicketConnection and TicketProcedure reconciliation
--listen 127.0.0.1:8080 loopback address for the private web UI
--mcp (none) optional HTTP MCP credentials and origins configuration JSON
--output reports parent directory for private reports
--status-context (none) Kubernetes context for live deployment status
--status-kubeconfig (none) explicit Kubernetes config for live deployment status and optional saves
--telemetry (none) optional OTLP telemetry configuration exporting logs, metrics, and traces
--tickets (none) optional Zendesk, GitHub, GitLab, Linear, Bondren, or Jira case configuration (serve only)
--users (none) account file for web sign-in (default /.auth/users.json)

Check that the kagent sandbox API is reachable with the configured credentials, and report whether durable pause retention is available or a release controller runs without it. A live investigation is still needed to verify runtime and model access.

triagelab doctor [options]
Flag Default Description
--config (none) JSON configuration (default: built-in localhost settings)
--telemetry (none) optional OTLP telemetry configuration exporting logs, metrics, and traces

Finish sandbox and session cleanup. When a lifecycle journal exists, use its recorded resource identities and close the run. For older runs, use the saved report. The endpoint and user must match the configuration, and the namespace must be allowed.

triagelab cleanup [options]
Flag Default Description
--config (none) JSON configuration (default: built-in localhost settings)
--report (none) saved report.json for pause, resume, close, or cleanup
--telemetry (none) optional OTLP telemetry configuration exporting logs, metrics, and traces

Render the kagent workspace resources (investigator agent, sandbox template, tools service) as Kubernetes JSON.

triagelab manifest [options]
Flag Default Description
--workload-image (none) digest-pinned replacement tools image

Render a bundled agent definition — agent plus optional model and MCP server resources — as Kubernetes JSON for review and deployment.

triagelab agent-manifest [options]
Flag Default Description
--definition (none) local agent definition JSON file
--namespace kagent kagent namespace

Manage local sign-in accounts without contacting kagent. The first account defaults to admin; later accounts default to viewer.

triagelab user <add|list|remove|set-role|set-password> [options]
Flag Default Description
--output reports parent directory for the default account file
--password (none) initial or replacement password (prefer --password-stdin)
--password-stdin false read the password from standard input
--role (none) viewer, user, or admin
--username (none) account name
--users (none) account file (default /.auth/users.json)

Print the TriageLab and pinned upstream versions.

triagelab version

A nonzero exit never means the report should be discarded.

Code Meaning
0 Command succeeded; an investigation reproduced the reported symptom, paused, or closed
1 Investigation completed; the symptom was not reproduced
2 Invalid input, configuration, or usage
3 Investigation finished inconclusive
4 Infrastructure, agent, or protocol failure
5 Cleanup incomplete or sandbox creation uncertain; see the report
124 Investigation exceeded its time limit
130 Interrupted (Ctrl-C or SIGTERM)