/aria-knowledge:statusline [on|off|status]from aria-knowledge
Installs or removes a persistent status-line meter in the Claude Code CLI showing context-window usage, rolling 5-hour and 7-day plan usage percentages, model name with effort suffix, and account email. Useful for monitoring context and plan consumption at a glance.
Ships in aria-knowledge. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Wire up (or remove) a persistent status line at the bottom of the Claude Code CLI showing:
Fable 5 H │ ███░░░░░░░ 31% ctx │ 5h 24% ↺1pm │ 7d 88% ↺Tue 1pm
/effort: L low · M medium · H high · XH xhigh · MX max (e.g. Fable 5 H). Reflects live mid-session /effort changes; no suffix renders when the current model has no effort parameter.The 5h/7d segments render only on Pro/Max subscription sessions and only after the first response of a session. On API-key sessions they're absent and the line shows model + context only.
The meter's last segment is the account email (read from ~/.claude.json), placed last so a width-truncated line only ever clips the email, not the usage — and so you can tell which account a terminal belongs to when running more than one.
Installing the meter also lets the session's Claude know these numbers: on each render the meter writes a snapshot, keyed by account, to ~/.claude/aria-statusline-state-<accountUuid>.json, which Claude reads on demand (e.g. before /handoff or compaction — see the SessionStart TASK BUDGET guardrail). Per-account keying means a second logged-in account never clobbers the first's usage (which previously caused the alert to fire on the wrong account). A UserPromptSubmit hook additionally injects a warning when context/5h/7d crosses usage_alert_threshold (80% once aria-knowledge is configured, adjustable in /setup; set off to disable). All of this is dormant until the meter is installed — and the injection specifically is also dormant until /setup has written a config file, because config.sh resolves all of its defaults only when one exists. On-demand reading of the snapshot works either way.
A Claude Code plugin cannot register a statusLine from its manifest — the main status line is read only from the user's ~/.claude/settings.json. So this skill performs the one-time wiring: it copies the meter script to a stable location and points your settings at it. (subagentStatusLine is the only status-line key a plugin may default, and it's a different surface.)
This is a Claude Code CLI feature — the meter only renders in the terminal CLI. If the Bash tool is unavailable (you're in Cowork or another non-Code runtime), tell the user: "The status-line meter is a Claude Code feature and can't be configured from this runtime." and stop. Otherwise proceed.
Desktop-app caveat: the Claude Code desktop app has Bash but does not render this status line — it does not invoke the statusLine command and shows its own native usage indicator instead. So in a desktop session the wiring installs cleanly but the meter never appears in the desktop UI, and the usage snapshot (aria-statusline-state-<accountUuid>.json) is not refreshed by desktop renders. Still install when asked — the wiring is global, so the meter and snapshot work in the user's CLI sessions on the same machine. If you detect a desktop runtime (e.g. CLAUDE_CODE_ENTRYPOINT=claude-desktop), proceed with the install but mention that the meter shows in CLI sessions, not the desktop UI (where the app's built-in indicator covers it). (See docs/non-goals.md for why a desktop bridge is deferred.)
Parse the argument (default on when none given):
on (or empty) → run Install / Refresh.off → run Remove.status → run Status.SRC="${CLAUDE_PLUGIN_ROOT}/scripts/statusline-meter.sh"
DEST="$HOME/.claude/aria-statusline-meter.sh"
SETTINGS="$HOME/.claude/settings.json"
[ -f "$SRC" ] && echo "source ok: $SRC" || echo "MISSING SRC"
command -v jq >/dev/null 2>&1 && echo "jq: present" || echo "jq: MISSING"
echo "HOME=$HOME"
MISSING SRC: tell the user the plugin install looks incomplete and stop.jq: MISSING: warn — "jq isn't installed. The meter needs it to read the status-line data; without it the line will show only the model name. Install with brew install jq (macOS) or your package manager, then re-run /statusline." Continue anyway (a model-only line still installs cleanly), but make the limitation explicit.HOME value — you will write an absolute path into settings.json (do not write ~ or ${CLAUDE_PLUGIN_ROOT}; neither is guaranteed to expand in the settings file, and the plugin's own install dir is version-stamped and changes on update).mkdir -p "$HOME/.claude"
cp "${CLAUDE_PLUGIN_ROOT}/scripts/statusline-meter.sh" "$HOME/.claude/aria-statusline-meter.sh"
chmod +x "$HOME/.claude/aria-statusline-meter.sh"
echo "copied to $HOME/.claude/aria-statusline-meter.sh"
Copying (rather than referencing the plugin dir directly) means the meter survives plugin updates and reinstalls. The trade-off: when a plugin update improves the meter, the user re-runs /statusline to refresh this copy — say so in the final summary.
Read ~/.claude/settings.json with the Read tool.
statusLine key.statusLine key: you'll merge one in, preserving every existing key.statusLine key:
command already points at …/aria-statusline-meter.sh, this is a refresh — no settings change needed (the Step 2 copy already updated the script). Report that and skip to Step 5.<command>. Replace it with the aria-knowledge meter? (y/n)" — only proceed on explicit y. On n, leave settings untouched and tell the user the meter script is staged at ~/.claude/aria-statusline-meter.sh if they want to wire it manually.Before any write, back up the existing file (only if it exists):
[ -f "$HOME/.claude/settings.json" ] && cp "$HOME/.claude/settings.json" "$HOME/.claude/settings.json.aria-bak" && echo "backed up to settings.json.aria-bak"
Then write ~/.claude/settings.json with the statusLine block merged in, preserving all existing keys (read the current JSON, add/replace only the statusLine key, write the whole object back — valid JSON, 2-space indent). The block:
"statusLine": {
"type": "command",
"command": "<HOME>/.claude/aria-statusline-meter.sh",
"refreshInterval": 30
}
Substitute <HOME> with the literal absolute path captured in Step 1 (e.g. /Users/alice/.claude/aria-statusline-meter.sh). If the file didn't exist, the whole file is just { "statusLine": { … } }.
refreshInterval: 30 re-runs the meter every ~30s in addition to the event-driven renders, so the persisted usage snapshot stays current even while the session is idle or just after a resume (when no assistant message has fired a render yet). It re-runs only the meter — a local ~5ms script with no API token cost — and does not change how often the usage alert fires (that's the UserPromptSubmit hook, band-gated on your prompt). On a refresh/repair where settings already has a statusLine pointing at the aria meter, set refreshInterval to 30 if it's absent, but preserve a user's existing smaller (higher-frequency) value.
Validate the written JSON before declaring success:
if command -v jq >/dev/null 2>&1; then
jq empty "$HOME/.claude/settings.json" && echo "settings.json: valid JSON" || echo "settings.json: INVALID — restoring backup"
fi
If validation fails, restore from settings.json.aria-bak and report the error rather than leaving broken settings in place.
Prove it works by piping a representative payload through the installed copy (don't ask the user to eyeball the CLI — show them the rendered output):
echo '{"model":{"display_name":"Fable 5"},"effort":{"level":"high"},"context_window":{"used_percentage":31},"rate_limits":{"five_hour":{"used_percentage":24,"resets_at":0},"seven_day":{"used_percentage":12}}}' | "$HOME/.claude/aria-statusline-meter.sh"; echo
Summarize:
Status-line meter installed.
- Script: ~/.claude/aria-statusline-meter.sh
- Wired in: ~/.claude/settings.json (backup at settings.json.aria-bak)
- Shows: model · context bar · 5h usage · 7d usage (5h/7d on Pro/Max only)
It appears at the bottom of the CLI on the next render (start typing, or open a new session if it doesn't show).
Re-run /statusline after a plugin update to refresh the meter script.
Remove it anytime with /statusline off.
If jq was missing, append the install hint and note the line will show model-only until jq is installed.
~/.claude/settings.json. If it has no statusLine key, report "No status-line meter is configured." and stop.statusLine.command does not reference aria-statusline-meter.sh, it's not ours — stop and ask before removing: "The configured status line isn't the aria-knowledge meter (<command>). Remove it anyway? (y/n)".cp settings.json settings.json.aria-bak), then rewrite settings.json with the statusLine key removed, preserving all other keys. Validate the result is valid JSON (restore backup on failure).~/.claude/aria-statusline-meter.sh) and its per-account usage snapshots (~/.claude/aria-statusline-state-*.json)? (y/n)" — on y, rm -f the script plus the aria-statusline-state-*.json glob (and the legacy aria-statusline-state.json if present), plus any aria-usage-warn-* band-state files in the state directory (the directory named by state_dir= in ARIA CONFIG; skip this part when it reads none).~/.claude/aria-statusline-meter.sh exists.~/.claude/settings.json and report whether statusLine is set and what command it points at (and whether that's the aria-knowledge meter).jq is installed (command -v jq).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
status-line, context-meter, usage-meter, plan-usage, cli-tool
npx claudepluginhub mikeprasad/aria-knowledge --plugin aria-knowledge40 skills in this plugin
/aria-assistMorning product-management review across all your projects. Use when the user runs /aria-assist, asks for a morning review / daily PM digest / "what should I do today across my products", or when the launchd job fires it headless. Two modes - `generate` (headless: read facts, deep-review ACTIVE projects, apply logged light writes, write the dated digest + per-project PM-REVIEW.md) and `review` (interactive: load today's digest, walk proposals, execute approved ones). Roster comes from projects_list; settings from pm_* keys in aria-knowledge.local.md. (Claude Code variant — full scheduler path. Other ports run manual-only generate/review.)/ask/ask — Query-Driven Knowledge CreationResearch a question, check existing knowledge first, draft a knowledge doc from the answer, and save directly to the appropriate category. Use when user says '/ask', 'ask about', 'research and save', 'I want to learn about', 'what is the pattern for'. Skips backlogs — the user reviews the answer in real-time before saving. (Code port — ADR-094.)/audit/audit — Audit Family DispatcherUmbrella for the audit family — the canonical way to run every sub-audit: '/audit knowledge' (scan memory and plans for extractable knowledge, backlog-to-promotion review), '/audit config' (CLAUDE.md/settings/docs drift and staleness), '/audit style' (mine session-log history for revealed working-style rules), '/audit usage' (value/ROI report over your own corpus), '/audit rules' (mine your distilled corrections for promotable standing rules), or '/audit share' (batch-review personal knowledge for promotion to the team-shared tier). Trigger: '/audit', 'run an audit', 'knowledge audit', 'config audit', 'audit my style', 'audit my rules', 'usage report', 'share knowledge', 'promote to team'.Other plugins' skills for the same job