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.
22 other projects use a version of this.
Adopted by
Most recently taken up by
- markshust/hcftheir own version, first seen Nov 29, 2026
- speti4/claude-statuslinetheir own version, first seen Nov 22, 2026
- Manukrish2504/themestheir own version, first seen Nov 22, 2026
- zedarvates/frugal-skillstheir own version, first seen Nov 8, 2026
- etr/groundworktheir own version, first seen Nov 8, 2026
- Instafill/statuslinetheir own version, first seen Nov 1, 2026
Used with
Projects with it also use update-cli-config, migrate-to-skills and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
PandelisZSkillupdate-cli-config
View and modify Cursor CLI configuration settings in ~/.cursor/cli-config.json. Use when the user wants to change CLI settings, configure permissions, switch approval mode, enable vim mode, toggle display options, configure sandbox, or manage any CLI preferences.
Also in 6 projects that use this
32103210Skillmigrate-to-skills
Convert 'Applied intelligently' Cursor rules (.cursor/rules/*.mdc) and slash commands (.cursor/commands/*.md) to Agent Skills format (.cursor/skills/). Use when you want to migrate rules or commands to skills, convert .mdc rules to SKILL.md format, or consolidate commands into the skills directory.
Also in 6 projects that use this
32103210Skillupdate-cursor-settings
Modify Cursor/VSCode user settings in settings.json. Use when you want to change editor settings, preferences, configuration, themes, font size, tab size, format on save, auto save, keybindings, or any settings.json values.
Also in 6 projects that use this
0mlkrizzz655335vSkillreview-bugbot
缺陷导向代码审查。用 Bugbot 子代理找 bug。
Also in 3 projects that use this
0mlkrizzz655335vSkillsdk
Codex SDK 集成开发。用 TypeScript/Python SDK 做 agent 生命周期、流式输出、本地/云端执行等集成。
Also in 5 projects that use this
Tsumugii24Skillsplit-to-prs
Split current work into small reviewable PRs. Use when the user asks to split a chat, set of changes, branch, or PR.
Also in 5 projects that use this
- +2 more from 32103210
- +1 more from 0mlkrizzz655335v
Other versions22 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 22
- markshust/hcf★ 86same name
- etr/groundwork★ 45same name
- Alexander-Tyagunov/magician★ 14same name
- ArangoGutierrez/claude-toolkit★ 4same name
- LarryStanley/pi-delegate★ 4same name
- 0mlkrizzz655335v/claude-skills-zh★ 2same name
- Eliasjunit/vibestretch★ 2same name
- skrrt-sh/skills★ 2same name
- zedarvates/botte-secrete★ 2same name
- bananasfromwork/claude-code-plugin★ 1same name
12 more not listed
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.

