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
-
Open the template on GitHub and copy its content:
hooks/bash/session-summary.sh -
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 - 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.