statusline

statusline is a command for Claude Code from arpitnath/claude-capsule-kit. It costs 10 tokens per session (426 once invoked), scanned B, original, MIT.

A command for choosing which information appears in the Claude Code statusline, the text area that shows session details. Available sections include the model, duration, context usage, worktree, crew mode, and Capsule Kit.

In plain words
What is it for?
Use it to inspect the current statusline settings and choose which session indicators should remain visible.
Why use it?
It lets you hide details you do not need and keep the session display focused. The settings are selected from the sections currently available.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; names the AskUserQuestion tool; mentions Claude Code.

Good fit Use it to inspect the current statusline settings and choose which session indicators should remain visible.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/arpitnath/claude-capsule-kit/statusline
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.

Clone the repo
git clone --depth 1 https://github.com/arpitnath/claude-capsule-kit

Made for: Claude Code.

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/arpitnath/claude-capsule-kit/statusline/github.svg)](https://agentmods.dev/commands/arpitnath/claude-capsule-kit/statusline)
Your own site
<a href="https://agentmods.dev/commands/arpitnath/claude-capsule-kit/statusline"><img src="https://agentmods.dev/badge/commands/arpitnath/claude-capsule-kit/statusline/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for statusline

Your own site · 80×15
<a href="https://agentmods.dev/commands/arpitnath/claude-capsule-kit/statusline"><img src="https://agentmods.dev/badge/commands/arpitnath/claude-capsule-kit/statusline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 426 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00010 $0.00426
Opus 5.5 $0.00004 $0.00170
Sonnet 5.5 $0.00002 $0.00085
Haiku 4.5 $0.00001 $0.00043

Measured 2mo ago against content hash 23a451c8273b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

statusline scanned grade B with 1 finding 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 2mo 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

cat ~/.claude/statusline-config.json 2>/dev/null || echo '{"model":true,"duration":true,"context":true,"worktree":true,"crew":true,"capsule_pill":true}'
commands/statusline.md · 52 lines

What it actually says

Statusline Configuration

Configure which sections are visible in your Claude Code statusline.

Step 1: Read current config

cat ~/.claude/statusline-config.json 2>/dev/null || echo '{"model":true,"duration":true,"context":true,"worktree":true,"crew":true,"capsule_pill":true}'

Step 2: Show current state and ask what to change

Show the user which sections are currently enabled/disabled, then use AskUserQuestion with multiSelect to let them pick which sections to show. Unselected sections will be hidden.

Sections available:

  • Model — Current model name (e.g., Opus, Sonnet)
  • Duration — Session duration (e.g., 2h 15m)
  • Context — Context window progress bar with percentage
  • Worktree — Git worktree indicator pill (only when in a worktree)
  • Crew — Crew mode indicator (@crew=name, only when in a crew worktree)
  • Capsule Kit — CCK active pill badge

Use AskUserQuestion with multiSelect=true. Pre-select the currently enabled sections by listing them first with "(Enabled)" suffix. The question should be: "Which sections should be visible in the statusline?"

Step 3: Write config

Based on the user's selection, write the config file:

cat > ~/.claude/statusline-config.json << 'CONF'
{
  "model": true/false,
  "duration": true/false,
  "context": true/false,
  "worktree": true/false,
  "crew": true/false,
  "capsule_pill": true/false
}
CONF

Step 4: Confirm

Show the user what changed. List enabled and disabled sections clearly.

Tell the user: "Restart Claude Code to see the changes in your statusline."

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. 2mo ago First seen · 52 lines · 10 tokens per session scan B 23a451c8273b

Subscribe to this mod's changes

statusline is a command published in the GitHub repository arpitnath/claude-capsule-kit (93 stars, last pushed 5mo ago), licensed MIT. It adds 10 tokens to every session and 426 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.