Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By abhattacherjeev1.0.2MITIn 1 marketplace
Claude Code statusline in one install: install the 3-tier adaptive statusline, create your own from 20 composable items, or check context usage with context-bar. Never replaces a statusline script it did not write unless you pass --force, and backs up every file it replaces.
Claude loads one when your task matches it, or you run it by name.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Version: 1.0.2 · 3 skills · 0 agents · 0 commands
Claude Code statusline skills in one install: install a ready-made adaptive statusline, build your own from composable items, or check how full the context window is.
/plugin install statusline@claude-code-skills
(Add this repo as a plugin marketplace first; see the repo README.)
Invoke as /statusline:<skill>. The old names still match as trigger phrases.
| Skill | Was | What it does |
|---|---|---|
install | install-statusline (plugin custom-statusline) | Installs the 3-tier adaptive statusline: model, folder, git branch with sync status, color-coded context bar. |
create | statusline-creator | Generates a statusline script from 20 composable items (model, dir, git, cost, duration, context-bar and more). |
context-bar | context-bar | Prints a one-off, color-coded bar of how much context the current session has used. |
The three old plugins all wrote ~/.claude/statusline-command.sh or read the session transcript; they were one feature split three ways. context-bar stays its own skill because it is a one-off check, not a statusline. Its old statusline-command.sh variant is gone: create builds the same bar with its context-bar item.
install and create write ~/.claude/statusline-command.sh (or $CLAUDE_CONFIG_DIR/statusline-command.sh, or create --output PATH). Every script they write carries # managed-by: statusline-plugin on line 2.
--force to replace it.settings.json, is first copied to <file>.bak-<UTC time>.mv, so a failed write (disk full, no permission) leaves the old file in place.settings.json that is not one JSON object stops the install before anything is written (exit 2). A symlinked settings.json is updated through its link.Exit codes for both: 0 done; 1 failed (a write failed, jq is missing, or settings.json cannot be read; a file that was not written is unchanged); 2 bad input; 3 refused. The guard lives in lib/write-statusline.sh.
The statuslines run git on every prompt, in whatever repo the session is in. A repo you cloned or unpacked can carry config and attributes that make git run its own programs. Every git call the shipped statuslines (install's script, create's generated scripts and the recipes in item-recipes.md) make goes through _git, which is GIT_NO_LAZY_FETCH=1 GIT_ALLOW_PROTOCOL=none git --no-pager -c core.fsmonitor=false -c core.untrackedCache=false -c protocol.allow=never --no-optional-locks. "Probed" means a test or probe set the vector up, saw plain git run it, and saw the statusline not run it.
| git call | What a repo could make it run | How it is closed |
|---|---|---|
| every call | core.fsmonitor hook | -c core.fsmonitor=false |
| every call | core.pager, pager.<cmd> | --no-pager; the output is never a terminal anyway |
| every call | lazy fetch of missing objects in a partial clone, through the remote's transport (ext::, core.sshCommand, remote helpers) | No transport can start on any git version: GIT_ALLOW_PROTOCOL=none allows no protocol and overrides the repo's own protocol.<name>.allow (which beats -c protocol.allow=never, also set). On top: GIT_NO_LAZY_FETCH=1 (git 2.44+), and unsafe_repo skips status and diff in any partial clone. Probed with ext:: and with ssh plus core.sshCommand, without the other two guards. |
status --porcelain --ignore-submodules=all (install) | filter.<name>.clean / .process | unsafe_repo skips the call when a filter is defined in any scope but global or system, including include.path and worktree config, or when the config lookup fails. Probed. |
| same | the post-index-change hook (an index refresh write) | --no-optional-locks: no index write. Probed. |
| same | a submodule's own fsmonitor or filters, which unsafe_repo never sees | --ignore-submodules=all. Probed. |
diff [--cached] --numstat --ignore-submodules=all --no-textconv --no-ext-diff (create, recipes) | filters, submodules, lazy fetch | as above. Probed. |
| same | diff.external, diff.<driver>.textconv / .command | --no-ext-diff --no-textconv. --numstat never called them in the probe; the flags make that explicit. |
config --includes --show-scope --get-regexp | none: includes and includeIf only read files | a failed lookup skips the counts |
rev-parse --git-dir, rev-parse --abbrev-ref @{upstream}, branch --show-current | none: they read HEAD and refs | Probed with hooks, filters, a pager and an ext:: remote set up: nothing ran. |
npx claudepluginhub abhattacherjee/claude-code-skills --plugin statuslineBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground