Skip to content

Add Claude Code statusline (folder, git branch, model, context bar)#1

Draft
pluslove0557-stack wants to merge 1 commit into
mainfrom
claude/statusline-ewmngn
Draft

Add Claude Code statusline (folder, git branch, model, context bar)#1
pluslove0557-stack wants to merge 1 commit into
mainfrom
claude/statusline-ewmngn

Conversation

@pluslove0557-stack

Copy link
Copy Markdown
Owner

Summary

  • Add claude-code/statusline.js, a Node-based Claude Code statusLine script that prints the current folder, git branch, active model, and a colored context-usage progress bar (green/yellow/red, defaults to a 200K token window, overridable via CLAUDE_CONTEXT_WINDOW)
  • Add claude-code/README.md with setup instructions for wiring the script into ~/.claude/settings.json

Test plan

  • Ran the script with a sample stdin payload (workspace dir, model, transcript with usage tokens) and confirmed folder/branch/model/bar render correctly
  • Verified graceful fallback when there's no transcript path (bar omitted) and when cwd isn't a git repo (branch omitted)
  • Verified empty/malformed stdin doesn't crash the script

Generated by Claude Code

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.

2 participants