Always show available context percentage
Resolved 💬 17 comments Opened Mar 15, 2025 by tcdent Closed Jan 20, 2026
Let the user see (even if optional) where they are in the context usage at all times.
Showing cached comments. Read the full discussion on GitHub ↗
15 Comments
Since context management is such an important part of getting good performance out of claude code. I would love to see a visual indicator of how much context is used and remaining in the console.
Something like a progress bar
[=============== (100/200k context used ) ]
when full, we are out of context and compaction will run
This would help me optimize things such as,
and probably a lot of other uses as well
+1
We also found this is very important.
+1
Looking for this also!
+1 found this issue while looking for a setting or option to enable this
This would be a nice builtin option, but while we wait, I figure I would mention that the statusline feature can be leveraged to do this... https://github.com/anthropics/claude-code/issues/5477
<img width="1173" height="376" alt="Image" src="https://github.com/user-attachments/assets/c1756f65-1e02-476f-9d0b-60f01de16fec" />
.claude/settings.local.json
the statusline approach is flaky as the stats don't always compute well especially with the new subagents. I noticed that it's hard to get right, as it suffers from not having access to the real number but just guesses and tries to not break. After compacting the numbers are broken also...
Your calculation seems to hold up well. I added some extra output to check outdated Claude Code cli version, session id, last user message, and coloring:
<img width="2037" height="48" alt="Image" src="https://github.com/user-attachments/assets/c5e644f5-82ae-4186-95e7-bec8a1a523d9" />
Search ccstatusline on github for this feature in the status line
but unfortunately Claude Code 2.0 broke ccstatusline context reporting:
https://github.com/sirmalloc/ccstatusline/issues/93
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
Still valid.
It would be much more useful if the issue #11535 got solved - it would then allow ccstatusline to report accurate context usage AND allow the users to customize it further (see this comment from ccstatusline repository owner).
This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.
This issue was closed incorrectly despite recent human comments. This behavior of the bot is reported at https://github.com/anthropics/claude-code/issues/16497. Please upvote that issue, so maybe it gets noticed.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.