statusline
Skill0 starsChanged 4 months agoMITView on GitHub
Install a research-grounded, dependency-free two-line Claude Code statusline. Use when the user wants to set up, install, customize, or understand a Claude Code statusline / status bar / status prompt — phrases like "set up my statusline", "install a statusline", "add a status bar to Claude Code", "show my context usage", "show git status in my prompt", "track my rate-limit / token budget", "customize statusline.sh", or "why is my context gauge red". Ships a single self-contained statusline.sh (reads first-party from the statusLine stdin JSON — no external tools, no cache file) with a colored per-repo context chip, model + effort, a TWO-LENS context gauge (window-% capacity AND research-backed raw-token quality bands, worst wins), a git working-tree segment, and a line-2 rate-limit "pace" budget forecast. NOT for general shell prompt (PS1/zsh) theming, and NOT for editing Claude Code settings unrelated to the statusline.
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
- Alexander-Tyagunov/magiciantheir own version, first seen Sep 28, 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
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
- Alexander-Tyagunov/magician★ 14same 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
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 repository3 other files it gives its agents.
- pitchSkill
- purchase-researchSkill
- site-auditSkill
The file
Files
statusline — a research-grounded Claude Code statusline
A single self-contained statusline.sh that turns the Claude Code status bar into a real
instrument panel: which repo you're in, which model + how hard it's thinking, how full your context
is (against two risk lenses), whether your working tree is safe to walk away from, and whether
your usage pace is on track to use — but not blow past — your plan's budget.
It reads everything first-party from the statusLine stdin JSON. No external dependencies, no cache file, no wrapper tool — so nothing can silently rot and freeze a segment on stale data.
What to do when this skill fires
- Read
references/design-rationale.mdfirst — it explains every segment, the two-lens context-gauge rationale (with the long-context research citations), the color language, and the three knobs the user will most likely want to tune. - Install the script. Copy
statusline.shto a stable location —~/.claude/statusline.shis the convention — and make it executable:cp skills/statusline/statusline.sh ~/.claude/statusline.sh chmod +x ~/.claude/statusline.sh - Wire it into Claude Code settings (
~/.claude/settings.json):{ "statusLine": { "type": "command", "command": "~/.claude/statusline.sh" } } - Tune the three knobs at the top of the Python block in
statusline.shfor the user:- KNOB 1 — the context chip (
BRANDS/BRAND_MATCH): ships with ONE dummyEXentry. Replace it with the user's real repos + accent colors, or emptyBRAND_MATCHto disable. - KNOB 2 — pace thresholds (
PACE_UNDER/PACE_ON/PACE_OVER): the example values (80 / 90 / 110) reflect one person's fixed-cost-plan preference. Ask what the user wants. - KNOB 3 — after-hours whisper (
STOP_HOUR): set to their end-of-day hour, orNoneto disable.
- KNOB 1 — the context chip (
- Optional: the model-fit delta segment (
⤴/⤵/✓) stays silent unless an external process writes~/.claude/.model-rec.json. Only mention/set this up if the user actually has such a recommender — otherwise leave it alone; it costs nothing when the file is absent. - Verify by opening a Claude Code session; the statusline renders at the bottom. If it's blank,
check the script is executable and
/usr/bin/python3exists.
Design notes worth carrying
- One color language across the whole line: 🟢 green = fine, walk away · 🟡 amber = a decision/ action is pending · 🔴 red = act now. Every colored segment obeys it.
- The context gauge takes the WORSE of two lenses — % of window (capacity risk, matters on
small 200K windows) and raw token count against research bands (quality risk, matters on big 1M
windows). This is the most genuinely useful idea in the script;
references/design-rationale.mdhas the full rationale. - Every segment has a one-line "how to revert/disable" comment inline — the script is meant to be edited, not treated as a black box.
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.

