Render tables and mermaid diagrams in Claude Code

·

source at e349856

·

MIT license

Redraws Claude Code replies in color: boxed tables, highlighted code, mermaid diagrams and charts drawn as text art, with copy buttons on each block.

8 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 (2)
  • ▣ png runs osascript on macOS or powershell.exe on Windows; ⧉ html on Linux needs CopyQ
  • LaTeX math needs RaTeX's ratex-render and kitty or Ghostty; it is off until latex is true
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
Restyles the replies in the transcript
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. Takes over how replies, tool rows and slash command output are drawn
  2. Draws mermaid blocks as flowcharts, sequence diagrams and bar, line or pie charts
  3. Adds copy buttons such as ⧉ md, ⧉ art and ▣ png to tables and diagrams
  4. /prismantis setup picks a theme and styles; /prismantis theme nord switches

Common questions

Can Claude Code render mermaid diagrams in the terminal?

With this mod, mermaid blocks draw as colored text art: flowcharts, sequence, state, class and ER diagrams, and bar, line and pie charts. Diagrams too wide for the window, or over 80 lines, stay as code.

How do I change Claude Code's color theme for replies?

With this mod, /prismantis theme <name> switches between 16 palettes such as dracula, nord and catppuccin-latte, plus mono. /prismantis setup walks through the theme and styles with drawn samples.

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

Deck in Claude Desktop

A cockpit for Claude Code: plan bars and subagent strips, context, usage limits with reset countdowns and burn rates, spend, the model route and a pet. Six bar styles, three collapsed looks. CLI and Desktop.

Context Bar in Claude Desktop

Your context window as a stacked bar above the prompt, a color per category, with token counts and the compaction point. /context-bar shows or hides it.

Flightdeck in Claude Desktop

Flightdeck: a live agent dashboard for Claude Code. Main model vitals, an on-call architect, every permission check, subagent cards and swimlanes, a turn receipt and a session log, all from real session events

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.

🤖 Opus 4.8 ⚡high 💡 │ 🎨 default │ ✅ git clean │ no env 📂 /home/user/app 🌿(main) │ 💰 0.41$ │ ⏰ 10m 🧠 Context █████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 22% used (44k/200k) 🚀 5H Limit ██████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 26% (Resets in 2h6m) 🌟 7D Limit ███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 7% (Resets Oct 20 at 3pm)

Five lines in Catppuccin colors: model, git state with ahead and behind counts, path and branch with session cost and duration, then wide 40-block gradient bars for context and the five-hour and seven-day limits.

 Opus 4.8 │  app │  main high  ██░░░░░░░░░░ 22% │  $0.41 │  10m 12s │  5h:26%

Two lines in the Dracula palette: model, folder, git branch with staged and modified counts, and effort on top; a context bar, cost, session time and five-hour usage below. Needs a Nerd Font, no network calls. Caches git status in /tmp/statusline-git-<session id>, one small file per session that it never deletes.