# ghostframe

> A Claude Code plugin: a turn timeline, a docked pane and a status line.

The cockpit for Claude Code. A redesigned chat UI and a live status line, in one plugin. It runs inside your own session.

Version 1.0.0, MIT licence. Source: https://github.com/tashfiqul-islam/ghostframe

## A ghost in the frame.

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

- **timeline**: every step, in order, with its timing
- **conversation**: your messages and the answers, nothing else
- **pane**: timeline, files, sources, todo, agents
- **status line**: context, 5-hour and week, in two rows
- **ghost**: six cells; its eyes show the pressure

## Cockpit, piece by piece.

- **The turn timeline**: turn header: clock time, number; thinking, collapsed; receipt
- **The docked pane**: five tabs; this one is Files; totals for the turn; changed by an agent
- **Receipts and failure cards**: receipt, done; receipt, failed; what is still failing, and where; next step, in Claude's words
- **Rewind**: the turn you land on is labelled
- **Fallback**: the whole turn as one node; failure row; live step, with its tree

## Three budgets. One glance.

- under 60%: calm. Teal meter, green eyes.
- 60 to 84%: busy. Amber meter and tile.
- from 85%: hot. The tile says what happens next.

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

- **vector**: The vector mascot, viewBox 1000 × 1241
- **text**: The mascot drawn in mono glyphs, 140 × 87 cells
- **ghost**: Pixel ghost, 6 × 2 cells · 6 × 4 pixels

## Install.

1. Add the plugin:
   - `/plugin marketplace add tashfiqul-islam/ghostframe#dist`
   - `/plugin install ghostframe@ghostframe`
2. Install the status line: `/ghostframe-statusline install` (shows the diff, asks first, backs up, writes one key)
3. Set the line height to 1.5:
   - Windows Terminal: Settings › your profile › Appearance › Line height 1.5; stored as font.cellHeight
   - VS Code: Settings › terminal.integrated.lineHeight; set it to 1.5
   - Other: 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 it
- The status line: Bun or Node 22.3 or newer, on your PATH · status line only
- Font: a Nerd Font for icons · or Status line icons off
- Colour: 24-bit · falls back to 256 · honours NO_COLOR

Width, in columns: under 90, one plain line; 90 to 139, narrow; 140 and up, the full line.

Undo it: `/ghostframe-statusline uninstall` restores the entry you had before.

The README's other commands: `/plugin marketplace remove ghostframe`.

## Where it runs.

Wherever the official Claude Code CLI runs. The marks say how far each has been checked.

| Where | Mark | Note |
| --- | --- | --- |
| Windows 11 · Windows Terminal | TESTED | Tested live. Fragments after a fast redraw: set `CLAUDE_CODE_ALT_SCREEN_FULL_REPAINT=1`. |
| macOS | CI ONLY | Tests run in CI. |
| Linux · Ubuntu | CI ONLY | Tests run in CI. |
| VS Code and Cursor terminals | UNTESTED | Untested. The editor may take `ctrl+x` (Cut) and other chords before the terminal sees them. |
| JetBrains terminals | UNTESTED | Untested. Claude Code handles this terminal's scrolling itself. |
| Orca and other terminal-hosting IDEs | UNTESTED | Untested. They run the real `claude` binary in their own terminal panes, so ghostframe loads as it does anywhere else. |
| OpenCode, Codex and other agent harnesses | DOES NOT RUN | It needs the official Claude Code CLI. |

## How it works.

Two paths out of one session.

1. claude code (your session) → engine hooks (what the agent did) → store (one record per turn) → renderers (text on the cell grid) → timeline · pane (Cockpit)
2. claude code (the same session) → statusLine command (bundled, run by Bun or Node 22.3 or newer) → status line (under the prompt)

## Privacy.

ghostframe runs inside your own Claude Code session, makes no network requests, and never reads, stores or sends your credentials.

## 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.

### 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.
