esc closes · focus stays insidev1.0.0

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 install
sample session
Opus 5.5medium
ghostframemain ●
+9.3k −524cache 52m
under 90 cols, one plain line
Opus 5.5 · main ● · ctx 41% · 5h 34% · wk 8%
file 01 · anatomy · 5 partsrows 56 to 100

A ghost
in the frame.

A plugin that changes how Claude Code looks and feels in your terminal. Two parts, one window.

144 colspane · 72 colspane · 72
drawn to scale · 1 col = 5 px · 1 row = 9 pxstatus line · 2 rows
  1. A timeline every step, in order, with its timingevery step, with its timing
  2. B conversation your messages and the answers, nothing elsemessages and answers
  3. C pane timeline, files, sources, todo, agentsfive tabs of the work behind it
  4. D status line context, 5-hour and week, in two rowsthree budgets, two rows
  5. E ghost six cells; its eyes show the pressuresix cells; eyes show pressure
file 02 · live session · scriptedrows 100 to 166

Watch one turn.

A scripted session on the real cell grid. The tabs respond.Cropped to the conversation. Swipe for the pane.

160 cols · 41 rows
 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
Opus 5.5medium
ghostframemain ●
+9.3k −524cache 52m
Opus 5.5 · main ● · ctx 47% · 5h 36% · wk 8%
file 03 · cockpit · 5 partsrows 166 to 265

Cockpit,
piece by piece.

  1. The turn timeline

    1. A turn header: clock time, numberturn header
    2. B thinking, collapsed
    3. 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
  2. The docked pane

    1. A five tabs; this one is Files
    2. B totals for the turn
    3. 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
  3. Receipts and failure cards

    1. A receipt, done
    2. B receipt, failed
    3. C what is still failing, and wherewhat is still failing
    4. 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.         
  4. Rewind

    1. A the turn you land on is labelled
     10:42:19 ◆  TURN 7 · AFTER REWIND  ────────────────────────────────────────────
              │    ❯ make the width tests run on Windows too  
  5. Fallback

    1. A the whole turn as one node
    2. B failure row
    3. 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
file 04 · status line · 2 rowsrows 265 to 337

Three budgets.
One glance.

Drag the handle. Tile, ghost and mascot change at the same two thresholds.

72%

  • 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 same line under pressure
Opus 5.5medium
ghostframemain ●
PR #23changes requested
Opus 5.5 · main ● · ctx 88% · 5h 91% · wk 76%
file 05 · mascot to ghost · 3 stagesfile 05 · mascot to ghost · 3rows 338 to 397

The terminal can only draw text.
So the ghost becomes text.

The vector mascot
vectorviewBox 1000 × 12411000 × 1241
text140 × 87 cells
ghost6 × 2 cells · 6 × 4 pixels6 × 2 cells
Opus 5.5medium
ghostframemain ●
+9.3k −524cache 52m
Opus 5.5 · main ● · ctx 41% · 5h 34% · wk 8%
file 06 · install · 3 stepsrows 397 to 462

Install.

  1. Add the plugin

    /plugin marketplace add tashfiqul-islam/ghostframe#dist
    /plugin install ghostframe@ghostframe
  2. Install the status line

    /ghostframe-statusline install
    1. shows the diff
    2. asks first
    3. backs up
    4. writes one key
  3. 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.cellHeight

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 icons offa Nerd Font · or Status line icons off
Colour
24-bit · falls back to 256 · honours NO_COLOR24-bit · falls back to 256

Width, in columns

  1. under 90one plain lineone line
  2. 90 to 13990–139narrow
  3. 140 and up140 upthe full linefull

Undo it

/ghostframe-statusline uninstall

restores the entry you had before

after the copy, the meters draw in segment by segment

Opus 5.5medium
ghostframemain ●
+9.3k −524cache 52m
Opus 5.5 · main ● · ctx 41% · 5h 34% · wk 8%
Copies the command
file 07 · compatibility · 7 environmentsfile 07 · compatibility · 7rows 462 to 508

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 claude binary 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
file 08 · architecture · 2 pathsrows 508 to 539

How it works.

Two paths out of one session.

  1. claude codeyour session
  2. engine hookswhat the agent did
  3. storeone record per turn
  4. rendererstext on the cell gridtext on the grid
  5. timeline · paneCockpit
  1. claude codethe same session
  2. statusLine commandstatusLine cmdbundled, run by Bun or Node 22.3 or newerrun by Bun or Node 22.3 or newer
  3. status lineunder the prompt

checked against the code · hooks/ and statusline/checked against the code

file 09 · privacy · 1 statementrows 539 to 567

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

your machine
claude code session

ghostframe

draws · does not send

file 10 · faq · 7 questionsrows 567 to 623

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.