agentleFS
statusdonestatusdone/claude-skills/skills/statusline/SKILL.md

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

The file

Files
SKILL.md

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

  1. Read references/design-rationale.md first — 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.
  2. Install the script. Copy statusline.sh to a stable location — ~/.claude/statusline.sh is the convention — and make it executable:
    cp skills/statusline/statusline.sh ~/.claude/statusline.sh
    chmod +x ~/.claude/statusline.sh
  3. Wire it into Claude Code settings (~/.claude/settings.json):
    { "statusLine": { "type": "command", "command": "~/.claude/statusline.sh" } }
  4. Tune the three knobs at the top of the Python block in statusline.sh for the user:
    • KNOB 1 — the context chip (BRANDS / BRAND_MATCH): ships with ONE dummy EX entry. Replace it with the user's real repos + accent colors, or empty BRAND_MATCH to 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, or None to disable.
  5. 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.
  6. 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/python3 exists.

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.md has 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.