Skip to main content
statuslinesSource-backedReview first Safety Privacy

AI Model Performance Dashboard - Statuslines

Multi-provider AI performance dashboard with context occupancy tracking, truncation warnings, TTFT latency, tokens/min rate, and model comparison metrics.

by JSONbored·added 2025-10-23·
HarnessClaude Code
Language:bash
Review first review before installing

Open the source and read safety notes before installing.

Citation facts

Source-backed facts for citing this resource, derived directly from the registry — also available as plain text for AI assistants.

Source URLs
https://code.claude.com/docs/en/statusline, https://github.com/JSONbored/awesome-claude/blob/main/content/statuslines/ai-model-performance-dashboard.mdx
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.
Privacy notes
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.
Author
JSONbored
Claim status
unclaimed
Last verified
2025-10-23

Decision playbook

Review trust signals before you adopt

Signals are present but mixed. Use the checklist below to confirm the source and operational safety for your environment.

Compare context
Selected

0

Current score

78

Baseline

Delta

No baseline selected

No major trust-signal divergence detected in the current selection.

Source and provenance checks

Complete

Confirm ownership and provenance before trusting install instructions.

  • Source link availableRequired

    Open the canonical repository and verify ownership.

    Done
  • Source provenance statusRequired

    Marked as source-backed.

    Done
  • Metadata reviewed

    Registry metadata indicates a reviewed listing.

    Done

Safety and privacy checks

Complete

Validate risk disclosures before installation or API wiring.

  • Safety notes presentRequired

    Review the listed safety guidance before running commands.

    Done
  • Privacy notes presentRequired

    Review data handling notes before connecting accounts or secrets.

    Done
  • Trust level risk gateRequired

    Trust level does not block evaluation.

    Done

Package and install checks

Needs review

Check package metadata and artifact integrity signals.

  • Install payload available

    Install or copy payload is available for review.

    Done
  • Package verification flag

    No package verification flag provided.

    Pending
  • Checksum metadata

    No checksum provided for downloaded artifact.

    Pending

Compare-driven decision checks

Needs review

Use compare context to validate trade-offs before adoption.

  • Compare tray has multiple entries

    Add at least one more entry to compare trust differences.

    Pending
  • Baseline comparison available

    No baseline peer selected yet.

    Pending
  • Diverging trust signals identified

    No major trust-signal divergence found.

    Pending

Setup at a glance

Config edit

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

7/100

Adoption plan

Balanced adoption plan

Current risk score 16/100. Use staged verification before broader rollout.

Risk 16

Pre-adoption checks

Validate source and review signals before any execution.

  • Confirm source provenanceRequired

    Source URL/provenance metadata is present.

    Done
  • Confirm metadata review state

    Listing has review metadata.

    Done
  • Verify install payload

    Install/config payload exists and can be inspected.

    Done

Security checks

Confirm safety, privacy, and package integrity signals.

  • Review safety notesRequired

    Safety notes are present.

    Done
  • Review privacy notesRequired

    Privacy notes are present.

    Done
  • Verify package integrity metadata

    No package verification/checksum metadata.

    Pending

Rollout

Adopt in controlled steps based on the selected plan.

  • Run in isolated sandbox firstRequired

    Use a constrained sandbox and observe behavior across multiple tasks.

    Pending
  • Roll out graduallyRequired

    Roll out to a small cohort before wider usage.

    Pending
  • Set monitoring and fallback

    Define rollback path and monitor errors after adoption.

    Pending

Evidence readiness

Evidence readiness matrix · balanced

Required evidence gates are covered (5/6 signals complete).

Risk 15

Source provenance

Present

Source repository/provenance is listed.

Required in this preset

Metadata review

Present

Review metadata is present.

Required in this preset

Safety notes

Present

Safety notes are present.

Required in this preset

Privacy notes

Present

Privacy notes are present.

Optional in this preset

Package integrity

Missing

Package integrity metadata is missing.

Optional in this preset

Install payload

Present

Install payload is available.

Required in this preset

Required evidence gates are covered for this preset.

Decision timeline

Decision timeline · balanced

5/6 steps complete with no blocking gaps for this preset.

Risk 14

triage

Confirm source provenanceRequired

Source/provenance metadata is available.

Done

triage

Check metadata review statusRequired

Review metadata is available.

Done

verify

Review safety notesRequired

Safety notes are available.

Done

verify

Review privacy notes

Privacy notes are available.

