Skip to content

yurukusa/cc-time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cc-time

When does Claude Code work? Peak activity: 10 PM JST. Evening dominates — 37.8% of all events happen between 18:00–23:59.

Hourly and daily activity heatmap from your Claude Code session transcripts.

npx cc-time

No install. No dependencies.


What it shows

  • Hourly bar chart — which hours are most active (24h)
  • Day of week — Monday–Sunday breakdown
  • Night owl or early bird? — Night / Morning / Afternoon / Evening verdict
  • Peak & quiet hours — with percentage of total activity
  • Busiest day — with % of weekly activity

Output

  cc-time — Activity Heatmap
  ══════════════════════════════════════════

  ▸ Overview
    Timezone:      UTC+9
    Total events:  1,318,548
    Peak hour:     10pm (8.4% of activity)
    Quiet hour:    5am (0.4%)
    Busiest day:   Mon (22.7% of weekly activity)

  ▸ Activity by hour
    00:00  ░░░░░░░░░░░░        0
    01:00  ░░░░░░░░░░░░        0
    ...
    22:00  ████████████  110,702  ← peak

  ▸ Activity by day of week
    Mon  ████████████████  22.7%  ← busiest

  ▸ Night owl or early bird?
    Night    (00–05)  ░░░░░░░░░░░░░░   1.5%
    Morning  (06–11)  ████████         20.8%
    Afternoon(12–17)  █████████        24.0%
    Evening  (18–23)  ██████████████  37.8%

    Verdict: Evening is when Claude works most (37.8%)

Options

npx cc-time          # terminal heatmap
npx cc-time --json   # JSON output for scripting

JSON output

{
  "version": "1.0.0",
  "timezone": "UTC+9",
  "totalEvents": 1318548,
  "peakHour": { "hour": 22, "count": 110702 },
  "quietHour": { "hour": 5, "count": 5227 },
  "peakDay": { "day": "Mon", "count": 299320 },
  "byHour": [...],
  "byDay": [...]
}

Browser version

Try it without installing: yurukusa.github.io/cc-time

Drag-drop your ~/.claude/projects/ folder (or any subfolder) to analyze.

How it works

Reads ~/.claude/projects/**/*.jsonl session transcripts and counts events by timestamp. Converts UTC to your local timezone automatically. Zero external dependencies.


Part of cc-toolkit — 66 tools for understanding your Claude Code sessions.

About

When does Claude Code work? Hourly and daily activity heatmap from session transcripts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors