/cc-customize:statusline-setupfrom cc-customize
Installs and configures a custom Claude Code statusline showing model info, git status, context usage, rate limits, prompt-cache state, and session token/cost totals.
Ships in cc-customize. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Install and configure a custom Claude Code statusline that shows model info, git status, context usage, rate limits, prompt-cache state, and session token and cost totals.
The statusline displays 3 lines. Each item shows only when Claude Code sends its field.
[Opus 5.5 · high · fast] │ my-session │ my-project git:(main* ↑1) │ wt:feat-1 │ PR #12 approved │ INSERT
fast mode, and no-think when thinking is off.* marks uncommitted changes to tracked files. ↑/↓ count commits ahead of and behind the upstream. A detached HEAD shows as @<short-sha>.Context ███░░░░░░░ 31% (113.8K/367.0K) │ 5h: … (4h 33m) │ 7d: … (2d 10h) │ spend: …
CLAUDE_CODE_AUTO_COMPACT_WINDOW, else autoCompactWindow from the user settings.json, else the model context window. It is capped at the model context window. CLAUDE_AUTOCOMPACT_PCT_OVERRIDE can only lower the trigger. When auto-compact is off, the bar uses the window.--autocompact launch flag. When the window is set there, the bar uses the wrong limit.tasks 3/5 │ cache 1h: warm 59m hit 91% │ tokens 648.0K │ cost \$0.67
… shows until the first count is ready.Claude Code cancels a statusline run that is still busy when the next update arrives. The script keeps each run fast:
jq call parses the input.Per-session state is kept in ${TMPDIR:-/tmp}/cc-statusline-<uid>/<session-id>/. The script sets the directory to mode 700. If another user owns the directory, the script keeps no state: the token total shows … and git status is not cached. The last input JSON is saved there as last-input.json for debugging.
The script reads settings.json and the session task list from ${CLAUDE_CONFIG_DIR:-~/.claude}. If settings.json is not valid JSON, the script ignores it.
bash and jq (brew install jq on macOS).git for the git status. Linux and macOS are supported. The script uses flock and setsid when they are available, and falls back to a mkdir lock on macOS.Copy the bundled script to the Claude Code config directory:
cp "${CLAUDE_PLUGIN_ROOT}/skills/statusline-setup/scripts/statusline-command.sh" ~/.claude/statusline-command.sh
chmod +x ~/.claude/statusline-command.sh
Read ~/.claude/settings.json, then set the statusLine field to the following value:
{
"type": "command",
"command": "bash ~/.claude/statusline-command.sh"
}
~/.claude/settings.json does not exist, create it: { "statusLine": <value above> }.statusLine field already exists, replace its value. If not, add it.Inform the user that the statusline is configured. Changes take effect on the next Claude Code session (restart required).
To install changes from a new plugin version, re-run Step 1 above.
To remove the statusline, delete the statusLine field from ~/.claude/settings.json and remove ~/.claude/statusline-command.sh.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub aeghnnsw/cc-toolkit --plugin cc-customize3 skills in this plugin
/claude-prompt-configThis skill should be used when the user asks to "sync my CLAUDE.md", "install my global prompt", "apply my Claude config", "update the global CLAUDE.md", "push my CLAUDE.md to <host>", or wants to replace the global Claude Code instruction file with the maintained default, on this machine or on a remote host./model-configThis skill should be used when the user asks to "change model", "set default model", "switch model", "use 1M context", "enable 1M context window", "change effort level", "set thinking depth", "configure effort", "set auto-compact window", "adjust auto compact", "compact earlier", "change compact threshold", "disable auto compact", "configure autocompact", or wants to modify the model, effort level, or auto-compact settings in Claude Code.Other plugins' skills for the same job