claude-mod-context-heat
A Claude Code mod that shows, at a glance, how full a session's context window is, whether anything is still running, and how the work is doing against its estimate. It is built around one habit: write the handoff and start a new session at about 600k tokens.

The row above the message box: work status, countdown, context figure and dots.
What it does
Each session gets a row above the message box. It says whether work is running, counts down Claude's own time estimate, and shows how full the context is. In the desktop app a faint background of blocks fills up behind the conversation as the context grows. Near the limit the mod reminds you to write the handoff and start a new session. Every feature can be turned off on its own.
Terms used
- Context: everything Claude reads on each turn: your messages, its replies, files it opened and tool results. It is counted in tokens (roughly three quarters of a word each), so
362k means about 362,000 tokens.
- Why 600k: the context window holds far more, but a very long conversation gets slower, costs more per message, and Claude keeps track of early details less well. Around 600k is a good point to wrap up and start fresh. The figure is a constant you can change (see Good to know).
- Handoff: a short document saying where the work stands and what comes next, so a new session can pick it up without re-reading the old one.
- Prompt cache, warm and cold: after each message, Claude's service keeps the conversation it has already read for a short time. While it is kept (warm), your next message reuses it, so it is cheaper and starts faster. Once that time runs out (cold), the next message has to read the whole conversation again at full price. Nothing breaks and nothing is lost; it only costs more and takes a little longer. Warm is good. If you mean to carry on, reply before it goes cold.
- Compaction: when the context gets close to full, Claude Code shrinks the conversation into a summary to make room. Work carries on, but fine details from earlier can be lost, so after a compaction or two it is often better to write the handoff and start a new session.
- Agent: a helper Claude starts to do part of the work in parallel, such as a search or a test run. It has its own short task and reports back when done.
- Background command or workflow: a long command or multi-step job Claude started that keeps running after its reply ends, such as a test suite.
- Estimate: the total time Claude says a piece of work will take, stated as
Estimate: 10 minutes before it starts.
- Status line: the short line of text under the message box.
Features
Each feature has a switch name, used in both ways of turning it off (see below).
Background (backdrop)
Faint blocks behind the conversation in the desktop app stack up and warm from blue to red as the context fills.

Dots (dots)
A strip of 240 dots across the row, one for every 2.5k tokens. In the terminal it is a short line of text characters.

Context figure (contextFigure)
The figure on the right of the row, for example 362k of 600k.

Work status (workStatus)
Working: Claude is replying, Working: 3 agents running or Idle: nothing running.

Background work (backgroundTasks)
Background commands and workflows count as work, so a long command reads Working: 1 command running, not Idle. Needs workStatus.

Countdown (countdown)
When Claude states Estimate: 10 minutes, the row counts down (6:40 left of 10 min), then counts the overrun in amber (3:12 over the 10 min estimate). The countdown is always the latest estimate the main session wrote, counted from when it was written, for as long as anything runs: 1 agent running · 12:30 left of 200 min. A newer estimate replaces it at once, so the row never disagrees with Claude's last answer. Work started with no estimate stated reads running 41:10, no estimate given; the row never guesses a figure.

Estimate note (estimateNote)