Skip to main content
One command writes a portable, pre-sanitised .zip — config shape, redacted logs, health, and forensics — safe to attach to a bug report without leaking secrets.

Quick Start

An agent operator hits a snag and asks for a bundle in one line.
1

Export a bundle

2

Point at a specific config

3

Emit JSON for scripts


How It Works

Each section is best-effort — a section that cannot be gathered is recorded as an error instead of aborting the bundle. The archive lands at ~/.praisonai/diagnostics/praisonai-diagnostics-<timestamp>.zip. The path is unique — a -N suffix is appended when a same-second stamp collides, so no bundle is silently overwritten.

CLI Options


Python API

The bundler is typer-free, so you can call it directly.
Signature:
Skip sections you do not need with include:

Safety Guarantees

The bundle never includes chat text, prompts, tool outputs, credentials, or raw tokens.
  • Config credentials collapse to "<set>" / "<empty>"; raw values never survive anywhere in the shape.
  • Non-credential scalars are reduced to their type name (e.g. "<str>", "<int>").
  • Every text section passes through redact_secrets before archiving; registered secrets appear as [REDACTED].
  • The export runs to completion even when the gateway is unreachable or the config file is missing — each section records {"error": ...} instead of aborting.
  • Rapid back-to-back exports never overwrite each other (unique path resolution).

Which Diagnostic Do I Need?


Best Practices

The manifest.json records exactly what was collected. Sharing the full archive keeps the report self-describing.
The command falls back to local daemon logs on purpose — a bundle is most useful precisely when the gateway is unreachable.
The default 200 is a fast tail. Use --log-lines 2000 when you need a longer window to catch an intermittent failure.
The JSON payload gives you path for auto-upload and manifest for indexing.
Open config_shape.json once and confirm every secret slot shows "<set>" / "<empty>", never a raw value.

Tiered Diagnostics

Live health / inbound / duplicate checks.

Gateway Forensics

Deep post-incident inspection (the snapshot embedded here).

Gateway CLI

Full gateway CLI reference.

Secret References

Where the redacted secrets come from.