[Feature Request] PostToolUse hooks could be logged in stream-json output format

Resolved 💬 4 comments Opened Dec 22, 2025 by t4w4n3 Closed Feb 14, 2026

Feature Description

Given, a PostToolUse hook on "Edit" tool,
When I run claude -p 'Add "one" to @CLAUDE.md ' --output-format stream-json --verbose --debug > claude_logs_debug.jsonl 2> claude_logs_debug_2.jsonl,
Then I see no trace of the triggered hook in the jsonl log files, despite evidences that it has run.
But I really want to see these traces, like in interractive mode

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.0.75
  • Feedback ID: 80ba3947-3961-4aa2-856c-a509b556560b

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