.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.include:
Safety Guarantees
Which Diagnostic Do I Need?
Best Practices
Attach the whole zip, not individual files
Attach the whole zip, not individual files
The
manifest.json records exactly what was collected. Sharing the full archive keeps the report self-describing.Export even when the gateway is down
Export even when the gateway is down
The command falls back to local daemon logs on purpose — a bundle is most useful precisely when the gateway is unreachable.
Widen --log-lines for slow-manifesting bugs
Widen --log-lines for slow-manifesting bugs
The default
200 is a fast tail. Use --log-lines 2000 when you need a longer window to catch an intermittent failure.Use --json in scripts and CI
Use --json in scripts and CI
The JSON payload gives you
path for auto-upload and manifest for indexing.Verify before sharing
Verify before sharing
Open
config_shape.json once and confirm every secret slot shows "<set>" / "<empty>", never a raw value.Related
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.

