Skip to content

Common v1.1

Choose a tag to compare

@commonkid commonkid released this 07 Sep 11:11
· 1 commit to main since this release

Minor update to Common Usage: the Claude Code status line shows the session clock instead of the branch cost.

ses $1.84   t 1h 23m 05s
  • t: how long this chat has been running, hours, minutes and seconds, zero-padded so the row never changes width. Source: cost.total_duration_ms, which Claude Code puts into the status line's stdin; without it the clock counts from the transcript, and with no data at all it shows —.
  • The seconds tick live. The installer adds "refreshInterval": 1 to statusLine, so Claude Code re-runs the script once a second on top of the usual events (one render is about 90 ms). When a timer tick carries the same total_duration_ms snapshot, the script remembers the last value and the moment it saw it (~/.claude/statusline-state/<session>.clock.json) and adds the elapsed time; a fresh value re-anchors the clock.
  • The compact two-line layout shows the same t field.
  • The branch-cost ledger (tree) is still maintained in the background and used by cctok; only the status line stops showing it.

Restart Claude Code after updating: refreshInterval is read at startup.