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.
How this skill is triggered — by the user, by Claude, or both
Slash command
/toolkit:claude-code-statusline-developmentThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Create custom status lines that display contextual information at the bottom of Claude Code.
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.
npx claudepluginhub dwmkerr/claude-toolkit --plugin toolkitCreates and customizes Claude Code status lines to display contextual info like model name, git branch, token usage, project colors, and session cost. Supports manual scripts or ccstatusline widget.
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.