The cockpit
for Claude Code.
A redesigned chat UI and a live status line, in one plugin. It runs inside your own session.
/ghostframe-statusline installA ghost
in the frame.
A plugin that changes how Claude Code looks and feels in your terminal. Two parts, one window.
- A timeline every step, in order, with its timingevery step, with its timing
- B conversation your messages and the answers, nothing elsemessages and answers
- C pane timeline, files, sources, todo, agentsfive tabs of the work behind it
- D status line context, 5-hour and week, in two rowsthree budgets, two rows
- E ghost six cells; its eyes show the pressuresix cells; eyes show pressure
Watch one turn.
A scripted session on the real cell grid. The tabs respond.Cropped to the conversation. Swipe for the pane.
10:14:02 ◆ TURN 7 ────────────────────────────────────────────────────────────────────── │ │ ❯ the width tests fail on CI but pass locally, find out why and fix it │ 6s ∴ thought ctrl+o expand │ │ CI was on Bun 1.4.1, whose ICU splits a skin-tone modifier into its own │ grapheme. The tests and the code were right; the runner was old. │ │ What changed │ › .github/workflows/ci.yml installs Bun from mise.toml │ › hooks/runtime.ts fails fast when Bun is older than the pin │ │ YAML .github/workflows/ci.yml +1 −1 c copy │ 14 14 - uses: oven-sh/setup-bun@v2 │ 15 − with: { bun-version: latest } │ 15 + with: { bun-version-file: mise.toml } │ │ Runner Bun Width tests │ CI before 1.4.1 × 2 of 14 fail │ CI after 1.4.4 ✓ 14 pass │ 2m 44s ✓ DONE 23 steps · 1 fixed · 3 files · 2 sources · ↗ a1f3c2e
TIMELINE FILES 3 SOURCES 2 TODO 5/5 AGENTS 3 ━━━━━━━━ ─────── ───────── ──────── ──────── ✓ DONE TURN 7 10:14:02 → 10:16:46 Width tests fixed; CI now reads Bun from mise.toml 23 steps 1 fixed 3 agents 3 files 2m 44s 10:14 10:17 × Reproducing the failure ━━━ 2 of 14 └ width("e\u0301") · expected 1, received 2 ✓ Comparing Bun versions 1.4.1 · 1.4.4 ◇ Audit tests ━━━━━━ clean ◇ Audit CI setup ━━━━━━ no pin ◇ Audit dependencies ━━━━━ 1 high ✓ Pinning Bun in ci.yml +1 −1 ✓ Failing fast on old Bun +12 ✓ Running the width tests 14 pass ↗ Pushing the fix ━━ a1f3c2e
TIMELINE FILES 3 SOURCES 2 TODO 5/5 AGENTS 3 ──────── ━━━━━━━ ───────── ──────── ──────── 3 files changed +14 −1 turn 7 · against the start of the turn .github/workflows/ci.yml +1 −1 hooks/runtime.ts +12 ◇ tests/width.test.tsx +1 ◇ changed by an agent
TIMELINE FILES 3 SOURCES 2 TODO 5/5 AGENTS 3 ──────── ─────── ━━━━━━━━━ ──────── ──────── 2 pages read 2 cited cited pages first, in answer order ¹ bun.sh Bun v1.4.2 200 https://bun.sh/blog/bun-v1.4.2 ² github.com oven-sh/setup-bun · README 200 https://github.com/oven-sh/setup-bun
TIMELINE FILES 3 SOURCES 2 TODO 5/5 AGENTS 3 ──────── ─────── ───────── ━━━━━━━━ ──────── 5 of 5 done turn 7 ✓ Reproduce the width failure ✓ Compare Bun on CI and locally ✓ Find why CI runs Bun 1.4.1 ✓ Pin Bun in CI ✓ Rerun the width tests on CI
TIMELINE FILES 3 SOURCES 2 TODO 5/5 AGENTS 3 ──────── ─────── ───────── ──────── ━━━━━━━━ 3 agents 3 done launched together ◇ Audit tests 9 steps 1m 10s ✓ shell bun test hooks/width --rerun clean ◇ Audit CI setup 4 steps 58s ✓ fetch docs.github.com/…/setup-bun no pin ◇ Audit dependencies 6 steps 1m 02s ✓ shell npm audit --omit dev 1 high
TURN 7 · 10:14:02 → 10:16:46
the width tests fail on CI but pass locally, find out why and fix it
CI was on Bun 1.4.1, whose ICU splits a skin-tone modifier into its own grapheme. The tests and the code were right; the runner was old.
What changed
- .github/workflows/ci.yml installs Bun from mise.toml
- hooks/runtime.ts fails fast when Bun is older than the pin
.github/workflows/ci.yml · +1 −1
- uses: oven-sh/setup-bun@v2
− with: { bun-version: latest }
+ with: { bun-version-file: mise.toml }| Runner | Bun | Width tests |
|---|---|---|
| CI before | 1.4.1 | × 2 of 14 fail |
| CI after | 1.4.4 | ✓ 14 pass |
DONE · 23 steps · 1 fixed · 3 files · 2 sources · ↗ a1f3c2e
Cockpit,
piece by piece.
The turn timeline
- A turn header: clock time, numberturn header
- B thinking, collapsed
- C receipt
10:14:02 ◆ TURN 7 ─────────────────────────────────────────────────────────── │ ❯ the width tests fail on CI but pass locally, find out why and fix it │ 6s ∴ thought ctrl+o expand │ CI was on Bun 1.4.1. The tests and the code were right; the runner was old. 2m 44s ✓ DONE 23 steps · 1 fixed · 3 files · 2 sources · ↗ a1f3c2e
The docked pane
- A five tabs; this one is Files
- B totals for the turn
- C changed by an agent
TIMELINE FILES 3 SOURCES 2 TODO 5/5 AGENTS 3 ──────── ━━━━━━━ ───────── ──────── ──────── 3 files changed +14 −1 turn 7 · against the start of the turn .github/workflows/ci.yml +1 −1 hooks/runtime.ts +12 ◇ tests/width.test.tsx +1 ◇ changed by an agent
Receipts and failure cards
- A receipt, done
- B receipt, failed
- C what is still failing, and wherewhat is still failing
- D next step, in Claude's wordsnext step
2m 44s ✓ DONE 23 steps · 1 fixed · 3 files · 2 sources · ↗ a1f3c2e 3m 12s × FAILED 12 steps · 2 still failing · 1 file │ × 2 still failing windows-latest │ × tests/width.test.tsx:41 expected 1, received 2 │ × tests/width.test.tsx:58 expected 1, received 2 │ → Next: set LANG=C.UTF-8 in ci.yml, or skip these two on Windows.
Rewind
- A the turn you land on is labelled
10:42:19 ◆ TURN 7 · AFTER REWIND ──────────────────────────────────────────── │ ❯ make the width tests run on Windows too
Fallback
- A the whole turn as one node
- B failure row
- C live step, with its treelive step
2m 44s ◇ worked 23 steps · 3 agents · 1 fixed │ × Width tests on Windows 2 of 14 fail 1m 24s │ └ width("e\u0301") · expected 1, received 2 ┊ 1m 51s ● Retrying with LANG set 9 steps ├ ▸ shell bun test hooks/width running └ ▸ todo Writing up the options 3 of 4
Three budgets.
One glance.
Drag the handle. Tile, ghost and mascot change at the same two thresholds.
- under 60 calm. Teal meter, green eyes.
- 60 to 84 busy. Amber meter and tile.
- from 85 hot. The tile says what happens next.
edge and surface = status · white block = even pace
under 60% green eyes
60 to 84% amber eyes
from 85% red eyes
The terminal can only draw text.
So the ghost becomes text.
Install.
Add the plugin
/plugin marketplace add tashfiqul-islam/ghostframe#dist/plugin install ghostframe@ghostframeInstall the status line
/ghostframe-statusline install- shows the diff
- asks first
- backs up
- writes one key
Set the line height to 1.5
Windows Terminal
Settings › your profile › Appearance › Line height 1.5Profile › Appearance › Line height 1.5
stored as font.cellHeightVS Code
Settings › terminal.integrated.lineHeight
set it to 1.5Other
Set the terminal's line height, or cell height, to 1.5.
Drawn and checked in GeistMono Nerd Font 11.5.
What it needs
- Claude Code
- 2.1.329 to below 2.2.0 · dormant outside it2.1.329 to below 2.2.0
- Bun or Node 22.3 or newer
- on your PATH · status line only
- Font
- a Nerd Font for icons · or
Status line iconsoffa Nerd Font · orStatus line iconsoff - Colour
- 24-bit · falls back to 256 · honours
NO_COLOR24-bit · falls back to 256
Width, in columns
- under 90one plain lineone line
- 90 to 13990–139narrow
- 140 and up140 upthe full linefull
Undo it
/ghostframe-statusline uninstallrestores the entry you had before
after the copy, the meters draw in segment by segment
Where it runs.
Wherever the official Claude Code CLI runs. The marks say how far each has been checked.Wherever the official Claude Code CLI runs.
- Windows 11 · Windows TerminalTESTEDTested live. Fragments after a fast redraw: set
CLAUDE_CODE_ALT_SCREEN_FULL_REPAINT=1.checked live - macOSCI ONLYTests run in CI.tests in CI
- Linux · UbuntuCI ONLYTests run in CI.tests in CI
- VS Code and Cursor terminalsVS Code, CursorUNTESTEDUntested. The editor may take
ctrl+x(Cut) and other chords before the terminal sees them.no live check yet - JetBrains terminalsJetBrainsUNTESTEDUntested. Claude Code handles this terminal's scrolling itself.no live check yet
- Orca and other terminal-hosting IDEsOrca and similar IDEsUNTESTEDUntested. They run the real
claudebinary in their own terminal panes, so ghostframe loads as it does anywhere else.no live check yet - OpenCode, Codex and other agent harnessesOpenCode, Codex and othersDOES NOT RUNIt needs the official Claude Code CLI.needs the Claude Code CLI
How it works.
Two paths out of one session.
- claude codeyour session
- engine hookswhat the agent did
- storeone record per turn
- rendererstext on the cell gridtext on the grid
- timeline · paneCockpit
- claude codethe same session
- statusLine commandstatusLine cmdbundled, run by Bun or Node 22.3 or newerrun by Bun or Node 22.3 or newer
- status lineunder the prompt
checked against the code · hooks/ and statusline/checked against the code
Privacy.
ghostframe runs inside your own Claude Code session, makes no network requests, and never reads, stores or sends your credentials.
checked against the code · no network calls
ghostframe
draws · does not send
Questions.
Does it change my Claude Code settings?
The status line installer writes one key, statusLine, in your user settings. It shows the diff first, waits for you, and keeps a backup. Every other key, its order and the formatting stay as they were.The status line installer writes one key, statusLine, in your user settings. It shows the diff first, waits for you, and keeps a backup.
Why isn't the mascot in my terminal?
Claude Code keeps only colour codes and links from a status line and drops everything else, images included. So inside the terminal the ghost is drawn in half blocks.
How do I remove it?
Run /ghostframe-statusline uninstall. It puts back the status line entry you had before, or removes the entry if there was none. A personal script the old entry pointed at is never touched.
Do I need a Nerd Font?
Only for the branch, PR and cache icons. Without one, turn Status line icons off. The layout is identical.
How narrow can my terminal be?
The full status line needs 140 columns. From 90 to 139 it switches to a narrow layout, and below 90 it prints one plain line. Cockpit docks its pane from 144 columns and falls back to the timeline alone below that.
Does it work in OpenCode or Codex?
No. ghostframe runs only where the official Claude Code CLI runs.
Does it slow the prompt down?
A status line frame takes about 55 ms back to back and about 123 ms after an idle gap, measured on Windows 11. Most of the idle cost is the runtime starting; the renderer itself takes under 2 ms.