Act I · Tooling
Statusline Reforged
Simplify the output from ~/.claude/statusline-command.sh with the following changes — use basename(CWD) to shorten the path being shown, remove the time, align model followed by context usage on the extreme right.
[Then, after sharing an image:]
Make it like this image
Two passes over ~/.claude/statusline-command.sh. The first stripped the time, reduced the CWD to a basename, and right-aligned model and context percentage using tput cols padding. The second matched a shared screenshot: a two-line layout with [Model] 📁 dirname | 🌿 branch on line one and a gold/dim context progress bar, cost, and elapsed time on line two.
The progress bar uses █ for filled slots and ░ for empty — ten characters wide, constructed with printf '%*s' | tr. Cost is printed as $0.08 in yellow. Elapsed time reads from .cost.total_duration_ms.
# Line 1: [Model] 📁 dirname | 🌿 branch[!?] line1="${cyan}[${model}]${reset} 📁 ${dir}" if [ -n "$git_branch" ]; then line1="${line1} | 🌿 ${git_branch}${git_dirty}${git_untracked}" fi# Line 2: ████░░░░░░ 42% | $0.08 | ⏱ 7m 3s line2="${green}${bar_filled}${dim}${bar_empty}${reset} ${used_pct}% | ${yellow}${cost_fmt}${reset} | ⏱ ${mins}m ${secs}s"