From toolkit
Develops custom status lines for Claude Code to display git branch, context usage, model name, and session costs using bash scripts that process JSON stdin input.
npx claudepluginhub dwmkerr/claude-toolkit --plugin toolkitThis skill is limited to using the following tools:
Create custom status lines that display contextual information at the bottom of Claude Code.
Sets up custom Claude Code status lines to display model name, git branch, token usage, project colors, and session costs via shell scripts or ccstatusline tool.
Configures Claude Code status lines using /statusline command, settings.json, Bash/Python/Node.js scripts. Covers JSON input, git integration, ANSI colors, helper functions, and troubleshooting.
Interactive wizard sets up Claude Code's custom status line with progress bars, token counts, git branch, model name, and session info. Cross-platform for Mac/Linux/Windows via bash/PowerShell scripts.
Share bugs, ideas, or general feedback.
Create custom status lines that display contextual information at the bottom of Claude Code.
You MUST read the reference files for detailed schemas and examples:
Add to .claude/settings.json:
{
"statusLine": {
"type": "command",
"command": "~/.claude/statusline.sh",
"padding": 0
}
}
| Field | Description |
|---|---|
model.display_name | Model name (e.g., "Opus") |
workspace.current_dir | Current working directory |
workspace.project_dir | Original project directory |
cost.total_cost_usd | Session cost in USD |
cost.total_lines_added | Lines added this session |
cost.total_lines_removed | Lines removed this session |
context_window.context_window_size | Max context tokens |
context_window.current_usage | Current token usage object |
See JSON Schema for complete structure.
#!/bin/bash
input=$(cat)
# Extract values using jq
model=$(echo "$input" | jq -r '.model.display_name')
dir=$(echo "$input" | jq -r '.workspace.current_dir')
# Colors via tput
blue=$(tput setaf 4)
reset=$(tput sgr0)
echo "${blue}[$model]${reset} ${dir##*/}"
Make executable:
chmod +x ~/.claude/statusline.sh
tput for portable ANSI colorsecho '{"model":{"display_name":"Test"}}' | ./statusline.shAfter creating or modifying statuslines, inform the user:
No restart needed. Statusline changes take effect immediately - Claude Code reads settings fresh on each update.
Based on Claude Code Status Line Configuration.