SLOPSHOPPER

glanceline

glanceline is now g-line. This stub keeps 0.3/0.4 installs loading and tells you how to switch: /plugin uninstall glanceline, then /plugin install g-line…

commandtoast
v0.5.0MITupdated 2026-10-14lifeofgurpreet/g-line/legacy/glanceline
A shopper browsing a rack in a slop shop
Preview · a replayed session in a sandbox
claude · ~/work/app · glanceline
› fix the failing auth test and add an audit log call ╭────────────────────────────────────────────╮ │ glanceline │ ⏺ Read(src/auth.ts) │ glanceline is now g-line. To switch: │ ⎿ Read 6 lines │ /plugin uninstall glanceline, then /plugin │ ⏺ Update(src/auth.ts) │ install g-line --marketplace │ ⎿ Added 2 lines, removed 1 line ╰────────────────────────────────────────────╯ ⏺ Bash(bun test) ╭────────────────────────────────────────────╮ ⎿ 3 pass, 1 fail │ glanceline │ │ glanceline is now g-line. To switch: │ ● Done. refresh now rejects expired claims and logs an audit event. │ /plugin uninstall glanceline, then /plugin │ │ install g-line --marketplace │ ✻ Worked for 42s · done 4:20 PM ╰────────────────────────────────────────────╯ › /glanceline ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── › ? for shortcuts
README

g-line

Live status. Receipts on the turns.

g-line is a Claude Code mod. It writes context jumps, cache rebuilds and tool failures on the turns where they happened, and keeps the model, its effort, the prompt cache and your usage windows in two short lines under the prompt.

In Claude Code 2.1.293 or later, type at the prompt:

/plugin install g-line --marketplace lifeofgurpreet/g-line

Answer y to add the marketplace and pick a scope (user is the usual choice). The mod starts at once, with no restart. /plugin uninstall g-line removes it.

A real Claude Code session with g-line: an ordinary turn closes with "API $0.22 · cache read 49%"; while it runs, the spinner shows its burn; over five idle minutes the cache countdown on the second line runs down, a heads-up warns before it goes cold, and it goes cold; the next turn closes with "cache cold · rebuilt 42k · API $0.31"

What you get

  • A receipt on every turn. The line that closes a turn (Worked for 20s · done 11:01 AM) gains what the turn cost at API prices and how much of its input the prompt cache served: API $0.22 · cache read 49%. A turn that did something unusual leads with it, in colour: +86k context, cache cold · rebuilt 42k, 3 failed Bash calls, compacted 182k → 31k, API $1.42 · 4x recent. Scroll back and you can see which turn changed things.
  • The running turn on the spinner. 3 tools · +4.1k ctx · 5h 74% while it works, and ⚠ 3× Edit failures on core.ts when calls keep failing.
  • Two lines under the prompt. Context and usage at the end of Claude Code's own hint line (ctx 13% · 5h 1% · wk 79%!), and one coloured row with the model, the cache countdown and what happens next (Opus 5.5 high · cache ~59m · wk full in ~1d 4h, back Fri 16:00). Nothing goes above the prompt.
  • Heads-ups. A native notification five minutes before a one-hour prompt cache goes cold, with the context at stake (Claude cache goes cold in 5m (148k of context at risk)), and another when a usage window you came close to resets.
  • The cache after a restart. A resumed conversation (--resume, --continue, a terminal restored after a reboot) shows its cache before its first turn: cache warm ~41m (180k) or cache cold, next turn rebuilds 486k.
  • A dashboard. /g-line dashboard opens a local page with your usage windows, the sessions on this machine, and two weeks of turns, cost and cache rebuilds.

Optional, and off until you turn them on: guard rules for a low usage window, keep-warm for idle prompt caches, and Pulse headlines.

A schema comparison closes with "Baked for 43s · done 1:22 PM · cache cold · rebuilt 42k · API $0.31"; under the prompt, the hint line ends with "ctx 4% · 5h 1% · wk 80%!" and the coloured line reads "Opus 5.5 high · cache warm ~4m · 5h resets in 2h 47m · wk out ~Thu 19:00, resets Fri 16:00"

What you see

The receipt

ReceiptWhen
API $0.22 · cache read 49%An ordinary turn: its cost at API prices and the share of its input the cache served
+86k contextThe turn grew the context by at least 8k tokens, or by 2% of the window when that is more
cache cold · rebuilt 42kThe turn's first request came after the cache's lifetime and rewrote it
cache write 84kA request wrote at least 20k tokens to the cache, well beyond what the context grew
3 failed Bash callsTwo or more tool calls failed in the turn (named when they were all one tool)
compacted 182k → 31kThe context was compacted during the turn
API $1.42 · 4x recentAt least three times the median of your recent turns, and at least 20 cents more
answered by Sonnet 5.5A model other than the one asked for answered (Claude Code fell back)

