on

A command that shows a selected field in the craft-statusline shown by Claude Code.

In plain words
What is it for?
Use it with a field name like `cost` or `branch` to enable that part of the status line and save the setting.
Why use it?
It restores status information that was previously hidden, such as the model, Git branch, context usage, rate limits, cost, or colors.

Command

Part of the craft-statusline plugin — 5 commands 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 commands/derjochenmeyer/claude-code-craft-statusline/on
Clone the repo
git clone --depth 1 https://github.com/derjochenmeyer/claude-code-craft-statusline

Or install craft-statusline, the plugin that ships this one along with the rest of its 5 commands.

Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 417 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.00015 $0.00417
Opus 5 $0.00008 $0.00209
Sonnet 5 $0.00003 $0.00083
Haiku 4.5 $0.00002 $0.00042

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

Security

Grade B, and why

on 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 3d 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.

### 3. Patch ~/.claude/settings.json
commands/on.md · 65 lines

What it actually says

craft-statusline:on

Enable one of the craft-statusline boolean options. The argument is the field name.

Valid arguments

model, branch, context, context_alert, rate_limits, cost, color

Steps

1. Validate the argument

Argument is $ARGUMENTS. If empty or not in the list above, report:

Usage: /craft-statusline:on <field>
Valid fields: model, branch, context, context_alert, rate_limits, cost, color

Stop.

case "$ARGUMENTS" in
  model|branch|context|context_alert|rate_limits|cost|color) ;;
  *)
    echo "Usage: /craft-statusline:on <field>"
    echo "Valid fields: model, branch, context, context_alert, rate_limits, cost, color"
    exit 1
    ;;
esac

2. Map to option key

Prepend show_ (e.g. costshow_cost).

3. Patch ~/.claude/settings.json

User-config values for plugins live under pluginConfigs.<plugin-id>.options.

key="show_$ARGUMENTS"
existing=~/.claude/settings.json
[[ -f "$existing" ]] || echo '{}' > "$existing"
tmp=$(mktemp)
jq --arg k "$key" '
  .pluginConfigs //= {}
  | .pluginConfigs["craft-statusline"] //= {}
  | .pluginConfigs["craft-statusline"].options //= {}
  | .pluginConfigs["craft-statusline"].options[$k] = true
' "$existing" > "$tmp" && mv "$tmp" "$existing"

4. Confirm

Enabled: show_<field>
The change takes effect on the next status line refresh.
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. 3d ago First seen · 65 lines · 0 tokens per session scan B cb94bdf32d47

Subscribe to this mod's changes

on is a command published in the GitHub repository derjochenmeyer/claude-code-craft-statusline (2 stars, last pushed 4mo ago), licensed MIT. It adds 15 tokens to every session and 417 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.