ClaudeCodeMod

All shelves / Mods / Review

rich-terminal

By xiaolai

rich-terminal is a Claude Code review mod by xiaolai.

Redraws each Mermaid diagram in a reply as a drawing, and a status line under the prompt shows context, cost, and rate limits.

Draws

Install

The marketplace name is xiaolai.

In your shell
claude plugin marketplace add xiaolai/claude-plugin-marketplace
claude plugin install rich-terminal@xiaolai
Open the repo

It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.

Version
1.0.0
License
MIT
Repo stars
6
Last change
2026-10-05

What it can reach

  • Draws in the session
  • Reads usage or context figures
  • Calls another program on this machine

Needs Claude Code 2.1.287 or later. Each Mermaid block in a reply, including one inside a quote or a list, is replaced on screen only. The stored message is unchanged, and ctrl+o shows the source. A left-to-right flowchart that is too wide is redrawn top to bottom, and if it still does not fit the source stays. Changing the width redraws. Terminal drawings cover flowcharts, sequence, state, class, ER, and xy charts. Pie, gantt, mindmap, timeline, git graph, and journey stay as source unless pictures are on. images defaults to off. Pictures need Ghostty or kitty, not inside tmux, and Chrome, Chromium, Edge, or Brave. imageTheme defaults to dark. browser defaults to empty, which finds one. Headless Chrome draws each picture once, and the text drawing shows until it is ready. Pages are offline and block every network request. Pages and pictures stay in ~/.claude/plugins/data/rich-terminal/. /rich open uses open on macOS and xdg-open on Linux. The status line stays unwired until /rich status setup copies the scripts and points statusLine at them. It reads the status JSON Claude Code already holds: folder and git, model and effort, context with Token Weather, time and cost, and the account and rate limits. jq parses that JSON. bash runs the scripts. The account segment and Token Weather are on by default, and the line is one row. The account segment reads the email's local part from ~/.claude.json, cached for 180 seconds. Token Weather runs from clear under 25 percent, through cloudy, showers, and storm, to compact soon at 90 percent.

The plugin is the repository. The install adds xiaolai/claude-plugin-marketplace, a separate repository. The marketplace name is xiaolai. The marketplace also holds cc-suite, tdd-guardian, and other mods. This one installs on its own. The redrawn reply is why this page files it under review. mermaid-mod draws mermaid blocks in Claude's replies as Unicode diagrams in place, and leaves the stored message as Mermaid source. prismantis redraws Claude's replies in the terminal: colored tables, code, charts, flowcharts, and one quiet line per tool call. This one redraws each Mermaid diagram in a reply, and the status line reads context, cost, and rate limits from the login Claude Code already holds.

Demo

A rendered sample. The window is recreated. It opens empty, then a prompt asks how a reply with a diagram reaches the screen while the reply streams, then a box-drawing flowchart from Reply with Mermaid through Plugin on to Drawn in place or Raw source, then the same flowchart as a picture, with the stored message unchanged.
From the author's repo.

What it hooks into

  • session.startWhen a session starts
  • turn.startWhen Claude starts a turn
  • turn.completeWhen a turn ends
  • ui.renderDraws into the sessionAssistantMessage
  • command.runWhen you run its slash command

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Files

The author's README and source, 6 files. They load when you open them.

Facts

Author
xiaolai
Category
Review
Marketplace
xiaolai
Repo
xiaolai/claude-rich-terminal
Version
1.0.0
License
MIT
Repo stars
6
Last change
2026-10-05
Language
TypeScript
Files
114

Other mods in Review

learning-gate2SteaksHolds a commandRefuses a code edit while a learning-guardrails checkpoint is open, and pins that question above the prompt.glowupNovusEdgeDraws a side pane of changed files with their diffs, subagents, and context use, restyles the transcript in the pack you pick, and adds a pixel pet.circuit-viewerpunkfabDraws a routed KiCad board in a pane, with blocking DRC markers for open nets and shorts, and runs the layout gates.compostJoshuaOliphantFor compost, a skill workflow from spec to review, draws compost:deepen's design candidates as cards you can explore here or in a new session.cav-reviewrock3rFor cav, which builds motion graphics in Cavalry from a terminal, shows open review notes above the prompt and can start a turn when the reviewer sends notes.textfoldchenxiachanFolds each reply to one of five levels, from every word to the answer in one sentence, picked with a key or from the row above the prompt.quality-gateEigenwiseAfter each turn with edits, measures the complexity of the functions Claude changed, and draws it above the prompt with the cost and test status.image-previewmidudevOpens a pasted [Image #N] by the pointer when you hover it, in a small window or drawn in the terminal, and a click opens the system's viewer.time-machineDiegoMartySnapshots the working tree with git at each turn that changes files, Bash included, and /timeline opens a pane to move the files to any state and back.image-peekkaranb192Shows a pasted image while the text cursor sits on its [Image #N] marker, in a large pane on a wide window or above the prompt, on macOS in Ghostty.quiz-afterDannyMac180When Claude finishes a task that changed something, draws a quiz of two or three questions about the change above the prompt, each with a button for the answer.tool-cardsbradtraversyReplaces each tool-use row with a card: the tool's icon, an action title, its state, and the time, with the output folded behind Details until a call fails.
All 145 in Review