A receipt records what happened. It says a cold cache was rebuilt and leaves the cause to you. When a background agent ran alongside the turn, the session's cost growth isn't the turn's alone, so the dollar figure is left out. A narrow terminal drops the supporting facts first.

The two lines under the prompt

Line 1 is the end of Claude Code's hint line, drawn dim:

SegmentExampleMeaning
contextctx 13%How full the context window is, from the last response
5h, week5h 1%, wk 79%!Your usage windows. ! means on pace to run out before the reset
spendspend 83%Behind a Claude gateway that sets a spend limit

Line 2 is g-line's own row, in colour:

SegmentExampleMeaning
modelOpus 5.5 highThe model and the effort of the last request (fast when fast mode is on)
cachecache ~59m, cache coldHow long the prompt cache stays warm: green, then amber in its last minutes. ~ because it's an estimate from when the last request ran and the cache's lifetime. After a compaction it shows the summary the next turn will write instead
timingwk full in ~1d 4h, back Fri 16:00How long until a window on pace to run out fills (a projection, so rounded) and when it comes back; otherwise when it resets
agents, compactionagents 2 running, compacts in ~3 turnsWhile subagents work; when a compaction is near
others2 others · 1 waitingOther g-line sessions on this machine, and how many are waiting on you for a permission answer. roster: false turns it off
guardguard: effort medium, kept warm 2× · $0.08Only with your guard rules: what they're doing now

When the terminal narrows, line 2 shortens first (Opus 5.5 to Opus, the effort kept), and what line 1 can't fit moves down rather than disappearing. A healthy window's reset time goes first; a warning keeps its projection the longest.

Line 1 and line 2 at 100 columns At 80 columns

Prefer one line? Set lines to 1: everything goes on the hint line, and Claude Code's standing hint (shift+tab to cycle) shortens to ⇧⇥ to make room. Already using another status line? Set lines to receipts: g-line then adds only the receipts, the spinner and the heads-ups.

The spinner

Sautéing… · 3 tools · +4.1k ctx · 5h 74% while a turn runs, and ⚠ 3× Edit failures on core.ts first once calls keep failing.

The spinner mid-turn: Sprouting… · 2 tools · +1.2k ctx · 5h 1%

The pane, settings and dashboard

/g-line opens a pane with every figure spelled out: limits with bars and reset times on your own clock (5-hour 62% used, resets 14:12 (in 2h 47m)), warnings, agents, the last turns' receipts, what fills the context, tools used and failed, the other sessions on this machine, and today's and this week's totals. Its top row flips common settings with one key (l layout, r receipt, p Pulse); s opens all settings, n the news reader and b the dashboard.

The /g-line pane

/g-line settings lists every setting with its value and where the value comes from (default, config.json, /config or your choice). Press a key and the setting changes at once, in every open session.

/g-line settings: rows grouped under Show, Heads-ups and Extras, such as "l: Layout two lines default" and "p: Pulse on • your choice"

/g-line dashboard writes a local page and opens it in your browser: usage windows, this machine's sessions, and two weeks of history. It loads nothing from the network. See the dashboard.

/g-line card shows a share card of the session, without your repository, branch, paths or account. /g-line off hides everything g-line draws until /g-line on.

Optional features

  • Guard. Rules you write for a low usage window: lower the effort, start new subagents on a cheaper model, or hold new prompts, by window, account, group and office hours, or by pace through the week. With no rules, g-line changes nothing. Everything it does is shown on line 2, in a toast and on the turn's closing line, and /g-line guard simulate tries your rules without spending anything.
  • Keep-warm. Re-reads an idle conversation's prompt cache before its hour runs out, so the next prompt doesn't pay to rebuild it. Each re-read is shown with its cost.
  • Pulse. AI news headlines on a dim row under the prompt, from one static file fetched at most every 45 minutes, with a reader at /g-line news.

Configure

/g-line settings changes every on/off and layout choice. To set them for every session or machine, write ~/.config/g-line/config.json; running sessions pick up an edit within 15 seconds. If you switch accounts with a tool of your own, account_command lets g-line see the switch and share usage readings between sessions. All settings are in Configuration.

{
  "lines": 2,
  "git": true,
  "notify": { "cache": true, "reset": true, "long_turn": true },
  "today_budget": 50
}

Why a mod

A statusLine command is a separate program: Claude Code runs it and prints its output in a status area under the prompt. A mod runs inside Claude Code and can draw on Claude Code's own lines. That is what lets g-line:

  • write a receipt on each turn's own closing line, where it stays in scrollback beside the turn;
  • show the burn and failures on the spinner while the turn runs;
  • put the gauges at the end of the existing hint line, so the footer grows by one row;
  • read each request's cache reads and writes, every tool call and its result, subagents and compactions from the engine as they happen, rather than from the transcript file;
  • offer a /g-line command that runs without a Claude turn, a pane with buttons, and native notifications.

How it compares

From each project's README on 2026-10-14. "Not documented" means not in its docs, not that it can't be done.