Done

verify

Validate package integrity metadata

Package integrity metadata is missing.

Pending

rollout

Verify install payload and commandsRequired

Install payload is available.

Done

No required blockers for this timeline preset.

Prerequisite readiness

Prerequisite readiness

6 prerequisites to line up before setup.

0/6 ready
Install & runtime1Network & hosting2General3

Safety & privacy surface

Safety & privacy surface

1 safety and 1 privacy notes across 1 risk area. Review closely: credentials & tokens.

1 area
  • SafetyCredentials & tokensRuns 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.
  • PrivacyCredentials & tokensReads 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.

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.

Privacy notes

  • 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

  • Claude Code CLI installed and configured
  • Bash shell available (bash 4.0+ recommended for arithmetic operations)
  • jq command-line JSON processor (jq 1.6+ recommended for safe extraction with // defaults)
  • date command with epoch conversion support (macOS: -j flag, Linux: -d flag)
  • Terminal with ANSI color code support (256-color mode recommended for traffic light colors)
  • Write access to /tmp directory (optional, for caching performance metrics)

Schema details

Install type
config
Reading time
2 min
Difficulty score
7
Troubleshooting
Yes
Breaking changes
No
Skill and platform metadata
Retrieval sources
https://code.claude.com/docs/en/statuslinehttps://epoch.ai/data-insights/context-windows
Runtime and command metadata
Script language
bash
Script body
#!/usr/bin/env bash

# AI Model Performance Dashboard for Claude Code
# Displays: Occupancy % | Truncation | TTFT | Tokens/min | Model Limits

# Read JSON from stdin
read -r input

# Extract values
model=$(echo "$input" | jq -r '.model // "unknown"')
prompt_tokens=$(echo "$input" | jq -r '.session.promptTokens // 0')
completion_tokens=$(echo "$input" | jq -r '.session.completionTokens // 0')
total_tokens=$(echo "$input" | jq -r '.session.totalTokens // 0')
session_start=$(echo "$input" | jq -r '.session.startTime // ""')

# Model context limits (2025 verified)
case "$model" in
  *"claude-sonnet-4"*|*"claude-4"*)
    context_limit=1000000
    model_display="Claude Sonnet 4"
    ;;
  *"claude-3.5"*|*"claude-sonnet-3.5"*)
    context_limit=200000
    model_display="Claude 3.5 Sonnet"
    ;;
  *"gpt-4.1"*|*"gpt-4-turbo"*)
    context_limit=1000000
    model_display="GPT-4.1 Turbo"
    ;;
  *"gpt-4o"*)
    context_limit=128000
    model_display="GPT-4o"
    ;;
  *"gemini-1.5-pro"*)
    context_limit=2000000
    model_display="Gemini 1.5 Pro"
    ;;
  *"gemini-2"*)
    context_limit=1000000
    model_display="Gemini 2.x"
    ;;
  *"grok-3"*)
    context_limit=1000000
    model_display="Grok 3"
    ;;
  *"grok-4"*)
    context_limit=256000
    model_display="Grok 4"
    ;;
  *"llama-4"*)
    context_limit=10000000
    model_display="Llama 4 Scout"
    ;;
  *)
    context_limit=100000
    model_display="$model"
    ;;
esac

# Calculate occupancy percentage
if [ $context_limit -gt 0 ]; then
  occupancy=$((prompt_tokens * 100 / context_limit))
else
  occupancy=0
fi

# Occupancy color coding
if [ $occupancy -lt 50 ]; then
  OCC_COLOR="\033[38;5;46m"   # Green: < 50%
elif [ $occupancy -lt 80 ]; then
  OCC_COLOR="\033[38;5;226m"  # Yellow: 50-80%
else
  OCC_COLOR="\033[38;5;196m"  # Red: > 80%
fi

# Truncation warning (models fail before advertised limits)
reliable_limit=$((context_limit * 65 / 100))  # 65% of claimed limit
if [ $prompt_tokens -gt $reliable_limit ]; then
  truncation="⚠ TRUNCATION RISK"
  TRUNC_COLOR="\033[38;5;196m"
else
  truncation="✓ Safe"
  TRUNC_COLOR="\033[38;5;46m"
fi

