1016 B
1016 B
Track Specification: Session Insights & Efficiency Scores (session_insights_20260306)
Overview
Token usage over time, cost projections, session summary with efficiency scores.
Current State Audit
Already Implemented
session_logger.py: Logs comms, tool calls, API hooksai_client.get_comms_log(): Returns API interaction historycost_tracker.estimate_cost(): Cost calculation
Gaps to Fill
- No token timeline visualization
- No cost projection
- No efficiency score calculation
Functional Requirements
- Token usage graph over session
- Cost projection based on burn rate
- Efficiency score (tokens per useful change)
- Session summary text
Key Integration Points
| File | Purpose |
|---|---|
src/session_logger.py |
Read session data |
src/gui_2.py |
Timeline rendering |
Acceptance Criteria
- Token timeline renders
- Cost projection calculated
- Efficiency score shown
- Summary displays key metrics
- 1-space indentation