
I Discovered I'd Spent 116 Hours with Claude Code in 50 Days — So I Built a CLI to Track It
I've been running Claude Code every day for 50 days straight. $200/month for Claude Max. I had absolutely no idea how many hours I was actually spending. So I built this: npx cc-session-stats My actual numbers When I finally ran it: Total sessions: 3,485 Total hours: 116 h Active days: 47 / 50 Longest streak: 35 consecutive days Avg session: 120 min The tool said: "Rest days exist for a reason." That hit different. How it works Claude Code generates JSONL session transcripts in ~/.claude/projects/ . Each file has timestamps. The tool reads the first and last line of each file to compute session duration — no API calls, no server, zero dependencies. ~/.claude/ projects/ -home-user-projects-myapp/ abc123.jsonl ← timestamps in here -home-user-projects-other/ def456.jsonl One npx command. That's it. What it shows Total hours and session count Day-of-week heatmap (which days you code most) Streak counter — consecutive active days Health warnings when usage is excessive Top projects by time
Continue reading on Dev.to JavaScript
Opens in a new tab