# Calculate tokens per minute
if [ -n "$session_start" ]; then
  current_time=$(date +%s)
  start_epoch=$(date -j -f "%Y-%m-%dT%H:%M:%SZ" "$session_start" +%s 2>/dev/null || echo "$current_time")
  elapsed_seconds=$((current_time - start_epoch))
  if [ $elapsed_seconds -gt 0 ]; then
    tokens_per_min=$((total_tokens * 60 / elapsed_seconds))
  else
    tokens_per_min=0
  fi
else
  tokens_per_min=0
fi

# Format numbers with commas
formatNumber() {
  printf "%'d" "$1" 2>/dev/null || echo "$1"
}

# TTFT simulation (Time to First Token - would need actual timing)
# For demo purposes, estimate based on tokens
if [ $prompt_tokens -gt 50000 ]; then
  ttft="~2.5s"
  TTFT_COLOR="\033[38;5;226m"
elif [ $prompt_tokens -gt 10000 ]; then
  ttft="~1.2s"
  TTFT_COLOR="\033[38;5;46m"
else
  ttft="~0.8s"
  TTFT_COLOR="\033[38;5;46m"
fi

RESET="\033[0m"
BOLD="\033[1m"

# Build dashboard (multi-line for comprehensive view)
echo -e "${BOLD}📊 ${model_display}${RESET}"
echo -e "${OCC_COLOR}Occupancy: ${occupancy}%${RESET} ($(formatNumber $prompt_tokens)/$(formatNumber $context_limit) tokens) | ${TRUNC_COLOR}${truncation}${RESET}"
echo -e "${TTFT_COLOR}TTFT: ${ttft}${RESET} | Rate: ${tokens_per_min} tok/min | Total: $(formatNumber $total_tokens)"
Full copyable content
{
  "statusLine": {
    "type": "command",
    "command": "$CLAUDE_PROJECT_DIR/.claude/statuslines/ai-model-performance-dashboard.sh"
  }
}

About this resource

Features

  • Multi-provider model support (Claude, GPT, Gemini, Grok, Llama)
  • Context occupancy percentage with color-coded warnings
  • Truncation risk alerts based on real-world model reliability limits (65%)
  • Time to First Token (TTFT) estimation for latency monitoring
  • Tokens per minute rate calculation for throughput tracking
  • Formatted number display with thousands separators
  • 2025 verified context limits for all major models
  • Multi-line dashboard for comprehensive metrics at a glance

Use Cases

  • Production workflows requiring performance monitoring
  • Multi-model comparison and optimization
  • Preventing context truncation in long conversations
  • Tracking token consumption rates for cost management
  • Identifying latency issues before they impact workflow
  • SLA monitoring for enterprise AI deployments
  • Performance regression detection across model versions

Requirements

  • Claude Code CLI installed and configured
  • Bash shell available (bash 4.0+ recommended for arithmetic operations)
  • jq command-line JSON processor (jq 1.6+ recommended for safe extraction with // defaults)
  • date command with epoch conversion support (macOS: -j flag, Linux: -d flag)
  • Terminal with ANSI color code support (256-color mode recommended for traffic light colors)
  • Write access to /tmp directory (optional, for caching performance metrics)

Configuration

{
  "statusLine": {
    "type": "command",
    "command": "$CLAUDE_PROJECT_DIR/.claude/statuslines/ai-model-performance-dashboard.sh"
  }
}

Examples

Enhanced Performance Dashboard with Cost Tracking

Extended version with cost per token and total cost metrics

#!/usr/bin/env bash

# Enhanced AI Model Performance Dashboard with Cost Tracking

input=$(cat)

model=$(echo "$input" | jq -r '.model.id // .model.display_name // "unknown"')
prompt_tokens=$(echo "$input" | jq -r '.session.promptTokens // 0')
total_tokens=$(echo "$input" | jq -r '.session.totalTokens // 0')
cost=$(echo "$input" | jq -r '.cost.total_cost_usd // 0')
session_start=$(echo "$input" | jq -r '.session.startTime // ""')

# Model context limits and pricing (2025)
case "$model" in
  *"claude-sonnet-4"*|*"claude-opus-4"*)
    context_limit=1000000
    model_display="Claude Sonnet 4"
    cost_per_1k_input=0.003
    cost_per_1k_output=0.015
    ;;
  *"gpt-4.1"*|*"gpt-4-turbo"*)
    context_limit=1000000
    model_display="GPT-4.1 Turbo"
    cost_per_1k_input=0.01
    cost_per_1k_output=0.03
    ;;
  *)
    context_limit=100000
    model_display="$model"
    cost_per_1k_input=0.001
    cost_per_1k_output=0.002
    ;;
