ClaudeCodeMod

All shelves / Mods / Usage

heatmap

By hamzafer

heatmap is a Claude Code usage mod by hamzafer.

Draws a GitHub-style grid of your Claude Code time in a pane, one square per day, with your streak, peak hours, and top projects.

Draws

Install

The marketplace name is claude-code-mods.

In your shell
claude plugin marketplace add hamzafer/claude-code-mods
claude plugin install heatmap@claude-code-mods
Open the repo

It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.

Version
0.1.3
License
MIT
Repo stars
381
Last change
2026-10-23

What it can reach

  • Draws in the session
  • Calls another program on this machine

Claude Code 2.1.287 or later. The author says to restart after installing. /heatmap opens the pane. Each square is a day of active minutes: the time between messages, where a pause over 5 minutes adds nothing. Four levels in Claude orange run from under 15 minutes to 3 hours and more, and the ramp follows your theme. The grid shows as many weeks as fit, up to a year, ending today. Under it are your current and best streak, active hours and sessions, your busiest weekday and hour, and your top 3 projects. p switches between all projects and this repo, the arrow keys move a day cursor once you click the grid, and q closes. A toast marks a streak of 7, 30, or 100 days. Claude Code deletes session logs after 30 days by default, so heatmap reads them once to fill in the past, then keeps one line per day per project in ~/.claude/heatmap/days.jsonl, or under CLAUDE_CONFIG_DIR. The author says everything stays on your computer, and it reads only the message times and the project folder from the logs, with grep. Two sessions running at once both count, so a busy day can add up to more than the hours on the clock.

The marketplace, claude-code-mods, holds all of hamzafer's mods. This one installs on its own, or from the checklist that npx claude-code-mods@latest opens. Your Claude Code time is why this page files it under usage. wrapped, by Singh-AP, opens a Wrapped-style card of your Claude Code use, with stats, streaks, a coding persona, and a share card. agent-profiler, by YeonwooSung, draws where one session's time goes, model wait against tools and subagents. This one draws up to a year of days as a grid and keeps its own history after the session logs are deleted.

Demo

heatmap: a year of Claude Code activity as orange squares, with a 25-day streak, peak hours and top projects
From the author's repo.

What it hooks into

  • session.startWhen a session starts
  • session.endWhen a session ends
  • command.runWhen you run its slash command/heatmap
  • ui.renderDraws into the sessionPane
  • ui.messageAdds a message to the session

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Slash commands 1

  • /heatmapA GitHub-style grid of your Claude Code time

Files

The author's source, 3 files. They load when you open them.

Facts

Author
hamzafer
Category
Usage
Marketplace
claude-code-mods
Repo
hamzafer/claude-code-mods
Folder
mods/heatmap
Version
0.1.3
License
MIT
Repo stars
381
Last change
2026-10-23
Language
TypeScript
Files
9

Other mods in Usage

openrouter-balancehamzaferDraws your OpenRouter credit above the prompt: the balance with a gauge, today's spend, and the model the money mostly went to.winnowGhalebDweikatReplaces parts of a large Read, Bash, or Grep result a judge calls unneeded with a stub, a summary, and a key that brings the text back, then toasts.compact-adviserkunchenguidDraws a hint above the prompt to run /compact when Jev calls the session a finished checkpoint, and can run /compact itself if you opt in.fast-jev-compactiontamaratranShows a toast when /compact keeps the messages Jev still wants and drops the rest, instead of replacing the history with a summary.effortlessHeyCubitDraws a bar above the prompt with the reasoning effort it picked for this prompt, how full the chat is, and how long the prompt cache stays warm.headroom-snipheadroomlabs-aiDraws a band above the prompt showing Headroom cutting each request from its original token count to what was sent, with a /headroom log and a running total.leaksdavekissOpens a pane that ranks the avoidable spend in the last 7 days of transcripts, and draws a strip above the prompt when a leak is happening.context-dietdrkokorevReplaces a huge tool output with a short digest and the path of a file that still holds the full text, and /diet opens a panel of what it saved.agent-profilerYeonwooSungDraws where a session's time goes, model wait against tools and subagents, in a status line and a live pane, and can write the session out as an OTLP trace.claude-carbongwittebolleDraws the CO2 of each answer and a pane with a pixel molecule colored against your past sessions, plus this session's total under the prompt.dividendMint-SecurityDraws a tip above the prompt about the prompt cache, the context, or the plan limits, with a status line and a /dividend pane of the session's figures.caliber-jev-compactioncaliber-ai-orgReplaces /compact: Jev scores each tool call, drops the stale ones, and keeps the rest of the conversation word for word, then toasts what it kept.
All 183 in Usage