feat: boot cost indicator in context progress bar#1
Open
cyberxuan-XBX wants to merge 1 commit into
Open
Conversation
Show how much context is consumed by startup config (CLAUDE.md, rules, memory, skills) before the user even starts working. The progress bar splits into dark gray (boot) vs gradient (chat), with a (boot N%) label. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Summary
(boot N%)label appears next to the context percentage/tmp/claude-statusline-boot, resets per sessionWhy
Heavy users with large CLAUDE.md, many rules, and memory files can lose 10–30% of context at startup without realizing it. This makes the invisible cost visible — no extra action needed from the user.
What changed
statusline.sh: boot cost snapshot logic + 3-zone progress bar rendering (true color, ANSI, ASCII all supported)README.md+README.zh-TW.md: documentation for the new featureTest plan
(boot N%)appears and matches initial context usageCLAUDE_STATUSLINE_ASCII=1):=for boot,#for chat,-for empty/tmp/claude-statusline-boot: re-snapshots correctly🤖 Generated with Claude Code