Expose session statistics in Stop hook

Resolved 💬 3 comments Opened Apr 10, 2026 by kaloobadia Closed Apr 13, 2026

Claude Code should expose session statistics when the Stop hook fires (session exit), allowing users to display summary stats.

Requested statistics:

  • Number of messages sent/received
  • Tokens used (input and output)
  • Session duration
  • Files modified (created, edited, deleted)

This would enable users to build custom status reporting or analytics on session completion.

View original on GitHub ↗

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