-
Notifications
You must be signed in to change notification settings - Fork 0
Status line
sync-wiki edited this page Sep 6, 2026
·
1 revision
Generated from the repo's README by
scripts/sync-wiki.sh. Edit the README, not this page.
context_forge main Fable 5 ctx ███████░░░ 72% md ~952t
Powerline segments in the tmux "Night City" palette (needs a Nerd Font for the `` separators): directory, branch, model, context bar, CLAUDE.md token estimate (words × 1.3), and a rate-limit segment that appears only from 70%.
Step 1 — Copy script to permanent location:
cp <repo>/scripts/statusline-command.sh ~/.claude/statusline-command.sh
chmod +x ~/.claude/statusline-command.shStep 2 — Add to ~/.claude/settings.json:
{
"statusLine": {
"type": "command",
"command": "bash ~/.claude/statusline-command.sh",
"refreshInterval": 30
}
}Step 3 — Restart Claude Code.
Test before wiring up:
echo '{"context_window":{"used_percentage":72},"workspace":{"current_dir":"'"$PWD"'"},"model":{"display_name":"Fable 5"}}' \
| bash ~/.claude/statusline-command.shExpected output ends with Fable 5 ctx ███████░░░ 72% md ~Nt — the model name must render whole; a truncated name means the installed copy is outdated (re-run install.sh).
Colour thresholds (same palette for both segments):
| Colour | Context | CLAUDE.md tokens |
|---|---|---|
Green (#49d575) |
< 50% | < 390 |
Yellow (#f2c74b) |
≥ 50% | ≥ 390 |
Purple (#be59d6) |
≥ 75% | ≥ 780 |
| Red | ≥ 90% | ≥ 1300 |