statusline

statusline is a skill for Claude Code, Codex from LarryStanley/pi-delegate. It costs 22 tokens per session (2,582 once invoked), scanned B, original, MIT.

A workflow for adding a live pi dispatch indicator to Claude Code's status line while keeping the status line already configured by the user.

In plain words
What is it for?
Inspecting the current status-line setup, safely wrapping it with the pi indicator, and updating an existing wrapper without nesting it again.
Why use it?
Claude Code has one global status-line setting, so changing it carelessly could remove or run the user's existing status display incorrectly.

Skill for Claude CodeCodex

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the pi-delegate plugin — 9 skills, 3 hooks, 1 MCP server shipped together

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 skills/larrystanley/pi-delegate/statusline
Any agent
npx skills add LarryStanley/pi-delegate --skill statusline
Clone the repo
git clone --depth 1 https://github.com/LarryStanley/pi-delegate

Made for: Claude Code, Codex.

Or install pi-delegate, the plugin that ships this one along with the rest of its 9 skills, 3 hooks, 1 MCP server.

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/skills/larrystanley/pi-delegate/statusline.svg)](https://agentmods.dev/skills/larrystanley/pi-delegate/statusline)
Your own site
<a href="https://agentmods.dev/skills/larrystanley/pi-delegate/statusline"><img src="https://agentmods.dev/badge/skills/larrystanley/pi-delegate/statusline.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,582 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00022 $0.02582
Opus 5 $0.00011 $0.01291
Sonnet 5 $0.00004 $0.00516
Haiku 4.5 $0.00002 $0.00258

Measured 4d ago against content hash bd7611b79613, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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/pi-delegate/statusline-wrapper.sh <<'WRAPPER'
skills/statusline/SKILL.md · 212 lines

How it starts

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

The user wants the pi indicator in their status line: $ARGUMENTS

statusLine is a single global field in ~/.claude/settings.json. There is exactly one, and a plugin cannot ship its own — the plugin settings.json supports only agent and subagentStatusLine. So there is no way to add this without writing to the user's settings, and every step below exists because of that: whatever is already there is theirs, it is probably the only status line they have, and replacing it is not a thing to do quietly.

Work through this with them. Do not run it end to end and report afterwards.

1. Find out what is already there

python3 -c "
import json, os
p = os.path.expanduser('~/.claude/settings.json')
d = json.load(open(p)) if os.path.exists(p) else {}
print(json.dumps(d.get('statusLine', None), indent=2))
print('refreshInterval:', (d.get('statusLine') or {}).get('refreshInterval', '(unset)'))
"

If the command contains pi-delegate/statusline-wrapper.sh, it is already ours. Stop and go to step 6 (update in place). Wrapping a wrapper is the obvious way to end up running the user's real status line twice, and then four times.

2. Probe it — do not reason about it

Whatever is there, run it and look. It gets a JSON payload on stdin, so give it one:

printf '%s' '{"session_id":"probe","cwd":"'"$PWD"'","model":{"id":"claude-opus-5","display_name":"Opus 5"},"workspace":{"current_dir":"'"$PWD"'","project_dir":"'"$PWD"'"},"version":"2.0.0","context_window":{"used_percentage":25}}' \
  | <their command> > /tmp/pi-probe.out 2>/tmp/pi-probe.err
echo "exit=$?  lines=$(wc -l < /tmp/pi-probe.out)"
cat /tmp/pi-probe.out

This is the whole reason the composition is safe for people whose setup you have never seen. You are not guessing at ccstatusline, starship, powerline or a personal shell script — you are looking at the bytes it produced. Note the line count; that is what the "after" preview needs.

Then show them their pi segment, on its own:

"${CLAUDE_PLUGIN_ROOT}/scripts/statusline.sh"

Read the full file on GitHub · 212 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. 4d ago First seen · 212 lines · 22 tokens per session scan B bd7611b79613

Subscribe to this mod's changes

statusline is a skill published in the GitHub repository LarryStanley/pi-delegate (2 stars, last pushed 11d ago), licensed MIT. It adds 22 tokens to every session and 2,582 once invoked, about $0.0001 per session on Opus 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-31.