Skip to main content

Diagnostics

Generate diagnostic bundles for troubleshooting or when contacting support.

Generate a diagnostic bundle

hooklistener diagnostics --output ./debug-bundle
FlagShortDefaultDescription
--output-o. (current directory)Output directory for the bundle

Bundle contents

The diagnostic bundle is created as a directory named hooklistener-diagnostics-YYYYMMDD-HHMMSS/ containing:

FileContents
logs/Recent log files (JSON format)
config.jsonSanitized config (tokens are redacted)
system_info.jsonSession ID, timestamp, CLI version, OS, architecture

Clean up log files

Remove old log files to free disk space:

hooklistener clean-logs --keep 5
FlagShortDefaultDescription
--keep-k10Number of recent log files to keep

The command keeps the most recent log files (by modification time) and deletes older ones. Only files matching the pattern hooklistener-*.log are affected.

Log file location

Log files are stored in ~/.config/hooklistener/logs/ and use the naming format hooklistener-YYYYMMDD-HHMMSS.log.

When to use diagnostics

  • Reporting bugs — attach the diagnostic bundle to GitHub issues
  • Contacting support — provide context about your environment
  • Self-debugging — review logs for connection issues or errors