Scut

Usage

Logging

logs · diagnostics

Understand scut JSONL logs, parse-error records, and cleanup commands.

Scut can write structured JSONL logs for hook and command execution. Logs are intended for agent debugging: they capture what command ran, where it ran, and what failed without requiring users to reproduce a full terminal session.

File layout

Logs live under ~/.scut/logging/:

~/.scut/logging/
  20260403_post-tool-use.jsonl
  20260403_status-line.jsonl
  20260403_parse-errors.jsonl
  20260402_post-tool-use.jsonl

Filenames use YYYYMMDD_<command-name>.jsonl, where the command name is the leaf command path.

Parse errors

Kong parse failures are logged before command execution exits. The parse-error log captures the full argv and the parser error message, which helps diagnose stale hook commands in settings files.

Cleanup

Use the logging command to remove old records:

scut logging clean --older-than 14d
scut logging clean --all