statusline
Skill14 starsChanged 2 months agoMITView on GitHub
Enable, configure, or disable the Magician CLI status line ("Magician Claude CLI UI") — a lightweight bar showing live context %, a context-rot warning, a token-flow sparkline, model · git · cost, the active skill/workflow/loop, the reasoning effort/mode, the bundled-lore state, and the output-brevity "voice" level. Also sets the output-brevity voice (warrior/scribe/bard) and removes permission entries left by older magician versions. Use when the user says "enable/turn on the magician UI / status line / status bar", "show my context/tokens/effort in the console", "configure/change what the bar shows", "turn off / disable the status line", "make output shorter/leaner / set the voice", or "clean up magician's old permission rules".
10 other projects use a version of this.
Adopted by
Most recently taken up by
- JameMy0001/antigravity-skills-hubtheir own version, first seen Oct 2, 2026
- leishifu666/skillstheir own version, first seen Sep 29, 2026
- etr/groundworktheir own version, first seen Sep 10, 2026
- Instafill/statuslinetheir own version, first seen Sep 4, 2026
- LarryStanley/pi-delegatetheir own version, first seen Aug 23, 2026
- statusdone/claude-skillstheir own version, first seen Jul 22, 2026
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 10
- etr/groundwork★ 43same name
- Bangs00/claude-media-control★ 4same name
- LarryStanley/pi-delegate★ 4same name
- Galliard7/skills★ 1same name
- JameMy0001/antigravity-skills-hub★ 1same name
- leishifu666/skills★ 1same name
- PandelisZ/skills★ 1same name
- psw7205/skills★ 1same name
- Instafill/statusline★ 0same name
- statusdone/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository24 other files it gives its agents.
- accelerateSkill
- almanacSkill
- autopsySkill
- blueprintSkill
- certifySkill
- chronicleSkill
- confluenceSkill
- conjureSkill
- deploySkill
- divineSkill
- inscribeSkill
- jiraSkill
- knowledge-graphSkill
- magicSkill
- manifestSkill
- orchestrateSkill
- portalSkill
- scrutinizeSkill
- sealSkill
- sentinelSkill
- transmuteSkill
- unravelSkill
- wardSkill
- weaveSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 52
Keep it lightweight: recommend a smaller component set if the user wants a minimal bar (e.g.
- Very specific: line 53
Never hand-edit settings.json for this — always go through magician-ui, which backs up + validates.
“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/statusline — Magician CLI status line
Bundled command: if
magician-uiis not found, run it as${CLAUDE_PLUGIN_ROOT}/tools/magician-ui. If that is missing too (Claude chat ships no plugin tools), say the status line needs Claude Code.
A native Claude Code status line rendered by magician. It runs locally, consumes zero API tokens, updates on each message (debounced), and helps you catch context rot before it bites. It's driven by the bundled magician-ui CLI, which edits ~/.claude/settings.json safely (timestamped backup → validate → atomic write; it never leaves settings broken). Backups are mode 0600 and only the newest 3 are kept; an edit that changes nothing writes nothing. enable, set and disable touch only the statusLine key; cleanup removes only entries on the fixed list older magician versions used, and only when cli-ui.json records that they added them (a matching rule the user added too goes with them; see below). Enabling copies the renderer to ~/.claude/magician/statusline.py, which the statusLine command points at.
The status line is off until the user asks for it: magician never enables it on its own. Every command that changes settings (enable, set, disable, cleanup, voice <level>) goes through the normal permission prompt; only the read-only status commands are pre-approved.
Components (user-configurable)
| key | shows |
context | color-coded usage bar + used% + used/size tokens (green <70 · yellow 70–89 · red ≥90) |
rot | a ⚠ at ≥80% and 🔴 at ≥92% so you notice before compaction |
spark | a ▁▂▃▅▇ sparkline of recent context% (the token-flow stream) |
meta | model · git branch · session cost |
skill | the active magician skill / workflow / running-agent count / loop round |
effort | 🧠 the live reasoning effort (low/medium/high/xhigh/max) — the default shows on open and tracks /effort changes automatically (from Claude Code's effort.level) — or the magician mode you set, e.g. ultracode (which otherwise reports as xhigh); say "set mode to ultracode" / "exit ultracode" to change it |
lore | 📚 whether magician's bundled stack lore is shaping the session — lore:N (N cores injected) or lore:off |
voice | 🗣 the output-brevity voice — voice:warrior (leanest) · voice:scribe (default) · voice:bard (standard); set with magician-ui voice <level> |
Actions
- Enable — only when the user asks. First confirm which components they want (default: all) with AskUserQuestion (multi-select), unless they already said (e.g. "just rot and context"). Then:
A plainmagician-ui enable --all # everything magician-ui enable --only context,rot # a chosen subsetmagician-ui enable(for example to refresh the renderer after an update) keeps the saved components. - Change what shows (no re-enable needed):
magician-ui set context,rot,spark - Status —
magician-ui status(state, components, whether it's wired into settings, and any permission entries an older magician version left behind). - Disable —
magician-ui disableremoves only magician'sstatusLineentry; re-enable anytime on request.magician-ui disable --purgealso deletes magician's status-line files (the copiedstatusline.py, thestatus/markers andcli-ui.json). It refuses, changing nothing, whilecli-ui.jsonstill records entries for cleanup to remove;disable --purge --forcedeletes the record anyway and leaves those entries in settings. It also refuses whilecli-ui.jsoncan't be read and settings still has entries an earlier version could have added (allow rules on magician's old list, ordefaultModeauto), since the record might cover them. Suggest/statusline disablebefore the user uninstalls magician, sostatusLinedoesn't keep pointing at the copied renderer. - Clean up after older versions — magician 4.14 and earlier could add permission rules,
permissions.defaultModeand an auto-mode env key to~/.claude/settings.json.magician-ui cleanupremoves those entries only wherecli-ui.jsonrecords that magician added them (the allow rules, anddefaultModeset toauto), plus the env key and obsolete magician data files. Matching allow rules with no record stay, and cleanup names them; a rule the user also added while the record exists can't be told apart and is removed with magician's, exceptBash(jira:*)andBash(confluence:*)when the record is from 4.4 or later. Run cleanup beforedisable --purge, which deletes the record (and refuses to while the record is still needed, unless--forceis given).magician-ui statuslists what it would remove. Run it only when the user asks, and tell them what it will change first. - Unreadable
cli-ui.json— if the file exists but can't be read (not valid JSON, or not a JSON object), magician never replaces it.enable,set,default,lore on|offandvoice <level>stop and change nothing;cleanupanddisabledo the rest, leave the file as is and say so;status,lore statusandvoice statusnote it. Session start keeps reading the file's old values (status markers, the weekly upgrade notice) until it's fixed or deleted. Suggest the user fix the file (then runcleanupagain if it recorded old entries) or delete it. - Permission mode — magician does not change Claude Code's permission mode or rules. To start in auto mode, the user can press Shift+Tab, pass
--permission-mode auto, or use/config; to save rules,/permissions. - Voice — output brevity (lower token cost, no quality loss) —
magician-ui voice warrior|scribe|bardsets how wordy responses are. Output tokens cost several× input, so leaner output is the cheapest saving. Levels least→most wordy:warrior(minimal but complete),scribe(the default — leaner than usual),bard(standard/native). For warrior/scribe, SessionStart adds a brevity style note to the session context that cuts filler (preambles, recaps, restating the request) while keeping all substance and code/commands/errors verbatim — it never compresses prose into fragments or jargon.magician-ui voice statusshows the current level. Overrides (first match wins): envMAGICIAN_VOICE→ per-project.magician/voice→ this setting → defaultscribe. Takes effect next session start; the🗣 voice:chip shows it live.
Rules
- Act only on the user's request. Magician never enables the bar, re-adds it, or suggests it on its own; respect a "no".
- Enabling/disabling changes
~/.claude/settings.json; it hot-reloads, so the bar appears/updates within a message or two — no restart needed. - Keep it lightweight: recommend a smaller component set if the user wants a minimal bar (e.g.
context,rot). - Never hand-edit
settings.jsonfor this — always go throughmagician-ui, which backs up + validates.
Obstacles
This is a configuration utility that reports to the human directly, not upward to an orchestrator — so it emits no upward Obstacles block: surface any blocker in prose to the user and stop.
See lore/obstacles.md.
Completion Signal
"Magician CLI UI <enabled (components: …) | updated | disabled | cleaned up>. It runs locally (no tokens) and hot-reloads."
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

