Show the current session status by:
- Check if
.claude/sessions/.current-sessionexists - If no active session, inform user and suggest starting one
- If active session exists:
- Show session name and filename
- Calculate and show duration since start
- Show last few updates
- Show current goals/tasks
- Remind user of available skills
Keep the output concise and informative.
Token Optimization
Expected range: 150–300 tokens (initial), 50 tokens (cache hit)
Caching: Caches active session metadata in .claude/cache/session-current/ for 7 days.
Early exit: Returns immediately if no active session is found.
Patterns used: Grep-before-Read, early exit, caching