Overview
Feature flags control which information is displayed in your statusline. Each feature can be individually enabled or disabled during the interactive setup.Feature Selection
Features are selected duringinit via an interactive checkbox prompt (prompts.ts:18-40):
Available Features
Core Information Features
Display: 📁 Current working directoryPrompt Label: ”📁 Working Directory”Output Example:
📁 ~/Projects/my-appDetails:- Abbreviates home directory with
~ - Extracted from
workspace.current_dirorcwdin Claude Code JSON - Fallback parser available when jq is not installed
prompts.ts:24Display: 🌿 Current git branchPrompt Label: ”🌿 Git Branch”Output Example:
🌿 feature/statuslineDetails:- Shows current branch name
- Only displays if in a git repository
- Requires
gitto be installed
prompts.ts:25Display: 🤖 Claude model name and versionPrompt Label: ”🤖 Model Name & Version”Output Example:
🤖 Sonnet 4 🏷️ v1.0.85Details:- Displays
model.display_namefrom Claude Code - Shows model version if available
- Also displays Claude Code version (📟) and output style (🎨)
prompts.ts:26Display: 🧠 Context window remaining percentage with progress barPrompt Label: ”🧠 Context Remaining”Output Example:
🧠 Context Remaining: 83% [========--]Details:- Calculates from
context_window.current_usageandcontext_window.context_window_size - Formula:
input_tokens + cache_creation_input_tokens + cache_read_input_tokens - Color-coded based on remaining percentage:
- >40%: Mint green (#158)
- 21-40%: Peach (#215)
- ≤20%: Coral red (#203)
- Requires
jqfor calculation
prompts.ts:27 | Implementation: bash-generator.ts:162-199Usage Analytics Features
Display: 💵 Cost in USDPrompt Label: ”💵 Usage & Cost”Output Example:
💰 $49.00 or 💰 $49.00 ($16.55/h) with burn rateDetails:- Requires ccusage integration
- Shows cumulative cost for current session
- Automatically enables
ccusageIntegrationconfig option
prompts.ts:28Display: 📊 Token count and consumption ratePrompt Label: ”📊 Token Statistics”Output Example:
📊 14638846 tok (279900 tpm)Details:- Shows total tokens consumed in session
- Displays tokens per minute (tpm) when burn rate is enabled
- Requires ccusage integration and jq
prompts.ts:29Display: ⚡ Cost per hour and tokens per minutePrompt Label: ”⚡ Burn Rate ($/hr & tokens/min)”Output Example:
💰 $49.00 ($16.55/h) 📊 14638846 tok (279900 tpm)Details:- Adds hourly cost rate to usage display
- Adds tokens per minute to token display
- Requires ccusage integration and jq
prompts.ts:30Display: ⌛ Session reset countdown with progress barPrompt Label: ”⌛ Session Reset Time (requires ccusage)”Output Example:
⌛ 3h 7m until reset at 01:00 (37%) [===-------]Details:- Shows time remaining until usage limit resets
- Displays reset time and percentage elapsed
- Progress bar shown in
detailedtheme (hidden inminimal) - Automatically enables
ccusageIntegrationwhen selected (prompts.ts:67) - Requires ccusage and jq
prompts.ts:31Feature Dependencies
Requirements by Feature
| Feature | Requires jq | Requires git | Requires ccusage |
|---|---|---|---|
directory | No* | No | No |
git | No | Yes | No |
model | No* | No | No |
context | Yes | No | No |
usage | Partial | No | Yes |
tokens | Yes | No | Yes |
burnrate | Yes | No | Yes |
session | Yes | No | Yes |
Automatic Enablement
Certain features automatically enable configuration options:session auto-enables ccusage integration, the features usage, tokens, and burnrate also require it to function.
Feature Implementation
Features are conditionally compiled into the bash script bygenerateBashStatusline() in bash-generator.ts:9:
Output Layout
Features are displayed in a 3-line modern layout (v1.2.2+): Line 1: Core information- Directory, Git, Model, Claude Code version, Output style
- Context remaining, Session reset time
- Cost (with burn rate), Token stats (with tpm)
Default Feature Set
As of v1.2.2+, most features are pre-selected:Related
- Configuration Options - Full config reference
- Themes - How themes affect feature display
- Init Command - Interactive feature selection