setup-statusline
Skill35 starsChanged 2 months agoApache-2.0View on GitHub
Live token counter in your CLI. Shows real-time input/output/cache token counts in the Claude Code status bar
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 3 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
If the user provides "help" as argument, show usage summary and stop:
- Distinctive: line 36
Do not modify any settings.
- Very specific: line 46
Check current statusLine field:
- Very specific: line 51
If version differs, update path silently, then print "Updated to current version." and stop.
- Very specific: line 52
If same version, print "Already installed." and stop.
- Very specific: line 53
Check by matching the command path containing super-token-saver/scripts/statusline-logger.sh.
- Very specific: line 66
Wait for user response. If "1", backup to _statusLineBackup then install.
- Distinctive: line 76
Verify the script is executable:
- Very specific: line 136
Always use node -e for JSON manipulation (safe parsing, no jq dependency).
- Very specific: line 137
Never modify fields other than statusLine and _statusLineBackup.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Claude Code only. Codex has its OWN status line, configured through
status_lineinconfig.tomlfrom a fixed set of named segments rather than a command — seedocs/CODEX-PORT-BACKLOG.md.
Manage the super-token-saver statusline in Claude Code's ~/.claude/settings.json.
Help
ONLY show help if the user's argument literally contains the word "help" (e.g. /setup-statusline help). If no argument or any other argument is given, SKIP this section entirely and proceed to Step 1.
If the user provides "help" as argument, show usage summary and stop:
/setup-statusline — Install or uninstall the live usage monitor
Format:
[RUN🟢] $0.10/$12.23 | [5H🟢] 9% ⏳1h32m | [W🟡] 65% ⏳1d3h | [CTX🟢] 22%
───── last / total 5h window usage weekly (≥60% only) context window
(subscribers only)
Options:
install Register statusline (default)
uninstall Remove and restore previous config
help Show this help
Examples:
/setup-statusline install
/setup-statusline uninstallDo not modify any settings. Just display the help text and stop.
Args
install(default if no arg) — register the statusline scriptuninstall— remove and restore backup if available
Install Flow
- Read
~/.claude/settings.json Check current
statusLinefield:Case A: No statusLine — install directly.
Case B: Already our script — check if path matches current
${CLAUDE_PLUGIN_ROOT}. If version differs, update path silently, then print "Updated to current version." and stop. If same version, print "Already installed." and stop. Check by matching the command path containingsuper-token-saver/scripts/statusline-logger.sh.Case C: Different statusLine exists — warn and ask the user:
⚠️ Existing statusline detected: command: {existing command} Options: 1. Replace (backup existing to _statusLineBackup) 2. Cancel Which? (1/2)Wait for user response. If "1", backup to
_statusLineBackupthen install. If "2", stop.- Install: set
statusLineto:{ "type": "command", "command": "${CLAUDE_PLUGIN_ROOT}/scripts/statusline-logger.sh" } - Verify the script is executable:
chmod +x "${CLAUDE_PLUGIN_ROOT}/scripts/statusline-logger.sh" - Output:
✅ Statusline installed. It will appear after your next interaction with Claude. Subscriber format: [RUN🟢] $0.10/$12.23 | [5H🟢] 9% ⏳1h32m | [W🟡] 65% ⏳1d3h | [CTX🟢] 22% API key format: [RUN🟢] $0.10/$12.23 | [CTX🟢] 22% Fields: - [RUN] $0.10/$12.23 — **Current user turn cost** / cumulative cost since `claude` started. The turn cost accumulates across follow-up tool calls so a $1.43 warning stays visible until you start a new prompt. A new turn is detected when no API call happens for 60 seconds (tunable via `CC_UPGRADER_TURN_IDLE_SEC`). Resets when you exit and restart claude. - [5H] 9% ⏳1h32m — Anthropic 5-hour rate limit usage (subscribers only). ⏳ shows time until the window resets. - [W] 65% ⏳1d3h — 7-day weekly rate limit. Only shown when ≥60%. ⏳ shows time until the weekly window resets. - [CTX] 22% — Context window usage. Higher = more tokens per call. Color thresholds: | Indicator | 🟢 Normal | 🟡 Warning | 🔴 Critical | |-----------|-----------|------------|-------------| | RUN | < $0.30 | ≥ $0.30 | ≥ $1.00 | | 5H | < 70% | ≥ 70% | ≥ 90% | | W | (hidden) | ≥ 60% | ≥ 90% | | CTX | < 35% | ≥ 35% | ≥ 70% | When 5H reaches 🔴, → /report-limit hint appears. Other warnings show → /usage-view current for detailed analysis. To remove: /setup-statusline uninstall
Uninstall Flow
- Read
~/.claude/settings.json Check current
statusLine:Not our script — print "super-token-saver statusline is not installed." and stop.
Our script — remove
statusLinefield. If_statusLineBackupexists, restore it tostatusLineand delete_statusLineBackup.- Output:
✅ Statusline removed. {If restored: "Previous statusline restored from backup."} {If no backup: "No previous statusline to restore."}
Important
- Always use
node -efor JSON manipulation (safe parsing, no jq dependency). - Never modify fields other than
statusLineand_statusLineBackup. - The script path must use
${CLAUDE_PLUGIN_ROOT}to stay portable.
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- ThomasLangbroek/frugal★ 37same name
- UnicodeDigital/claude-skills★ 1same 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 repository7 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- report-limitSkill
- s-compactSkill
- s-continueSkill
- setup-git-liteSkill
- usage-viewSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