esac

occupancy=$((prompt_tokens * 100 / context_limit))
reliable_limit=$((context_limit * 65 / 100))

if [ $prompt_tokens -gt $reliable_limit ]; then
  truncation="⚠ TRUNCATION RISK"
  TRUNC_COLOR="\033[38;5;196m"
else
  truncation="✓ Safe"
  TRUNC_COLOR="\033[38;5;46m"
fi

if [ $occupancy -lt 50 ]; then
  OCC_COLOR="\033[38;5;46m"
elif [ $occupancy -lt 80 ]; then
  OCC_COLOR="\033[38;5;226m"
else
  OCC_COLOR="\033[38;5;196m"
fi

# Calculate tokens/min
if [ -n "$session_start" ]; then
  current_time=$(date +%s)
  start_epoch=$(date -j -f "%Y-%m-%dT%H:%M:%SZ" "$session_start" +%s 2>/dev/null || date -d "$session_start" +%s 2>/dev/null || echo "$current_time")
  elapsed_seconds=$((current_time - start_epoch))
  tokens_per_min=$((elapsed_seconds > 0 ? total_tokens * 60 / elapsed_seconds : 0))
else
  tokens_per_min=0
fi

formatNumber() { printf "%'d" "$1" 2>/dev/null || echo "$1"; }

RESET="\033[0m"
BOLD="\033[1m"

echo -e "${BOLD}📊 ${model_display}${RESET}"
echo -e "${OCC_COLOR}Occupancy: ${occupancy}%${RESET} ($(formatNumber $prompt_tokens)/$(formatNumber $context_limit)) | ${TRUNC_COLOR}${truncation}${RESET}"
echo -e "Rate: $(formatNumber $tokens_per_min) tok/min | Cost: $${cost} | Total: $(formatNumber $total_tokens)"

Performance Dashboard with Custom Reliable Limit

Configurable truncation threshold for different risk tolerances

#!/usr/bin/env bash

# AI Model Performance Dashboard with Custom Reliable Limit
# Configure via RELIABLE_LIMIT_PERCENT environment variable (default 65%)

input=$(cat)

RELIABLE_LIMIT_PERCENT=${RELIABLE_LIMIT_PERCENT:-65}

model=$(echo "$input" | jq -r '.model.id // .model.display_name // "unknown"')
prompt_tokens=$(echo "$input" | jq -r '.session.promptTokens // 0')
total_tokens=$(echo "$input" | jq -r '.session.totalTokens // 0')

# Model context limits
case "$model" in
  *"claude-sonnet-4"*|*"claude-opus-4"*)
    context_limit=1000000
    model_display="Claude Sonnet 4"
    ;;
  *"gpt-4.1"*|*"gpt-4-turbo"*)
    context_limit=1000000
    model_display="GPT-4.1 Turbo"
    ;;
  *"gemini-1.5-pro"*)
    context_limit=2000000
    model_display="Gemini 1.5 Pro"
    ;;
  *)
    context_limit=100000
    model_display="$model"
    ;;
esac

occupancy=$((prompt_tokens * 100 / context_limit))
reliable_limit=$((context_limit * RELIABLE_LIMIT_PERCENT / 100))

if [ $prompt_tokens -gt $reliable_limit ]; then
  truncation="⚠ TRUNCATION RISK"
  TRUNC_COLOR="\033[38;5;196m"
else
  truncation="✓ Safe"
  TRUNC_COLOR="\033[38;5;46m"
fi

if [ $occupancy -lt 50 ]; then
  OCC_COLOR="\033[38;5;46m"
elif [ $occupancy -lt 80 ]; then
  OCC_COLOR="\033[38;5;226m"
else
  OCC_COLOR="\033[38;5;196m"
fi

formatNumber() { printf "%'d" "$1" 2>/dev/null || echo "$1"; }

RESET="\033[0m"
BOLD="\033[1m"

echo -e "${BOLD}📊 ${model_display}${RESET}"
echo -e "${OCC_COLOR}Occupancy: ${occupancy}%${RESET} ($(formatNumber $prompt_tokens)/$(formatNumber $context_limit)) | ${TRUNC_COLOR}${truncation}${RESET} (limit: ${RELIABLE_LIMIT_PERCENT}%)"
echo -e "Total: $(formatNumber $total_tokens) tokens"

Performance Dashboard Installation Example

Complete setup script with model limit updates

#!/bin/bash
# Installation script for AI Model Performance Dashboard

mkdir -p .claude/statuslines

cat > .claude/statuslines/ai-model-performance-dashboard.sh << 'SCRIPT_EOF'
#!/usr/bin/env bash
# Paste the full statusline script from the primary example above before running this installer.
SCRIPT_EOF

chmod +x .claude/statuslines/ai-model-performance-dashboard.sh

# Add to settings.json
if [ ! -f .claude/settings.json ]; then
  echo '{"statusLine":{"type":"command","command":"$CLAUDE_PROJECT_DIR/.claude/statuslines/ai-model-performance-dashboard.sh"}}' > .claude/settings.json
else
  jq '.statusLine = {"type":"command","command":"$CLAUDE_PROJECT_DIR/.claude/statuslines/ai-model-performance-dashboard.sh"}' .claude/settings.json > .claude/settings.json.tmp
  mv .claude/settings.json.tmp .claude/settings.json
fi

echo "AI Model Performance Dashboard installed successfully!"
echo "Note: Update model context limits in script as new models are released."

Troubleshooting

Occupancy percentage always showing 0% or incorrect values

Verify session.promptTokens exists in JSON: jq .session.promptTokens. Check context_limit set correctly for model. Test calculation: echo $((100000 * 100 / 1000000)) (should be 10). Ensure integer division working. Verify prompt_tokens is numeric: echo "$prompt_tokens" | grep -E '^[0-9]+$'.

Model not recognized, showing default context_limit 100000

Check model string extraction: jq -r '.model.id // .model.display*name'. Verify case statement matches model name pattern. Test model matching: echo "$model" | grep -i 'claude-sonnet-4'. Add custom model: Add case for *"your-model"_) context_limit=X ;; before default case. Check model name format in Claude Code JSON output.

Tokens per minute showing 0 or extremely high numbers

Verify session.startTime format: jq -r '.session.startTime'. Check date parsing works: macOS (date -j -f '%Y-%m-%dT%H:%M:%SZ' '2025-10-23T10:00:00Z' +%s) or Linux (date -d '2025-10-23T10:00:00Z' +%s). Ensure elapsed_seconds > 0. Check timezone handling. Verify session_start is not empty.

Number formatting with commas not working (showing raw numbers)

Check printf thousands separator support: printf "%'d" 1000000. If unsupported, formatNumber falls back to raw echo. Enable locale: export LC_NUMERIC=en_US.UTF-8. Test: locale | grep LC_NUMERIC. Verify printf supports ' flag (POSIX extension). Use alternative: sed 's/([0-9]{1,3})$/\1/' for basic formatting.

Truncation warning appearing too early or too late

Adjust reliable_limit calculation (currently 65% of context_limit). Research shows models fail 30-35% before claimed limits. Increase for conservative: reliable_limit=$((context_limit * 50 / 100)). Decrease for aggressive: reliable_limit=$((context_limit * 75 / 100)). Set via environment variable: export RELIABLE_LIMIT_PERCENT=70. Test with known token counts.

TTFT (Time to First Token) estimation always shows same value

TTFT is estimated based on prompt_tokens, not actual measured latency. For accurate TTFT, integrate with Claude Code API response timing. Current estimation: <10k tokens (~0.8s), 10k-50k (~1.2s), >50k (~2.5s). Consider adding actual timing measurement if Claude Code exposes response start time in JSON.

Color codes not displaying correctly in terminal

Verify terminal supports 256-color mode: echo $TERM (should include '256color' or 'xterm-256color'). Check ANSI code format: Use \033[38;5;Xm for 256-color mode. Test colors: echo -e '\033[38;5;46mGreen\033[0m'. Verify echo -e flag is used. Check terminal emulator color support settings.

Multi-line dashboard not displaying correctly (showing as single line)

Verify echo -e flag is used for escape sequence interpretation. Check terminal supports multi-line statuslines (Claude Code feature). Test: echo -e "Line 1\nLine 2". Some terminals may collapse multi-line output. Consider single-line format if multi-line not supported.

Source citations

Add this badge to your README

Show that AI Model Performance Dashboard - Statuslines is listed on HeyClaude. Paste this Markdown into your README — it renders the badge and links back to this page.

Listed on HeyClaude
[![Listed on HeyClaude](https://heyclau.de/badge/statuslines/ai-model-performance-dashboard.svg)](https://heyclau.de/entry/statuslines/ai-model-performance-dashboard)

How it compares

AI Model Performance Dashboard - Statuslines side by side with 3 alternatives on trust, install, platform support, and disclosed safety notes — all from reviewed registry metadata.

1 trust signal differ across this comparison (Submitter).

Field

Multi-provider AI performance dashboard with context occupancy tracking, truncation warnings, TTFT latency, tokens/min rate, and model comparison metrics.

Open dossier

Claude Code statusline that estimates context pressure from local session token counts and a configurable context limit, then prints a compact risk tier.

Open dossier

Claude Code statusline that reads the active model identifier from session input and displays real-time token usage as a percentage of the context window, with green/yellow/red color-coded warnings.

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
Next steps
Trust
Review statusReviewedMaintainer reviewedReviewedMaintainer reviewedReviewedMaintainer reviewedReviewedMaintainer reviewed
Package trustPackage not verifiedPackage not verifiedPackage not verifiedPackage not verified
Source provenanceSource-backedSource-backedSource-backedSource-backed
SubmitterDiffersMkDev11
Install riskReview firstReview firstReview firstReview first
Notes Safety Privacy Safety Privacy Safety Privacy Safety Privacy
Brand
Categorystatuslinesstatuslinesstatuslinesstatuslines
Sourcesource-backedsource-backedsource-backedsource-backed
AuthorJSONboredMkDev11JSONboredJSONbored
Added2025-10-232026-06-042025-10-162025-10-25
Platforms
Claude Code
Claude Code
Claude Code
Claude Code
Source repo
Safety notesRuns 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.Context percentage is only as accurate as the configured limit and the usage fields available in the statusline input. Use the warning as a cue to summarize or checkpoint work before context pressure affects reasoning quality. Do not treat a low percentage as proof that all relevant files, instructions, or tool results are still in scope.Reads session JSON from stdin and writes formatted text to stdout only; does not modify files or make network calls.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.
Privacy notesReads 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 script reads local session counters and does not inspect prompt text, files, or transcript contents. Token counts and configured limits can still reveal workload size in screenshots or shared terminal logs. Teams should avoid placing customer names or project identifiers in shell variables that appear in debugging output.Processes token counts and model identifiers from the local Claude Code session input; no data is sent externally.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.
Prerequisites
  • Claude Code CLI installed and configured
  • Bash shell available (bash 4.0+ recommended for arithmetic operations)
  • jq command-line JSON processor (jq 1.6+ recommended for safe extraction with // defaults)
  • date command with epoch conversion support (macOS: -j flag, Linux: -d flag)
  • Claude Code statusline support with local JSON input.
  • jq available for reading session usage fields.
  • Optional CLAUDE_CONTEXT_LIMIT set to the model or workflow limit your team wants to track.
  • Claude Code CLI installed and configured
  • Bash shell available (bash 4.0+ recommended for pattern matching with [[ ]] and string manipulation)
  • jq command-line JSON processor (jq 1.6+ recommended for safe extraction with // defaults)
  • awk command (for percentage calculation with floating point precision)
  • Claude Code CLI installed and configured
  • Bash shell available (bash 4.0+ recommended for arithmetic operations)
  • jq command-line JSON processor (jq 1.6+ recommended for safe extraction with // defaults)
  • bc calculator (bc 1.07+ recommended for floating point calculations, optional - script falls back to integer math)
Install
Config
{
  "statusLine": {
    "type": "command",
    "command": "$CLAUDE_PROJECT_DIR/.claude/statuslines/ai-model-performance-dashboard.sh"
  }
}
{
  "statusLine": {
    "type": "command",
    "command": "$CLAUDE_PROJECT_DIR/.claude/statuslines/context-pressure-statusline.sh"
  }
}
{
  "statusLine": {
    "type": "command",
    "command": "$CLAUDE_PROJECT_DIR/.claude/statuslines/multi-provider-token-counter.sh",
    "refreshInterval": 1000
  }
}
{
  "statusLine": {
    "type": "command",
    "command": "$CLAUDE_PROJECT_DIR/.claude/statuslines/api-latency-breakdown.sh"
  }
}
Citations
ClaimUnclaimedUnclaimedUnclaimedUnclaimed
Open 4 picks in the interactive comparison tool

Related guides

Signals

Loading live community signals…

More like this, weekly

A short, calm digest of reviewed Claude resources. Unsubscribe any time.