Prismantis

Render mermaid diagrams and tables in Claude Code

·

source at e349856

·

MIT license

Redraws Claude Code replies in color: tables, highlighted code, mermaid diagrams and charts, and one-line tool rows, with copy buttons. 16 palettes plus mono.

10 installs

What this mod can do

  • Reviewed at commit e349856
  • Runs programs
  • Reads environment variables
  • Changes your settings in /config
  • Sees each prompt you send and can change or drop it
  • Sees each tool call before it runs and can block or change it
  • Also uses prismantis.markdown, which this page doesn't describe yet
6 more things it can do
  • Reads files
  • Reads the conversation
  • Copies to your clipboard
  • Adds the /prismantis command
  • Adds its own methods for other mods to call
  • Runs on a timer
Good to know (3)
  • Adds a short model-only note to every prompt nudging Claude toward diagrams and charts, which costs tokens
  • Can change or drop prompts, change /config settings, block or change tool calls and read environment variables
  • LaTeX math needs RaTeX's ratex-render on your PATH and latex set to true, and draws in kitty and Ghostty
Are mods safe?

Preview

Terminal

[✓] Tables, diagrams and charts drawn in the terminal [✓] Copy tables as Markdown, art or HTML (macOS/Linux), and tables, diagrams and charts as a PNG image (macOS/Windows) [ ] Pick a taskStyle in /config: checks, ticks, box or progress [ ] Set listMarker to dash so a list you select with the mouse pastes as markdown [ ⧉ source ] [ ⧉ art ] [ ⧉ source ] [ ⧉ art ] ┌───────┐ ┌───────┐ ┌──────┐ ┌────────┐ Color options per group │ Reply ├──►│ Parse ├──►│ Draw ├──►│ Screen │ └───────┘ └───────┘ └──────┘ └────────┘ 8┤···7·························· 7┤·▄▄▄▄················6········ 6┤·████··············▄▄▄▄······· 5┤·████··············████······· 4┤·████····3·········████······· 3┤·████··▄▄▄▄····2···████····2·· 2┤·████··████··▄▄▄▄··████··▄▄▄▄· 1┤·████··████··████··████··████· 0┼─▀▀▀▀──▀▀▀▀──▀▀▀▀──▀▀▀▀──▀▀▀▀─ text head num code diag ╭──────────────────────────────────────────────────────────────────────────────────────╮ [ ⧉ copy ] │ Caution │ │ Claude Code refuses trees over 20000 nodes. A code block past about 500 highlighted │ │ lines falls back to plain text. │ ╰──────────────────────────────────────────────────────────────────────────────────────╯

Claude Desktop

Draws nothing in Claude Desktop.

What it does

In the author's words

Colorful, themeable rendering for Claude Code replies: tables, headings, code, numbers, paths and links.

What you see
Restyled replies, tool rows and a setup pane
Works in
Terminal
Slash commands
/prismantis
Uses your tokens
No
Changes files
Only through programs it runs
Network access
Only through programs it runs
Reviewed commit
e349856
Preview recorded with
Claude Code 2.1.309

How it works

  1. Draws each reply as it arrives, replacing Claude Code's own renderer
  2. Turns mermaid blocks into colored flowcharts, sequence diagrams and bar or line charts
  3. Collapses each tool call to a row like Ran gh pr view 12 with a status dot
  4. /prismantis setup picks a theme and styles in a pane with live samples

Common questions

How do I see mermaid diagrams drawn in Claude Code instead of the source?

This mod draws mermaid blocks as colored text art: flowcharts, sequence, state, class and ER diagrams, and xychart-beta bar and line charts sized to the terminal. Diagrams wider than the window or over 80 lines stay as code.

How do I change the colors of Claude Code replies?

Run /prismantis theme <name>, such as /prismantis theme nord. There are 11 dark palettes (Catppuccin Mocha by default), 5 light ones and mono, which uses bold and dim. /prismantis lists them all.

How do I copy a table from a Claude Code reply?

Tables get ⧉ md (the Markdown), ⧉ art (a boxed text table) and, in a local macOS terminal or a Linux session with CopyQ, ⧉ html. ▣ png copies an image on macOS and Windows. Without a mouse, /prismantis copy copies the last reply.

How do I turn it off and get the normal renderer back?

The README says turning the plugin off in /plugin brings Claude Code's own renderer back. To remove it, run claude plugin uninstall prismantis@prismantis.

Badge for your README

Own this listing? Add it to your README. The badge shows the install count as it grows.

Reviewed on statuslin.es
[![Reviewed on statuslin.es](https://statuslin.es/badge/mods/prismantis.svg)](https://statuslin.es/mods/prismantis?utm_source=readme-badge)

Or show the preview card:

Preview on statuslin.es
[![Preview on statuslin.es](https://statuslin.es/og/mods/prismantis.png)](https://statuslin.es/mods/prismantis?utm_source=readme-badge)

More like this

Opus 4.8 │ main │ app │ ▓▓░░░░░░░░ 44k/200k │ $0.41

Catppuccin Frappé-themed status line with model, git branch and dirty flag, folder, a block context bar, and session cost.

app  main  Opus 4.8 ━━━━━━━━━━ 22%  128  34

A Powerline-style status line with nerd-font separators and a Dracula palette: colored directory, git branch, a per-model icon, and a faded context progress bar with an arrow tail.

Model: Opus 4.8 | Thinking: high | Context: [▰▰▱▱▱▱▱▱▱▱] 45k/200k (22%) | cwd: ~/app | ⎇ main | (+0,-0) Cost: $0.41 | Block: 2hr 6m | Weekly: 7.0% | Session: 10m | In: 916.7 t/s | Out: 29.2 t/s | Cached: 2k | Session: [▰▱▱▱▱] 26.0% Mem: 0.8G/1.0G | (*゚∀゚*) | Session ID: b8e1c0d2-4a6f-4e2a-9c1b-3f5d7a9e2c10

Three lines in One Dark: model, thinking effort and a context bar up top; cost, quota, session clock and token throughput in the middle; weather, free memory and a rotating kaomoji below.

🤖 Opus 4.8 ⚡high 💡 │ 🎨 default │ 📂 ~/app 🌿(main)✅ 🧠 Context ██░░░░░░░░ 22% │ 5H ███░░░░░░░ 26% (2h6m) │ 7D █░░░░░░░░░ 7% (Tue)

Two lines in Catppuccin colors: model with effort, output style, path, branch and a git clean or dirty mark, then gradient bars for context and the five-hour and seven-day limits with reset times.