v1.26.2 - Session Analytics (Beta)
π What's New
Session Analytics (Beta)
Added a comprehensive analytics modal for each chat session with detailed insights into your Claude Code interactions.
Overview Metrics:
- Total messages count
- Total tokens used
- Tool calls executed
- Unique tools used
- Models utilized
- Cache efficiency percentage
Detailed Analytics:
- π Token Usage Breakdown: Input/output tokens, cache creation/reads, and cost estimation
- β±οΈ Session Timeline: Start time, last activity, duration, and status
- β‘ Time Breakdown: Claude execution time vs user conversing time with intelligent filtering
- π€ Model Information: Detailed usage of each model (Sonnet/Haiku) with message counts and percentages
- π οΈ Tool Usage: Statistics and breakdown of all tools used
- π§© Components Used: Tracking of agents, slash commands, and skills
Key Features:
- Real-time analytics calculation from JSONL conversation files
- Multi-model usage detection (automatically identifies Sonnet/Haiku switching)
- Intelligent time filtering (excludes long breaks and overnight pauses)
- Accurate cost estimation based on Claude API pricing
- Component detection from tool_use blocks
Access: Click the "Analytics" button next to any session in the Chats interface (--chats mode)
π¦ Installation
```bash npm install -g claude-code-templates@1.26.2 ```
π Usage
```bash
Launch chats interface
cct --chats
Click Analytics button on any session to view detailed metrics
```
π Links
- π Documentation
- π Component Library
- π¬ Discord Community
Full Changelog: https://github.com/davila7/claude-code-templates/compare/v1.26.1...v1.26.2