Mermaid diagrams drawn inside Claude Code replies, instead of raw source, and a truecolor status line under the prompt with a Token Weather forecast of the context window.
The diagram in the animation is the plugin's own output: its text drawing, then its picture in Ghostty or kitty. The window around it is recreated. The gallery shows one diagram of every supported type.
What it does
Draws diagrams in place. Each Mermaid block in a reply, including one inside a quote or list, is replaced by a drawing on screen only. The stored message is unchanged, and ctrl+o shows the source.
Fits the terminal. A left-to-right flowchart too wide for the window is redrawn top-to-bottom. If it still does not fit, the source is shown. Changing the terminal's width redraws.
Optional pictures. In Ghostty or kitty, diagrams can be drawn as real images instead (see Settings).
Full view in the browser./rich open opens a diagram as a zoomable page that works offline.
A status line under the prompt. Folder and git state, model and effort, context with Token Weather, time and cost, account and rate limits, restyled live with /rich status (see Status line).
Terminal drawings cover flowcharts, sequence, state, class, ER and xy charts. Other types (pie, gantt, mindmap, timeline, gitGraph, journey) stay as source, unless pictures are on.
Gallery
One diagram of every supported type, in a reply in a terminal 120 columns wide. Each diagram is the plugin's own output; only the window around it is recreated. The first six types are drawn as text in any terminal and as pictures in Ghostty and kitty; the rest are pictures only. Charts marked "example data" or "illustrative" show made-up numbers.
Flowchart (text and picture)
Text drawing. Too wide left to right for the terminal, so the plugin redrew it top to bottom.
Picture.
Source:
flowchart LR
subgraph reply [Assistant reply]
M[Markdown text]
end
M --> F{Mermaid fence?}
F -->|no| N[Draw as usual]
F -->|yes| W{Fits the width?}
W -->|LR fits| T[Text drawing]
W -->|only TD fits| R[Redraw top to bottom] --> T
W -->|neither| S[Keep the source]
T --> P{Pictures on?}
P -->|Ghostty or kitty| C[(Headless Chrome)]
C --> I([PNG in place])
P -->|other terminal| K([Text stays])
Sequence diagram (text and picture)
Text drawing.
Picture.
Source:
sequenceDiagram
actor U as User
participant CC as Claude Code
participant RT as rich-terminal
participant HC as Headless Chrome
U->>CC: Prompt
activate CC
loop each streamed chunk
CC->>RT: ui.render(text)
RT-->>CC: Text drawing or source
end
CC-->>U: Reply complete
deactivate CC
alt images on
RT->>HC: Image page
HC-->>RT: Screenshot PNG
RT-->>CC: Picture
else images off
Note over RT: Text drawing stays
end
U->>CC: /rich open 2
CC->>RT: Command
RT-->>U: Browser view