Skip to content

feat: boot cost indicator in context progress bar#1

Open
cyberxuan-XBX wants to merge 1 commit into
kcchien:mainfrom
cyberxuan-XBX:feat/startup-cost-display
Open

feat: boot cost indicator in context progress bar#1
cyberxuan-XBX wants to merge 1 commit into
kcchien:mainfrom
cyberxuan-XBX:feat/startup-cost-display

Conversation

@cyberxuan-XBX
Copy link
Copy Markdown

Summary

  • Shows how much context is consumed by startup config (CLAUDE.md, rules, memory, skills) before the user starts working
  • Progress bar splits into three zones: dark gray (boot) → gradient (chat) → empty
  • (boot N%) label appears next to the context percentage
  • Boot snapshot stored in /tmp/claude-statusline-boot, resets per session

Why

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 feature

Test plan

  • Fresh session: verify (boot N%) appears and matches initial context usage
  • Subsequent messages: boot stays constant, chat portion grows
  • ASCII mode (CLAUDE_STATUSLINE_ASCII=1): = for boot, # for chat, - for empty
  • ANSI fallback: gray boot blocks, colored chat blocks
  • New session after removing /tmp/claude-statusline-boot: re-snapshots correctly

🤖 Generated with Claude Code

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant