statusline

statusline is a command for coding agents from xiaoliu10/claude-code-router-next. It costs 0 tokens per session (2,491 once invoked), scanned A, original, MIT.

A customizable terminal status bar for Claude Code sessions. It can show information such as the current workspace, Git branch, model, and token counts.

In plain words
What is it for?
Displaying live coding-session information in the terminal and connecting that display to Claude Code hooks.
Why use it?
It keeps session and project details visible without repeatedly checking separate commands or files.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/xiaoliu10/claude-code-router-next/statusline
Clone the repo
git clone --depth 1 https://github.com/xiaoliu10/claude-code-router-next

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for statusline

README.md
[![agentmods](https://agentmods.dev/badge/commands/xiaoliu10/claude-code-router-next/statusline.svg)](https://agentmods.dev/commands/xiaoliu10/claude-code-router-next/statusline)
Your own site
<a href="https://agentmods.dev/commands/xiaoliu10/claude-code-router-next/statusline"><img src="https://agentmods.dev/badge/commands/xiaoliu10/claude-code-router-next/statusline.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,491 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.02491
Opus 5 $0.00000 $0.01246
Sonnet 5 $0.00000 $0.00498
Haiku 4.5 $0.00000 $0.00249

Measured 5d ago against content hash 9785c6871f37, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

statusline scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/docs/cli/commands/statusline.md · 401 lines

How it starts

The opening of the file, as written. The whole thing — 401 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ccr statusline

Display a customizable status bar showing real-time information about your Claude Code session, including workspace, Git branch, model, token usage, and more.

Overview

The ccr statusline command reads JSON data from stdin and renders a beautifully formatted status bar in your terminal. It's designed to integrate with Claude Code's hook system to display real-time session information.

Usage

Basic Usage

ccr statusline

The command expects JSON data via stdin, typically piped from a Claude Code hook:

echo '{"hook_event_name":"...","session_id":"...","..."}' | ccr statusline

Hook Integration

Configure in your Claude Code settings:

{
  "hooks": {
    "postResponse": {
      "command": "ccr statusline",
      "input": "json"
    }
  }
}

Available Themes

Default Theme

A clean, minimal theme with Nerd Font icons and colored text:

 󰉋 my-project   main  󰚩 claude-3-5-sonnet-20241022  ↑ 12.3k  ↓ 5.2k

Powerline Theme

A vim-powerline inspired style with colored backgrounds and arrow separators:

 󰉋 my-project   main  󰚩 claude-3-5-sonnet-20241022  ↑ 12.3k  ↓ 5.2k

Activate by setting currentStyle: "powerline" in your config.

Simple Theme

Fallback theme without icons for terminals that don't support Nerd Fonts:

my-project  main  claude-3-5-sonnet-20241022  ↑ 12.3k  ↓ 5.2k

Automatically used when USE_SIMPLE_ICONS=true or on unsupported terminals.

Available Modules

Status line modules display different types of information:

Module Description Variables
workDir Current working directory name {{workDirName}}
gitBranch Current Git branch {{gitBranch}}
model Model being used {{model}}
usage Token usage (input/output) {{inputTokens}}, {{outputTokens}}
context Context window usage {{contextPercent}}, {{contextWindowSize}}
speed Token processing speed {{tokenSpeed}}, {{isStreaming}}
cost API cost {{cost}}
duration Session duration {{duration}}
lines Code changes {{linesAdded}}, {{linesRemoved}}
script Custom script output Dynamic

Read the full file on GitHub · 401 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 401 lines · 0 tokens per session scan A 9785c6871f37

Subscribe to this mod's changes

statusline is a command published in the GitHub repository xiaoliu10/claude-code-router-next (11 stars, last pushed 10d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,491 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.