◆ Opus 4.8 ▏ ctx ▓▓░░░░░░░░ 22% ▏ high ▏ 10m
main ▏ week ▓░░░░░░░░░ 7% ▏ 2d0h ▏ $0.41 ▏ +128/-34Dreambase Flat
One-line adaptation of @kyleledbetter's Dreambase Panel: a context bar with status word, token/cost/duration/lines-changed stats, and model + git branch + clock, all on a single line in a terracotta Claude-brand palette.
87 installs
Before you install
- This version was reviewed before it was listed on Oct 28, 2026
- Doesn't ask to connect to the internet
- Needs python3 and git. Git results are cached for 5 seconds in /tmp/claude-sl-git.
- That cache file is shared by every session, so two projects open at once can briefly show each other's branch.
- The 5h and 7d segment disappears when Claude Code sends no rate_limits data.
Preview
████▊░░░░░░░░░░░░░░░░░ 22% of 200K · GOOD │ ↓ 44.0K ↑ 1.4K │ $0.41 │ ⏱ 10m 12s │ +128/-34 │ 5h 26% ↻2h06m │ 7d 7% ↻2d0h │ ◆ Opus 5.5 · main · 03:53
░░░░░░░░░░░░░░░░░░░░░░ 0% of 200K · GOOD │ ↓ 0 ↑ 0 │ $0.00 │ ⏱ 10m 12s │ ◆ Opus 5.5 · main · 03:53
██████████▌░░░░░░░░░░░ 48% of 200K · GOOD │ ↓ 96.0K ↑ 1.4K │ $0.41 │ ⏱ 10m 12s │ +128/-34 │ 5h 40% ↻1h11m │ 7d 18% ↻2d21h │ ◆ Sonnet 5.5 · feat/auth ~1 ?1 · 03:53 I
████████████████████░░ 91% ⚠ of 200K · HIGH │ ↓ 182.0K ↑ 1.4K │ $4.12 │ ⏱ 10m 12s │ +128/-34 │ 5h 88% ↻17m │ 7d 61% ↻19h59m │ ◆ Opus 5.5 · main · 03:53
██████████████░░░░░░░░ 64% ⚠ of 1M · OK │ ↓ 640.0K ↑ 1.4K │ $0.41 │ ⏱ 10m 12s │ +128/-34 │ 5h 33% ↻3h29m │ 7d 80% ↻4d23h │ ◆ Fable 5.1 · main · 03:53
░░░░░░░░░░░░░░░░░░░░░░ 0% of 200K · GOOD │ ↓ 0 ↑ 0 │ $0.41 │ ⏱ 10m 12s │ +128/-34 │ 5h 52% ↻4h01m │ ◆ Haiku 4.5 · main · 03:53 N
████████▏░░░░░░░░░░░░░ 37% of 200K · GOOD │ ↓ 74.0K ↑ 1.4K │ $0.41 │ ⏱ 10m 12s │ +128/-34 │ ◆ Opus 5.5 · 03:53
████▊░░░░░░░░░░░░░░░░░ 22% of 200K · GOOD │ ↓ 44.0K ↑ 1.4K │ $0.41 │ ⏱ 10m 12s │ +128/-34 │ ◆ Opus 5.5 · 03:53
What it does
One line with a context bar and status word, session tokens, cost and time, your 5-hour and 7-day plan usage, then the model, git branch and clock.
- Written in
- Python
- Network access
- None requested
- Works in
- Terminal
How it works
- Reads the model, context window, cost, lines changed and rate_limits from stdin
- Runs git in the project folder for the branch plus staged, modified and untracked counts
- The bar and label step from GOOD to OK, MODERATE, HIGH and CRITICAL as context fills
- Plan usage goes yellow at 50%, orange at 75%, red at 90%, with a countdown to each reset
Source
#!/usr/bin/env python3
"""Claude Code Status Line — Dreambase Flat
Single-line adaptation of @kyleledbetter's Dreambase Panel: the same
context bar, stats, and repo sections in a terracotta Claude-brand
palette, rendered on one line instead of a boxed three-row panel.
"""
import json
import os
import subprocess
import sys
import time
data = json.load(sys.stdin)
# ── Extract data ──────────────────────────────────────────
model = data.get("model", {}).get("display_name", "—")
model_id = data.get("model", {}).get("id", "")
project_dir = data.get("workspace", {}).get("project_dir", ".")
current_dir = data.get("workspace", {}).get("current_dir", ".")
pct = int(float(data.get("context_window", {}).get("used_percentage") or 0))
ctx_size = int(data.get("context_window", {}).get("context_window_size") or 200000)
input_tokens = int(data.get("context_window", {}).get("total_input_tokens") or 0)
output_tokens = int(data.get("context_window", {}).get("total_output_tokens") or 0)
cost_usd = float(data.get("cost", {}).get("total_cost_usd") or 0)
duration_ms = int(data.get("cost", {}).get("total_duration_ms") or 0)
lines_added = int(data.get("cost", {}).get("total_lines_added") or 0)
lines_removed = int(data.get("cost", {}).get("total_lines_removed") or 0)
exceeds_200k = data.get("exceeds_200k_tokens", False)
vim_mode = data.get("vim", {}).get("mode", "")
rate_limits = data.get("rate_limits") or {}
# ── ANSI Colors ───────────────────────────────────────────
R = "\033[0m"
B = "\033[1m"
D = "\033[2m"
# Claude brand rust / terracotta
RUST = "\033[38;5;173m"
RUST_B = "\033[38;5;209m"
RUST_D = "\033[38;5;131m"
RUST_BG = "\033[48;5;52m"
# Functional
GRN = "\033[38;5;34m"
LIME = "\033[38;5;118m"
YEL = "\033[38;5;220m"
ORG = "\033[38;5;208m"
RED = "\033[38;5;196m"
CYN = "\033[38;5;81m"
BLU = "\033[38;5;69m"
PUR = "\033[38;5;141m"
WHT = "\033[38;5;255m"
GRY = "\033[38;5;243m"
# ── Formatters ────────────────────────────────────────────
def fmt_tok(n):
if n >= 1_000_000:
return f"{n / 1_000_000:.1f}M"
if n >= 1_000:
return f"{n / 1_000:.1f}K"
return str(n)
def fmt_dur(ms):
s = ms // 1000
h, rem = divmod(s, 3600)
m, sec = divmod(rem, 60)
if h:
return f"{h}h {m}m"
if m:
return f"{m}m {sec}s"
return f"{sec}s"
def fmt_reset(resets_at):
"""Countdown to a reset timestamp (epoch seconds/ms or ISO 8601)."""
if not resets_at:
return ""
try:
ts = float(resets_at)
if ts > 1e12:
ts /= 1000
except (TypeError, ValueError):
try:
from datetime import datetime
ts = datetime.fromisoformat(str(resets_at).replace("Z", "+00:00")).timestamp()
except ValueError:
return ""
s = max(0, int(ts - time.time()))
d, rem = divmod(s, 86400)
h, rem = divmod(rem, 3600)
m = rem // 60
if d:
return f"{d}d{h}h"
if h:
return f"{h}h{m:02d}m"
return f"{m}m"
def pct_clr(p):
if p >= 90:
return RED
if p >= 75:
return ORG
if p >= 50:
return YEL
return GRN
def truncate(s, maxlen=18):
return s[: maxlen - 1] + "…" if len(s) > maxlen else s
# ── Progress bar ──────────────────────────────────────────
BAR_W = 22
BLOCKS = " ▏▎▍▌▋▊▉█"
if pct >= 95:
bar_clr = RED
status_label = f"{RED}{B}CRITICAL{R}"
elif pct >= 85:
bar_clr = ORG
status_label = f"{ORG}HIGH{R}"
elif pct >= 70:
bar_clr = YEL
status_label = f"{YEL}MODERATE{R}"
elif pct >= 50:
bar_clr = LIME
status_label = f"{LIME}OK{R}"
else:
bar_clr = GRN
status_label = f"{GRN}GOOD{R}"
eighths = pct * BAR_W * 8 // 100
full = eighths // 8
partial = eighths % 8
empty = BAR_W - full - (1 if partial else 0)
bar = "█" * full
if partial:
bar += BLOCKS[partial]
bar += "░" * empty
ctx_label = "1M" if ctx_size >= 1_000_000 else "200K"
warn = f" {RED}{B}⚠{R}" if exceeds_200k else ""
# ── Git info (cached for perf) ────────────────────────────
CACHE = "/tmp/claude-sl-git"
def git_info():
try:
if time.time() - os.path.getmtime(CACHE) < 5:
with open(CACHE) as f:
p = f.read().strip().split("|")
if len(p) == 4:
return p
except (OSError, ValueError):
pass
try:
br = subprocess.run(
["git", "-C", project_dir, "branch", "--show-current"],
capture_output=True, text=True, timeout=2,
).stdout.strip()
if not br:
return ["", "0", "0", "0"]
st = len(subprocess.run(
["git", "-C", project_dir, "diff", "--cached", "--numstat"],
capture_output=True, text=True, timeout=2,
).stdout.strip().splitlines())
mo = len(subprocess.run(
["git", "-C", project_dir, "diff", "--numstat"],
capture_output=True, text=True, timeout=2,
).stdout.strip().splitlines())
ut = len(subprocess.run(
["git", "-C", project_dir, "ls-files", "--others", "--exclude-standard"],
capture_output=True, text=True, timeout=2,
).stdout.strip().splitlines())
result = [br, str(st), str(mo), str(ut)]
with open(CACHE, "w") as f:
f.write("|".join(result))
return result
except Exception:
return ["", "0", "0", "0"]
branch, staged, modified, untracked = git_info()
staged, modified, untracked = int(staged), int(modified), int(untracked)
# ── Derived values ────────────────────────────────────────
in_t = fmt_tok(input_tokens)
out_t = fmt_tok(output_tokens)
cost_s = f"${cost_usd:.2f}"
dur_s = fmt_dur(duration_ms)
clock = time.strftime("%H:%M")
# Git indicators
git_ind = ""
if staged:
git_ind += f" {GRN}+{staged}{R}"
if modified:
git_ind += f" {YEL}~{modified}{R}"
if untracked:
git_ind += f" {GRY}?{untracked}{R}"
# Lines changed
lines_s = ""
if lines_added or lines_removed:
lines_s = f"{GRN}+{lines_added}{R}{D}/{R}{RED}-{lines_removed}{R}"
# Model diamond icon
if "opus" in model_id:
m_icon = f"{RUST_B}◆{R}"
elif "sonnet" in model_id:
m_icon = f"{BLU}◆{R}"
elif "haiku" in model_id:
m_icon = f"{GRN}◆{R}"
else:
m_icon = f"{GRY}◆{R}"
# Vim mode
vim_s = ""
if vim_mode == "NORMAL":
vim_s = f" {RUST_BG}{WHT}{B} N {R}"
elif vim_mode == "INSERT":
vim_s = f" {RUST_BG}{WHT}{B} I {R}"
# ── Build content strings ─────────────────────────────────
ctx_content = (
f"{bar_clr}{bar}{R} {WHT}{B}{pct}%{R}{warn}"
f" {D}of{R} {RUST}{ctx_label}{R} {D}·{R} {status_label}"
)
stats_content = (
f"{BLU}↓{R} {in_t} {PUR}↑{R} {out_t}"
f" {RUST_D}│{R} {YEL}{cost_s}{R}"
f" {RUST_D}│{R} {GRY}⏱ {dur_s}{R}"
+ (f" {RUST_D}│{R} {lines_s}" if lines_s else "")
)
# Plan usage (5h / 7d rate-limit windows); only present for subscription plans
usage_parts = []
for key, label in (("five_hour", "5h"), ("seven_day", "7d")):
win = rate_limits.get(key) or {}
if win.get("used_percentage") is None:
continue
up = int(float(win["used_percentage"]))
reset = fmt_reset(win.get("resets_at"))
usage_parts.append(
f"{GRY}{label}{R} {pct_clr(up)}{B}{up}%{R}"
+ (f" {D}↻{reset}{R}" if reset else "")
)
usage_content = f" {RUST_D}│{R} ".join(usage_parts)
repo_content = f"{m_icon} {RUST_B}{B}{model}{R}"
if branch:
repo_content += f" {RUST_D}·{R} {PUR}{truncate(branch)}{R}{git_ind}"
repo_content += f" {RUST_D}·{R} {GRY}{clock}{R}"
repo_content += vim_s
# ── Render (single line) ──────────────────────────────────
sep = f" {RUST}│{R} "
print(sep.join(s for s in [ctx_content, stats_content, usage_content, repo_content] if s))
Badge for your README
Own this listing? Add it to your README. The badge shows the install count as it grows.
[](https://statuslin.es/c/dreambase-flat-f5cbd3ff?utm_source=readme-badge)
Or show the preview card:

[](https://statuslin.es/c/dreambase-flat-f5cbd3ff?utm_source=readme-badge)
More status lines
╭─ CONTEXT ────────────────────────────────────────────╮
│ ████▊░░░░░░░░░░░░░░░░░ 22% of 200K · GOOD │
├─ STATS ──────────────────────────────────────────────┤
│ ↓ 44.0K ↑ 1.4K │ $0.41 │ ⏱ 10m 12s │ +128/-34 │
├─ REPO ───────────────────────────────────────────────┤
│ ◆ Opus 4.8 · main · 16:21 │
╰──────────────────────────────────────────────────────╯
Opus 4.8 [high] ~/app main
16:20:55 | ⛁ ██░░░░░░░░ 22% | 5h ●◔○○○ 26% ↻2h7m | 7d ◔○○○○○○ 7% ↻2d1h │ $0.41 ⏱ 10m
Opus 4.8 high ✦ │ ctx 22% │ app (main) │ PR #1287 ● │ $0.41 · 10m +128 -34
Session ● ● ● ● ● ● ● ● ○ ○ ○ 74% left Resets in 2h 6m
Weekly ● ● ● ● ● ● ● ● ● ● ○ 93% left Resets in 2d 0h
Fable ● ● ● ● ● ● ● ● ● ○ ○ 85% left Resets in 2d 0h
◐ Read:index.ts ✓ Read×1 ✓ Bash×1 ✓ Edit×1 ✓ Grep×1
◐ code-reviewer Review the change for regressions
Model: Opus 4.8 | Thinking: high | Context: [▰▰▱▱▱▱▱▱▱▱] 45k/200k (22%) | cwd: ~/app | ⎇ main | (+0,-0)
Cost: $0.41 | Block: 2hr 6m | Weekly: 7.0% | Session: 10m | In: 916.7 t/s | Out: 29.2 t/s | Cached: 2k | Session: [▰▱▱▱▱] 26.0%
Mem: 0.8G/1.0G | (*゚∀゚*) | Session ID: b8e1c0d2-4a6f-4e2a-9c1b-3f5d7a9e2c10
🌿 main │ Opus 4.8/hi │ 🟢 Ctx ▓▓░░░░ 22% │ ⏳ 🟢 ▓▓░░░░ 26% ↻ 2h7m │ $0.41 ⏱ 10m
Related mods

Shows branch safety, context headroom, and account usage in a compact session telemetry strip

One line above the prompt: context tokens with their weather, a bar per recent prompt, your 5-hour and 7-day limits against the time elapsed, the prompt cache with its time left, the session cost with the last prompt's share in dollars and in points of the 5-hour limit, the subagents running, and a one-click pill for the GOs Claude proposes. Labels in English, French or Russian. After Token Weather (Anthropic, Apache-2.0) and the ideas of usage-meter (HolyGrail) and prompt-cache-control (Daniel San).

An animated pixel-art companion above your prompt that reacts to your session and your typing, with a live context meter.

A cockpit for Claude Code: plan bars and subagent strips, context, usage limits with reset countdowns and burn rates, spend, the model route and a pet. Six bar styles, three collapsed looks. CLI and Desktop.
