Install command
Not provided
WCAG-compliant accessible statusline with screen reader announcements, high-contrast colors, semantic labels, keyboard hints, and reduced motion support.
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
10/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. Have accounts and credentials ready first.
Safety & privacy surface
1 safety and 1 privacy notes across 1 risk area. Review closely: credentials & tokens.
#!/usr/bin/env bash
# Accessibility-First Statusline for Claude Code
# WCAG 2.1 AA compliant, screen reader friendly, high contrast
# Read JSON from stdin
read -r input
# Extract values
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')
# Check for PREFERS_REDUCED_MOTION environment variable
if [ "$PREFERS_REDUCED_MOTION" = "1" ]; then
# No animations, static display
animation=""
else
# Minimal indicator (not flashing)
animation="▪"
fi
# High contrast WCAG AA compliant colors
# Contrast ratio > 4.5:1 against black background
# Using basic ANSI colors for maximum compatibility
WHITE_BOLD="\033[1;37m" # Bright white (high contrast)
CYAN_BOLD="\033[1;36m" # Bright cyan (high contrast)
YELLOW_BOLD="\033[1;33m" # Bright yellow (high contrast)
RESET="\033[0m"
# Semantic labels (screen reader friendly)
LABEL_MODEL="Model:"
LABEL_DIR="Directory:"
LABEL_TOKENS="Tokens:"
# Build statusline with semantic structure
statusline=""
statusline+="${animation} " # Activity indicator (if motion enabled)
statusline+="${WHITE_BOLD}${LABEL_MODEL}${RESET} ${CYAN_BOLD}${model}${RESET} | "
statusline+="${WHITE_BOLD}${LABEL_DIR}${RESET} ${CYAN_BOLD}${dir}${RESET} | "
statusline+="${WHITE_BOLD}${LABEL_TOKENS}${RESET} ${YELLOW_BOLD}${tokens}${RESET}"
# Output for visual display
echo -e "$statusline"
# Screen reader announcement (stderr for assistive tech)
# Only announce on significant changes (every 1000 tokens)
token_threshold=$((tokens / 1000 * 1000))
if [ -f "/tmp/claude_statusline_last_tokens" ]; then
last_tokens=$(cat /tmp/claude_statusline_last_tokens)
else
last_tokens=0
fi
if [ $token_threshold -ne $((last_tokens / 1000 * 1000)) ]; then
# Announce to screen reader (ARIA live region style)
echo "Status update: Using $model in directory $dir. Token count: $tokens." >&2
echo $tokens > /tmp/claude_statusline_last_tokens
fi
# Keyboard navigation hint (on first run)
if [ ! -f "/tmp/claude_statusline_initialized" ]; then
echo "Accessibility mode enabled. Press Ctrl+C to interrupt, Tab for completion suggestions." >&2
touch /tmp/claude_statusline_initialized
fi{
"statusLine": {
"type": "command",
"command": "$CLAUDE_PROJECT_DIR/.claude/statuslines/accessibility-first-statusline.sh"
}
}{
"statusLine": {
"type": "command",
"command": "$CLAUDE_PROJECT_DIR/.claude/statuslines/accessibility-first-statusline.sh"
}
}
Extended version with cost information and improved error handling
#!/usr/bin/env bash
# Enhanced Accessibility-First Statusline with Cost Tracking
# WCAG 2.1 AA compliant with additional metrics
input=$(cat)
# Safe extraction with defaults
model=$(echo "$input" | jq -r '.model.display_name // "unknown"')
dir=$(echo "$input" | jq -r '.workspace.current_dir // "~"' | sed "s|$HOME|~|")
tokens=$(echo "$input" | jq -r '.cost.total_tokens // 0')
cost=$(echo "$input" | jq -r '.cost.total_cost_usd // 0')
# Reduced motion support
if [ "$PREFERS_REDUCED_MOTION" = "1" ]; then
animation=""
else
animation="▪"
fi
# WCAG AA compliant colors
WHITE_BOLD="\033[1;37m"
CYAN_BOLD="\033[1;36m"
YELLOW_BOLD="\033[1;33m"
GREEN_BOLD="\033[1;32m"
RESET="\033[0m"
# Build statusline with cost
statusline="${animation} "
statusline+="${WHITE_BOLD}Model:${RESET} ${CYAN_BOLD}${model}${RESET} | "
statusline+="${WHITE_BOLD}Dir:${RESET} ${CYAN_BOLD}${dir}${RESET} | "
statusline+="${WHITE_BOLD}Tokens:${RESET} ${YELLOW_BOLD}${tokens}${RESET} | "
statusline+="${WHITE_BOLD}Cost:${RESET} ${GREEN_BOLD}$${cost}${RESET}"
echo -e "$statusline"
# Screen reader announcement with cost
token_threshold=$((tokens / 1000 * 1000))
if [ -f "/tmp/claude_statusline_last_tokens" ]; then
last_tokens=$(cat /tmp/claude_statusline_last_tokens)
else
last_tokens=0
fi
if [ $token_threshold -ne $((last_tokens / 1000 * 1000)) ]; then
echo "Status: $model in $dir. Tokens: $tokens. Cost: $${cost}." >&2
echo $tokens > /tmp/claude_statusline_last_tokens
fi
Configurable announcement frequency for different screen reader preferences
#!/usr/bin/env bash
# Accessibility Statusline with Custom Announcement Threshold
# Allows configuration via environment variable
input=$(cat)
# Configuration: announcement threshold (default 1000 tokens)
ANNOUNCE_THRESHOLD=${STATUSLINE_ANNOUNCE_THRESHOLD:-1000}
model=$(echo "$input" | jq -r '.model.display_name // "unknown"')
dir=$(echo "$input" | jq -r '.workspace.current_dir // "~"' | sed "s|$HOME|~|")
tokens=$(echo "$input" | jq -r '.cost.total_tokens // 0')
# Reduced motion
if [ "$PREFERS_REDUCED_MOTION" = "1" ]; then
animation=""
else
animation="▪"
fi
# WCAG colors
WHITE_BOLD="\033[1;37m"
CYAN_BOLD="\033[1;36m"
YELLOW_BOLD="\033[1;33m"
RESET="\033[0m"
statusline="${animation} ${WHITE_BOLD}Model:${RESET} ${CYAN_BOLD}${model}${RESET} | ${WHITE_BOLD}Dir:${RESET} ${CYAN_BOLD}${dir}${RESET} | ${WHITE_BOLD}Tokens:${RESET} ${YELLOW_BOLD}${tokens}${RESET}"
echo -e "$statusline"
# Announcement with custom threshold
token_threshold=$((tokens / ANNOUNCE_THRESHOLD * ANNOUNCE_THRESHOLD))
if [ -f "/tmp/claude_statusline_last_tokens" ]; then
last_tokens=$(cat /tmp/claude_statusline_last_tokens)
else
last_tokens=0
fi
if [ $token_threshold -ne $((last_tokens / ANNOUNCE_THRESHOLD * ANNOUNCE_THRESHOLD)) ]; then
echo "Status update: $model in $dir. Tokens: $tokens." >&2
echo $tokens > /tmp/claude_statusline_last_tokens
fi
Complete setup instructions with directory creation and permissions
#!/bin/bash
# Installation script for Accessibility First Statusline
# Create statuslines directory
mkdir -p .claude/statuslines
# Download or create the script
cat > .claude/statuslines/accessibility-first-statusline.sh << 'SCRIPT_EOF'
#!/usr/bin/env bash
# Paste the full statusline script from the primary example above before running this installer.
SCRIPT_EOF
# Make executable
chmod +x .claude/statuslines/accessibility-first-statusline.sh
# Add to settings.json
if [ ! -f .claude/settings.json ]; then
echo '{"statusLine":{"type":"command","command":"$CLAUDE_PROJECT_DIR/.claude/statuslines/accessibility-first-statusline.sh"}}' > .claude/settings.json
else
# Merge with existing settings (requires jq)
jq '.statusLine = {"type":"command","command":"$CLAUDE_PROJECT_DIR/.claude/statuslines/accessibility-first-statusline.sh"}' .claude/settings.json > .claude/settings.json.tmp
mv .claude/settings.json.tmp .claude/settings.json
fi
echo "Accessibility First Statusline installed successfully!"
Verify screen reader is configured to read stderr output. Test with: echo 'test announcement' >&2. Check that /tmp/claude_statusline_last_tokens file exists and updates correctly. Adjust announcement threshold (currently 1000 tokens) in script if announcements are too frequent or infrequent. Some screen readers require specific terminal emulator settings to read stderr.
WCAG contrast ratios assume black/dark background. For light backgrounds, invert color scheme: Use dark ANSI codes (30-37) instead of bright (90-97). Test contrast using WebAIM contrast checker or similar tool. Adjust ANSI color codes based on terminal theme. Check terminal color profile settings.
Set environment variable: export PREFERS_REDUCED_MOTION=1. Add to ~/.bashrc or ~/.zshrc for persistence. Verify with: echo $PREFERS_REDUCED_MOTION (should show 1). Restart Claude Code session after setting environment variable. Check that script is reading environment variable correctly.
Check /tmp/claude_statusline_initialized file exists and persists. Verify /tmp is writable: touch /tmp/test && rm /tmp/test. On system reboot, /tmp clears - this is expected behavior. Move initialization marker to ~/.cache/claude-statusline/ for persistence across reboots. Check file permissions on /tmp directory.
Labels are essential for screen readers but can be shortened: 'M:' instead of 'Model:', 'D:' for 'Directory:', 'T:' for 'Tokens:'. Balance visual brevity with semantic meaning. Test with screen reader first before removing labels. Consider using abbreviated labels that maintain semantic meaning.
Install jq: macOS (brew install jq), Linux (sudo apt-get install jq or sudo yum install jq), or download from https://stedolan.github.io/jq/download/. Verify installation: which jq. Check PATH includes jq location. Use full path to jq if not in PATH: /usr/local/bin/jq or /usr/bin/jq.
Verify script is executable: chmod +x .claude/statuslines/accessibility-first-statusline.sh. Check script outputs to stdout (not stderr for main display). Verify .claude/settings.json has correct statusLine configuration. Test script manually: echo '{"model":{"display_name":"Test"},"workspace":{"current_dir":"/test"}}' | ./accessibility-first-statusline.sh
Check JSON input structure: jq -r '.cost.total_tokens' should extract token count. Verify Claude Code is passing cost data in JSON. Use fallback: jq -r '.cost.total_tokens // 0' for missing values. Test JSON parsing: echo '$input' | jq '.cost' to inspect cost object structure.
Show that Accessibility First Statusline - Claude Code 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/accessibility-first-statusline)Accessibility First Statusline - Claude Code Statuslines side by side with 3 alternatives on trust, install, platform support, and disclosed safety notes — all from reviewed registry metadata.
| Field | WCAG-compliant accessible statusline with screen reader announcements, high-contrast colors, semantic labels, keyboard hints, and reduced motion support. Open dossier | Multi-provider AI performance dashboard with context occupancy tracking, truncation warnings, TTFT latency, tokens/min rate, and model comparison metrics. Open dossier | A Claude Code statusline that reads the session JSON on stdin and splits total_duration_ms into API processing time versus network/waiting time (total minus API). Open dossier | Claude 5-hour conversation block tracker with visual countdown, expiration warnings, and color-coded indicators to prevent unexpected session terminations. 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-23 | 2025-10-23 | 2025-10-25 | 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. | ✓Configured as a command-type statusline, so the script runs automatically on every status update. The Examples "Installation" script writes .claude/statuslines/api-latency-breakdown.sh and edits .claude/settings.json, and runs brew/apt-get/yum to install bc. | ✓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, token usage, context occupancy) and renders it in the local terminal; it does not send data off-machine. | ✓The Examples "Enhanced P95" variant appends every measured network time to /tmp/claude_latency_history.txt, leaving session timing data on disk until manually cleared. | ✓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. |
| Prerequisites |
|
|
|
|
| Install | — | — | — | — |
| Config | | | | |
| Citations | ||||
| Claim | Unclaimed | Unclaimed | Unclaimed | Unclaimed |
Loading live community signals…
A short, calm digest of reviewed Claude resources. Unsubscribe any time.