[Opus 5.5] 📁 app | 🌿 main | $0.41 | ⏱️ 10m 12s
❤️❤️❤️❤️❤️❤️❤️🖤🖤🖤 26% 2h6m 🍗🍗🍗🍗🍗🍗🍗🍗🍗🦴 7% 2d0h
🟩🟩🟩🟩🟩⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛⬛ 22%
Middle-Dot Ledger
One colorless Node line: model, effort, folder and git branch, context size in tokens, the prompt-cache hit rate when Claude Code reports it, five-hour and seven-day usage, and session cost. Node built-ins only, no network calls.
Before you install
- This version was reviewed before it was listed on Oct 18, 2026
- Doesn't ask to connect to the internet
- Needs node 14 or newer (it uses ?.) and git on your PATH.
- Shows cache N% or cache cold only when stdin has a prompt_cache object, which no preview has.
- Context shows as a raw token count such as ctx 640k, with no percentage or window size.
Preview
Opus 4.8 · high · app (main) · ctx 44k · 5h 26% · 7d 7% · $0.41
Opus 4.8 · high · app (main)
Sonnet 4.6 · medium · app (feat/auth) · ctx 96k · 5h 40% · 7d 18% · $0.41
Opus 4.8 · max · app (main) · ctx 182k · 5h 88% · 7d 61% · $4.12
Fable 5 · xhigh · app (main) · ctx 640k · 5h 33% · 7d 80% · $0.41
Haiku 4.5 · app (main) · 5h 52% · $0.41
Opus 4.8 · low · feature (worktree-feature) · ctx 74k · 5h 44% · 7d 20% · $0.41
Opus 4.8 · high · scratch · ctx 44k · $0.41
What it does
A colorless line of the model, effort, folder and branch, context size in tokens, five-hour and seven-day usage, and session cost, split by middle dots.
- Written in
- Node.js
- Network access
- None requested
- Works in
- Terminal
How it works
- Reads the model, effort, folder, token counts, rate limits and cost from stdin.
- Asks git branch --show-current for the branch, waiting at most one second.
- Sums input, cache write and cache read tokens from current_usage and shows ctx 44k.
- Empty fields drop out, so a new session shows only model, effort, folder and branch.
Source
#!/usr/bin/env node
// Status line: rendered by the Claude Code client, never sent to the model
// (zero tokens). Receives session JSON on stdin, prints one line:
// Opus · xhigh · .claude (master) · ctx 118k · cache 91% · 5h 23% · 7d 41% · $0.42
// ctx is the absolute token count in context (a % of a 1M window hides real
// size); cache shows the prompt-cache hit ratio, or "cold" once it expires.
const fs = require("fs");
const path = require("path");
const { execFileSync } = require("child_process");
let d = {};
try {
d = JSON.parse(fs.readFileSync(0, "utf8") || "{}");
} catch {}
const dir = d.workspace?.current_dir || d.cwd || process.cwd();
let branch = "";
try {
branch = execFileSync("git", ["-C", dir, "branch", "--show-current"], {
encoding: "utf8",
stdio: ["ignore", "pipe", "ignore"],
timeout: 1000,
}).trim();
} catch {}
const pct = (v) => (typeof v === "number" ? `${Math.round(v)}%` : "");
const kTok = (n) => (n >= 1e6 ? `${(n / 1e6).toFixed(2)}M` : `${Math.round(n / 1000)}k`);
function ctx(w) {
const u = w?.current_usage;
const n = u ? (u.input_tokens || 0) + (u.cache_creation_input_tokens || 0) + (u.cache_read_input_tokens || 0) : 0;
return n > 0 ? `ctx ${kTok(n)}` : "";
}
function cache(c) {
if (!c?.caching_observed) return "";
if (!c.warm) return "cache cold";
return typeof c.hit_ratio === "number" ? `cache ${Math.round(c.hit_ratio * 100)}%` : "";
}
const parts = [
d.model?.display_name || "Claude",
d.effort?.level || "",
path.basename(dir) + (branch ? ` (${branch})` : ""),
ctx(d.context_window),
cache(d.prompt_cache),
d.rate_limits?.five_hour ? `5h ${pct(d.rate_limits.five_hour.used_percentage)}` : "",
d.rate_limits?.seven_day ? `7d ${pct(d.rate_limits.seven_day.used_percentage)}` : "",
typeof d.cost?.total_cost_usd === "number" && d.cost.total_cost_usd > 0 ? `$${d.cost.total_cost_usd.toFixed(2)}` : "",
].filter(Boolean);
process.stdout.write(parts.join(" · ") + "\n");
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/middle-dot-ledger-147df137?utm_source=readme-badge)
Or show the preview card:

[](https://statuslin.es/c/middle-dot-ledger-147df137?utm_source=readme-badge)
More status lines
╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ ▐ Opus 4.8 ▌ ▐ high ▌ ▐ …/user/app ▌ ▐ main ▌ ▐ 22% / 200k ━━━━━━━━━━ ▌ ▐ 26% ━━━━━━━━━━ 16:10 ▌ ▐ +128 −34 ▌ ▐ $0.41 ▌ ▐ 10m 12s ▌ │
│ MODEL EFFORT PATH BRANCH CONTEXT USAGE DIFF COST TIME │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
┌─────────────────────────────────────────────────────────────────────────────────┬────────────────────────────────┐
│ session summary session b8e1c0d2 │ │
├──────────────────────────┬──────────────────────────────────────────────────────┤ │
│ 📁 user/app +0 -0 lines │ Opus 5.5 effort high · 0min │ │
│ app main │ cost $0.00 (all time) · $0.00 (this session) │ │
├──────────────────────────┴──────────────────────────────────────────────────────┤ │
│ tokens 0 (all time) · 0 (this session) context ██░░░░░░░░ 22% compact 0 times │ │
├─────────────────────────────────────────────────────────────────────────────────┤ │
│ 5h-quota ███░░░░░░░ 26% resets 2h6m 7d-quota █░░░░░░░░░ 7% resets 2d0h │ │
└─────────────────────────────────────────────────────────────────────────────────┴────────────────────────────────┘Opus 4.8 [high] ~/app main
16:20:55 | ⛁ ██░░░░░░░░ 22% | 5h ●◔○○○ 26% ↻2h7m | 7d ◔○○○○○○ 7% ↻2d1h │ $0.41 ⏱ 10m
████▊░░░░░░░░░░░░░░░░░ 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
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
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).

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.

Flightdeck: a live agent dashboard for Claude Code. Main model vitals, an on-call architect, every permission check, subagent cards and swimlanes, a turn receipt and a session log, all from real session events