Skip to main content
Code Guide
Hook Recommended

session-summary.sh

Full session analytics (15 configurable sections)

When to use this

  • At the end of a work session to get a full analytics report covering tokens, tool calls, and key decisions
  • When tracking productivity patterns across multiple Claude sessions over time
  • When you want a configurable end-of-session digest with 15 reportable sections

How to use

  1. Open the template on GitHub and copy its content: hooks/bash/session-summary.sh
  2. Place the file inside .claude/hooks/ in your project (or globally in ~/.claude/ to share across all projects). For shell scripts, make it executable: chmod +x session-summary.sh
  3. Review each command in the script, adjust paths and thresholds for your environment, then test it in a safe context before wiring it into hooks.

Related templates