g-lineclaude-hudccstatuslineclaude-powerlineccusage
What it isClaude Code modPlugin that sets up a statusLine commandstatusLine commandstatusLine commandUsage-report CLI with a statusline command
Where it drawsThe hint line, one row under it, the spinner, each turn's closing lineIts status lines (two by default)Its status lines, configurableIts status lines, powerline styleIts status line, and separate reports
Receipt on each turn's own lineYesNot documentedNot documentedNot documentedNot documented
Model and effortYesYes (effort optional)Yes (widget)YesWhen Claude Code supplies it
Prompt-cache countdownYes, an estimateOptionalYes (widget)OptionalNot documented
Limits with paceProjected run-out timeUsage windows, pace coloursUsage and reset widgetsUsage with an even-spend pace markerBlock cost, time and burn rate
HistoryReceipts in scrollback; today, this week and a 14-day dashboardOptional cost ledgerSession and compaction widgetsToday and month budgetsDaily, monthly and session reports
Where activity comes fromEngine eventsStatus data; optional lines read the transcriptStatus data, transcript and usage API, by widgetStatus data and local transcripts, by featureLocal usage records
Pick it toSee which turn changed things, beside the workGet a configurable session overviewGet extensive widget customisationGet a styled layout with budgetsGet retrospective usage analysis

Privacy and what it runs

  • Reads: the figures Claude Code hands every mod (usage, turns, tool calls and whether they succeeded, subagents, compactions). It doesn't read the transcript file.
  • Keeps: per session per day, numbers only (cost at API prices, turns, tool calls, cold rebuilds, keep-warm re-reads, agents) in Claude Code's plugin store, deleted after 35 days; your choices made with /g-line; when you last opened the news reader; with Pulse on, the last feed and which headlines it showed today; and, with roster on (the default), each running session's heartbeat (state, context, cache, model, and the account_command line only if you set one), cleared when the session ends.
  • Runs: git status only with git: true or while the pane is open; your account_command and usage_command only if you set them; uname -s once per session, to know whether a browser can open; open (or xdg-open) when you ask to open a link or the dashboard.
  • Sends: nothing, unless Pulse is on (one GET of a static file) or you turn on claude_reads (the snapshot goes into your conversation). With keep-warm in your guard, Claude Code sends your conversation again, through its own client, to re-read the cache.
  • Changes: nothing, unless you write guard rules: then a lower effort, a cheaper model for new subagents, a held prompt, or with resume one prompt after a limit's reset, each as your rule says and each shown.
  • Writes: a one-line timestamp at ~/.cache/glanceline/live/<session id> so an older status line command can step aside; with export_state, a JSON file for other bars; and ~/.cache/g-line/dashboard.html when you ask for the dashboard.

Claude Code already notifies you when it waits for a permission answer or for your input, so g-line adds no "Claude is waiting" notifications of its own.

Upgrading from glanceline

glanceline is now g-line, at lifeofgurpreet/g-line (the old address redirects). Claude Code treats the new name as a new plugin, so an installed glanceline updates to a small stub that tells you, once per session, to switch:

/plugin uninstall glanceline
/plugin install g-line --marketplace lifeofgurpreet/g-line

Your ~/.config/glanceline/config.json keeps working. If you used the old Python status line (glanceline install), run glanceline uninstall once to put your previous statusLine back.

Contributing

Issues and pull requests are welcome; see CONTRIBUTING.md. AGENTS.md has the rules g-line stands on, a map of the code, and recipes for adding a figure or a receipt event.

claude --plugin-dir .        # a session with your working copy; saving reloads it
claude plugin validate .     # what the engine reads, the hooks and calls, what it would refuse
claude plugin test .         # the tests

The terminal screenshots are real captures (tmux capture-pane -e), drawn by scripts/ansi2png.py. The dashboard image is the real page generator run on sample data.

License

MIT

Source 1 files
hooks/register.ts 27 lines
1// glanceline is now g-line. This stub keeps a 0.3/0.4 install loading after the
2// rename, and says once per session how to switch. It draws nothing else and
3// makes no network request.
4import type { EngineInterface, Register } from 'claude-code'
5
6const SWITCH = 'glanceline is now g-line. To switch: /plugin uninstall glanceline, then /plugin install g-line --marketplace lifeofgurpreet/g-line'
7
8async function say($: EngineInterface): Promise<void> {
9  $.ui.toast(SWITCH, { timeoutMs: 20_000 })
10}
11
12export const register: Register = (on) => {
13  on('session.start', async ($, e, next) => {
14    await say($)
15    try {
16      await $.command.register({ name: 'glanceline', description: 'glanceline is now g-line: how to switch' })
17    } catch {
18      // the toast says it
19    }
20    return next(e)
21  })
22  on('command.run', { command: 'glanceline' }, async ($) => {
23    await say($)
24    return {}
25  })
26}
27