Install command
Not provided
Comprehensive multi-line statusline displaying detailed session information across two lines with organized sections and visual separators
Open the source and read safety notes before installing.
Source-backed facts for citing this resource, derived directly from the registry — also available as plain text for AI assistants.
Decision playbook
Signals are present but mixed. Use the checklist below to confirm the source and operational safety for your environment.
0
78
—
No baseline selected
No major trust-signal divergence detected in the current selection.
Confirm ownership and provenance before trusting install instructions.
Source link availableRequired
Open the canonical repository and verify ownership.
Source provenance statusRequired
Marked as source-backed.
Metadata reviewed
Registry metadata indicates a reviewed listing.
Validate risk disclosures before installation or API wiring.
Safety notes presentRequired
Review the listed safety guidance before running commands.
Privacy notes presentRequired
Review data handling notes before connecting accounts or secrets.
Trust level risk gateRequired
Trust level does not block evaluation.
Check package metadata and artifact integrity signals.
Install payload available
Install or copy payload is available for review.
Package verification flag
No package verification flag provided.
Checksum metadata
No checksum provided for downloaded artifact.
Use compare context to validate trade-offs before adoption.
Compare tray has multiple entries
Add at least one more entry to compare trust differences.
Baseline comparison available
No baseline peer selected yet.
Diverging trust signals identified
No major trust-signal divergence found.
Setup at a glance
Copy-ready — paste the snippet to get started.
Install command
Not provided
Config snippet
Provided
Copy snippet
Provided
Prerequisites
6 to clear
Platforms
1 listed
Difficulty
4/100
Adoption plan
Current risk score 16/100. Use staged verification before broader rollout.
Validate source and review signals before any execution.
Confirm source provenanceRequired
Source URL/provenance metadata is present.
Confirm metadata review state
Listing has review metadata.
Verify install payload
Install/config payload exists and can be inspected.
Confirm safety, privacy, and package integrity signals.
Review safety notesRequired
Safety notes are present.
Review privacy notesRequired
Privacy notes are present.
Verify package integrity metadata
No package verification/checksum metadata.
Adopt in controlled steps based on the selected plan.
Run in isolated sandbox firstRequired
Use a constrained sandbox and observe behavior across multiple tasks.
Roll out graduallyRequired
Roll out to a small cohort before wider usage.
Set monitoring and fallback
Define rollback path and monitor errors after adoption.
Evidence readiness
Required evidence gates are covered (5/6 signals complete).
Source repository/provenance is listed.
Required in this preset
Review metadata is present.
Required in this preset
Safety notes are present.
Required in this preset
Privacy notes are present.
Optional in this preset
Package integrity metadata is missing.
Optional in this preset
Install payload is available.
Required in this preset
Required evidence gates are covered for this preset.
Decision timeline
5/6 steps complete with no blocking gaps for this preset.
triage
Source/provenance metadata is available.
triage
Review metadata is available.
verify
Safety notes are available.
verify
Privacy notes are available.
verify
Package integrity metadata is missing.
rollout
Install payload is available.
No required blockers for this timeline preset.
Prerequisite readiness
6 prerequisites to line up before setup.
Safety & privacy surface
1 safety and 1 privacy notes across 1 risk area. Review closely: credentials & tokens.
#!/usr/bin/env bash
# Multi-Line Statusline for Claude Code
# Displays comprehensive session info across two lines
# Read JSON from stdin
read -r input
# Extract all available data
model=$(echo "$input" | jq -r '.model // "unknown"')
dir=$(echo "$input" | jq -r '.workspace.path // "~"' | sed "s|$HOME|~|")
tokens=$(echo "$input" | jq -r '.session.totalTokens // 0')
cost=$(echo "$input" | jq -r '.session.estimatedCost // 0' | awk '{printf "%.3f", $0}')
memory=$(echo "$input" | jq -r '.system.memoryUsage // 0' | awk '{printf "%.1f", $0/1024/1024}')
# Get git info if in repo
workdir=$(echo "$input" | jq -r '.workspace.path // "."')
cd "$workdir" 2>/dev/null || cd .
if git rev-parse --git-dir > /dev/null 2>&1; then
branch=$(git symbolic-ref --short HEAD 2>/dev/null || echo "(detached)")
if [ -z "$(git status --porcelain)" ]; then
git_status="\033[32m ✓\033[0m"
else
git_status="\033[33m ✗\033[0m"
fi
git_display=" ${branch}${git_status}"
else
git_display=""
fi
# Box drawing and separators
SEP="\ue0b0"
VSEP="│"
TOP_LEFT="┌"
BOT_LEFT="└"
# Color scheme
RESET="\033[0m"
MODEL_C="\033[38;5;111m" # Blue
DIR_C="\033[38;5;214m" # Orange
TOKEN_C="\033[38;5;76m" # Green
COST_C="\033[38;5;220m" # Yellow
MEM_C="\033[38;5;139m" # Purple
# Build top line: Model | Directory | Git
top_line="${TOP_LEFT}${RESET} ${MODEL_C}${model}${RESET} ${VSEP} ${DIR_C}${dir}${RESET}${git_display}"
# Build bottom line: Tokens | Cost | Memory
bottom_line="${BOT_LEFT}${RESET} ${TOKEN_C} ${tokens:,} tokens${RESET} ${VSEP} ${COST_C}\$${cost}${RESET}"
if [ "$memory" != "0.0" ]; then
bottom_line="${bottom_line} ${VSEP} ${MEM_C}${memory} MB${RESET}"
fi
# Output both lines
echo -e "$top_line"
echo -e "$bottom_line"{
"statusLine": {
"type": "command",
"command": "$CLAUDE_PROJECT_DIR/.claude/statuslines/multi-line-statusline.sh",
"refreshInterval": 1000
}
}{
"statusLine": {
"type": "command",
"command": "$CLAUDE_PROJECT_DIR/.claude/statuslines/multi-line-statusline.sh",
"refreshInterval": 1000
}
}
Extended version with session duration tracking and enhanced formatting
#!/usr/bin/env bash
# Enhanced Multi-Line Statusline with Session Duration
read -r input
model=$(echo "$input" | jq -r '.model.display_name // .model.id // "unknown"')
dir=$(echo "$input" | jq -r '.workspace.current_dir // .cwd // "~"' | sed "s|$HOME|~|")
tokens=$(echo "$input" | jq -r '.cost.total_lines_added // 0')
cost=$(echo "$input" | jq -r '.cost.total_cost_usd // 0' | awk '{printf "%.3f", $0}')
duration_ms=$(echo "$input" | jq -r '.cost.total_duration_ms // 0')
# Convert duration to human-readable format
if [ $duration_ms -gt 0 ]; then
duration_sec=$((duration_ms / 1000))
if [ $duration_sec -lt 60 ]; then
duration_display="${duration_sec}s"
elif [ $duration_sec -lt 3600 ]; then
duration_min=$((duration_sec / 60))
duration_sec_remain=$((duration_sec % 60))
duration_display="${duration_min}m ${duration_sec_remain}s"
else
duration_hour=$((duration_sec / 3600))
duration_min=$((duration_sec % 3600 / 60))
duration_display="${duration_hour}h ${duration_min}m"
fi
else
duration_display="0s"
fi
workdir=$(echo "$input" | jq -r '.workspace.current_dir // .cwd // "."')
cd "$workdir" 2>/dev/null || cd .
if git rev-parse --git-dir > /dev/null 2>&1; then
branch=$(git symbolic-ref --short HEAD 2>/dev/null || echo "(detached)")
if [ -z "$(git status --porcelain 2>/dev/null)" ]; then
git_status="\033[32m ✓\033[0m"
else
git_status="\033[33m ✗\033[0m"
fi
git_display=" ${branch}${git_status}"
else
git_display=""
fi
VSEP="│"
TOP_LEFT="┌"
BOT_LEFT="└"
RESET="\033[0m"
MODEL_C="\033[38;5;111m"
DIR_C="\033[38;5;214m"
TOKEN_C="\033[38;5;76m"
COST_C="\033[38;5;220m"
DURATION_C="\033[38;5;141m"
if command -v printf > /dev/null 2>&1; then
tokens_formatted=$(printf "%'d" $tokens 2>/dev/null || echo "$tokens")
else
tokens_formatted="$tokens"
fi
top_line="${TOP_LEFT}${RESET} ${MODEL_C}${model}${RESET} ${VSEP} ${DIR_C}${dir}${RESET}${git_display}"
bottom_line="${BOT_LEFT}${RESET} ${TOKEN_C}${tokens_formatted} tokens${RESET} ${VSEP} ${COST_C}$${cost}${RESET} ${VSEP} ${DURATION_C}${duration_display}${RESET}"
echo -e "$top_line"
echo -e "$bottom_line"
Version with customizable line order and optional sections
#!/usr/bin/env bash
# Multi-Line Statusline with Custom Layout
read -r input
model=$(echo "$input" | jq -r '.model.display_name // .model.id // "unknown"')
dir=$(echo "$input" | jq -r '.workspace.current_dir // .cwd // "~"' | sed "s|$HOME|~|")
tokens=$(echo "$input" | jq -r '.cost.total_lines_added // 0')
cost=$(echo "$input" | jq -r '.cost.total_cost_usd // 0' | awk '{printf "%.3f", $0}')
lines_added=$(echo "$input" | jq -r '.cost.total_lines_added // 0')
lines_removed=$(echo "$input" | jq -r '.cost.total_lines_removed // 0')
workdir=$(echo "$input" | jq -r '.workspace.current_dir // .cwd // "."')
cd "$workdir" 2>/dev/null || cd .
if git rev-parse --git-dir > /dev/null 2>&1; then
branch=$(git symbolic-ref --short HEAD 2>/dev/null || echo "(detached)")
if [ -z "$(git status --porcelain 2>/dev/null)" ]; then
git_status="\033[32m ✓\033[0m"
else
git_status="\033[33m ✗\033[0m"
fi
git_display=" ${branch}${git_status}"
else
git_display=""
fi
VSEP="│"
TOP_LEFT="┌"
BOT_LEFT="└"
RESET="\033[0m"
MODEL_C="\033[38;5;111m"
DIR_C="\033[38;5;214m"
TOKEN_C="\033[38;5;76m"
COST_C="\033[38;5;220m"
LINES_C="\033[38;5;196m"
if command -v printf > /dev/null 2>&1; then
tokens_formatted=$(printf "%'d" $tokens 2>/dev/null || echo "$tokens")
lines_added_formatted=$(printf "%'d" $lines_added 2>/dev/null || echo "$lines_added")
lines_removed_formatted=$(printf "%'d" $lines_removed 2>/dev/null || echo "$lines_removed")
else
tokens_formatted="$tokens"
lines_added_formatted="$lines_added"
lines_removed_formatted="$lines_removed"
fi
# Top line: Model | Directory | Git
top_line="${TOP_LEFT}${RESET} ${MODEL_C}${model}${RESET} ${VSEP} ${DIR_C}${dir}${RESET}${git_display}"
# Bottom line: Tokens | Cost | Lines (+/-)
if [ $lines_added -gt 0 ] || [ $lines_removed -gt 0 ]; then
lines_display="+${lines_added_formatted}/-${lines_removed_formatted}"
bottom_line="${BOT_LEFT}${RESET} ${TOKEN_C}${tokens_formatted} tokens${RESET} ${VSEP} ${COST_C}$${cost}${RESET} ${VSEP} ${LINES_C}${lines_display}${RESET}"
else
bottom_line="${BOT_LEFT}${RESET} ${TOKEN_C}${tokens_formatted} tokens${RESET} ${VSEP} ${COST_C}$${cost}${RESET}"
fi
echo -e "$top_line"
echo -e "$bottom_line"
Complete setup script with UTF-8 encoding verification and box drawing character testing
#!/bin/bash
# Installation script for Multi-Line Statusline
# Check for jq (required for JSON parsing)
if ! command -v jq &> /dev/null; then
echo "Installing jq for JSON parsing..."
if [[ "$OSTYPE" == "darwin"* ]]; then
brew install jq
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
sudo apt-get install -y jq || sudo yum install -y jq
else
echo "Please install jq manually: https://stedolan.github.io/jq/"
fi
fi
# Verify UTF-8 encoding
if locale charmap 2>/dev/null | grep -q UTF-8; then
echo "UTF-8 encoding verified"
else
echo "Warning: UTF-8 encoding may not be enabled"
echo "Set with: export LANG=en_US.UTF-8"
fi
# Test box drawing characters
if echo -e '┌│└' &> /dev/null; then
echo "Box drawing characters supported: ┌│└"
else
echo "Warning: Box drawing characters may not display correctly"
echo "Terminal may need UTF-8 encoding"
fi
# Test git command (optional)
if command -v git &> /dev/null; then
echo "Git command available"
else
echo "Warning: Git command not found - git status will not be displayed"
fi
# Create statuslines directory
mkdir -p .claude/statuslines
cat > .claude/statuslines/multi-line-statusline.sh << 'SCRIPT_EOF'
#!/usr/bin/env bash
# Multi-Line Statusline for Claude Code
# Displays comprehensive session info across two lines
read -r input
model=$(echo "$input" | jq -r '.model.display_name // .model.id // "unknown"')
dir=$(echo "$input" | jq -r '.workspace.current_dir // .cwd // "~"' | sed "s|$HOME|~|")
tokens=$(echo "$input" | jq -r '.cost.total_lines_added // 0')
cost=$(echo "$input" | jq -r '.cost.total_cost_usd // 0' | awk '{printf "%.3f", $0}')
memory=$(echo "$input" | jq -r '.system.memoryUsage // 0' | awk '{printf "%.1f", $0/1024/1024}' 2>/dev/null || echo "0.0")
workdir=$(echo "$input" | jq -r '.workspace.current_dir // .cwd // "."')
cd "$workdir" 2>/dev/null || cd .
if git rev-parse --git-dir > /dev/null 2>&1; then
branch=$(git symbolic-ref --short HEAD 2>/dev/null || echo "(detached)")
if [ -z "$(git status --porcelain 2>/dev/null)" ]; then
git_status="\033[32m ✓\033[0m"
else
git_status="\033[33m ✗\033[0m"
fi
git_display=" ${branch}${git_status}"
else
git_display=""
fi
VSEP="│"
TOP_LEFT="┌"
BOT_LEFT="└"
RESET="\033[0m"
MODEL_C="\033[38;5;111m"
DIR_C="\033[38;5;214m"
TOKEN_C="\033[38;5;76m"
COST_C="\033[38;5;220m"
MEM_C="\033[38;5;139m"
if command -v printf > /dev/null 2>&1; then
tokens_formatted=$(printf "%'d" $tokens 2>/dev/null || echo "$tokens")
else
tokens_formatted="$tokens"
fi
top_line="${TOP_LEFT}${RESET} ${MODEL_C}${model}${RESET} ${VSEP} ${DIR_C}${dir}${RESET}${git_display}"
bottom_line="${BOT_LEFT}${RESET} ${TOKEN_C}${tokens_formatted} tokens${RESET} ${VSEP} ${COST_C}$${cost}${RESET}"
if [ "$memory" != "0.0" ] && [ "$memory" != "" ]; then
bottom_line="${bottom_line} ${VSEP} ${MEM_C}${memory} MB${RESET}"
fi
echo -e "$top_line"
echo -e "$bottom_line"
SCRIPT_EOF
chmod +x .claude/statuslines/multi-line-statusline.sh
# Add to settings.json
if [ ! -f .claude/settings.json ]; then
echo '{"statusLine":{"type":"command","command":"$CLAUDE_PROJECT_DIR/.claude/statuslines/multi-line-statusline.sh","refreshInterval":1000}}' > .claude/settings.json
else
jq '.statusLine = {"type":"command","command":"$CLAUDE_PROJECT_DIR/.claude/statuslines/multi-line-statusline.sh","refreshInterval":1000}' .claude/settings.json > .claude/settings.json.tmp
mv .claude/settings.json.tmp .claude/settings.json
fi
echo "Multi-Line Statusline installed successfully!"
echo "Note: Ensure terminal supports UTF-8 encoding for box drawing characters"
echo "Test with: echo -e '┌│└'"
Ensure terminal has UTF-8 encoding enabled. Set: export LANG=en_US.UTF-8. Test with: echo -e '┌│└'. Verify encoding: locale charmap (should be UTF-8). If not supported, modify script to use ASCII alternatives: TOP_LEFT='+', VSEP='|', BOT_LEFT='+'.
Terminal may not support multi-line statuslines properly. Check Claude Code configuration for multi-line support or use single-line statusline instead. Verify terminal supports ANSI escape sequences: echo -e '\033[0m'. Test multi-line output: echo -e 'Line 1\nLine 2'. If issues persist, consider single-line statusline format.
Memory monitoring may not be available in your Claude Code version. This field is optional - statusline works without it. Check if system.memoryUsage field exists: echo '$input' | jq .system.memoryUsage. If null, memory display is automatically hidden. Verify memory calculation: awk '{printf "%.1f", $0/1024/1024}' (converts bytes to MB).
Terminal window may be too narrow. Resize to at least 80 characters wide or simplify displayed information. Check terminal width: tput cols (should be >= 80). Consider reducing information displayed or using shorter directory paths. Test with: echo -e '┌ Model │ Directory\n└ Tokens │ Cost'.
Verify git command is available: command -v git. Check if in git repository: git rev-parse --git-dir (should return .git path). Verify branch detection: git symbolic-ref --short HEAD. Check git status: git status --porcelain (empty = clean, non-empty = dirty). Ensure workdir is correct: echo '$input' | jq .workspace.current_dir.
Check JSON field names: echo '$input' | jq .cost.total_lines_added (tokens), echo '$input' | jq .cost.total_cost_usd (cost). Verify jq extraction: echo '$input' | jq -r '.cost.total_cost_usd // 0'. Check awk formatting: echo '0.01234' | awk '{printf "%.3f", $0}' (should return 0.012). Verify thousands separator: printf "%'d" 12345 (should return 12,345).
Verify terminal supports ANSI colors: echo -e '\033[38;5;111mTest\033[0m' (should show colored text). Check 256-color mode: tput colors (should be >= 256). Test color codes: echo -e '\033[38;5;111mBlue\033[0m' (should show blue text). If not supported, remove color codes or use basic 8-color ANSI codes.
Check directory extraction: echo '$input' | jq .workspace.current_dir. Verify HOME replacement: sed "s|$HOME|~|" (replaces /home/user with ~). Test path shortening: dirname=$(basename "$dir") (shows only directory name). Consider truncating long paths: echo "${dir:0:30}..." (limits to 30 characters).
Show that Multi Line Statusline - Statuslines is listed on HeyClaude. Paste this Markdown into your README — it renders the badge and links back to this page.
[](https://heyclau.de/entry/statuslines/multi-line-statusline)Multi Line Statusline - Statuslines side by side with 3 alternatives on trust, install, platform support, and disclosed safety notes — all from reviewed registry metadata.
| Field | Comprehensive multi-line statusline displaying detailed session information across two lines with organized sections and visual separators Open dossier | Git-focused statusline showing branch, dirty status, ahead/behind indicators, and stash count alongside Claude session info Open dossier | Clean, performance-optimized statusline with Powerline glyphs showing model, directory, and token count Open dossier | Multi-provider AI performance dashboard with context occupancy tracking, truncation warnings, TTFT latency, tokens/min rate, and model comparison metrics. Open dossier |
|---|---|---|---|---|
| Next steps | ||||
| Trust | ||||
| Review status | ReviewedMaintainer reviewed | ReviewedMaintainer reviewed | ReviewedMaintainer reviewed | ReviewedMaintainer reviewed |
| Package trust | Package not verified | Package not verified | Package not verified | Package not verified |
| Source provenance | Source-backed | Source-backed | Source-backed | Source-backed |
| Submitter | — | — | — | — |
| Install risk | Review first | Review first | Review first | Review first |
| Notes | Safety ✓ Privacy ✓ | Safety ✓ Privacy ✓ | Safety ✓ Privacy ✓ | Safety ✓ Privacy ✓ |
| Brand | — | — | — | — |
| Category | statuslines | statuslines | statuslines | statuslines |
| Source | source-backed | source-backed | source-backed | source-backed |
| Author | JSONbored | JSONbored | JSONbored | JSONbored |
| Added | 2025-10-01 | 2025-10-01 | 2025-10-01 | 2025-10-23 |
| Platforms | Claude Code | Claude Code | Claude Code | Claude Code |
| Source repo | — | — | — | — |
| Safety notes | ✓Runs as a Claude Code statusline command on every refresh and depends on the local shell environment; a failure only affects status rendering, not your session. | ✓Runs as a Claude Code statusline command on every refresh and depends on the local shell environment; a failure only affects status rendering, not your session. | ✓Runs as a Claude Code statusline command on every refresh and depends on the local bash environment, jq, and a Powerline-patched font; a failure only affects status rendering, not your session. | ✓Runs as a Claude Code statusline command on every refresh and depends on the local shell environment; a failure only affects status rendering, not your session. |
| Privacy notes | ✓Reads the Claude Code statusline JSON from stdin (model, workspace path, token usage) and renders it in the local terminal; it does not send data off-machine. | ✓Reads the Claude Code statusline JSON from stdin (model, workspace path, token usage) and renders it in the local terminal; it does not send data off-machine. | ✓Reads the Claude Code statusline JSON from stdin (model, workspace path, token count) and renders it in the local terminal; it does not send data off-machine. | ✓Reads the Claude Code statusline JSON from stdin (model, token usage, context occupancy) and renders it in the local terminal; it does not send data off-machine. |
| Prerequisites |
|
|
|
|
| Install | — | — | — | — |
| Config | | | | |
| Citations | ||||
| Claim | Unclaimed | Unclaimed | Unclaimed | Unclaimed |
Loading live community signals…
A short, calm digest of reviewed Claude resources. Unsubscribe any time.