Repository navigation
Common v1.1
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": 1tostatusLine, 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 sametotal_duration_mssnapshot, 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
tfield. - The branch-cost ledger (
tree) is still maintained in the background and used bycctok; only the status line stops showing it.
Restart Claude Code after updating: refreshInterval is read at startup.