feat: show each session's context size in a CTX column - #33
Merged
Merged
Conversation
CTX is the conversation's size in tokens as of its last reply (input + cache reads + cache writes from that reply's usage), e.g. 281k, 1.2M. Zero-usage placeholder replies such as API errors are skipped. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JUmkVYwbkobda1AnHuwFDE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A new CTX column shows how big each conversation is in tokens as of its last reply (
70k,289k,1.2M), in other words how full its context is if you resume it. It drops after a compaction. SIZE stays as it was.It's read from the last Claude reply's recorded usage: input plus cache reads plus cache writes. Replies that record zero usage, such as API-error placeholders, are skipped so they don't show as an empty context.
On real sessions:
🤖 Generated with Claude Code
https://claude.ai/code/session_01JUmkVYwbkobda1AnHuwFDE