Status line FTW If you build a status line and use the token fields from the status payload as a running spend, they reset when the context compacts, because they describe the current window (the last response’s usage), not the session. I found out after planning a “tokens this session” readout on them. For the session’s real spend, sum the usage records in the session’s transcript jsonl: input, cache creation, cache read and output. A full day of work for me was about 23M tokens processed, many times the window. The payload does carry context_window_size, which is handy for a percent-used readout. That one is worth showing; the spend is worth showing next to it, as a number with no denominator, since it passes the window many times over. submitted by /u/Green-Winter9648
Originally posted by u/Green-Winter9648 on r/ClaudeCode
