ClaudeCodeMod

All shelves / Mods / Review

figures

By natsukium

figures is a Claude Code review mod by natsukium.

Draws diagrams and LaTeX math from Claude's replies, and images from tool results, as pictures in the transcript, in kitty or Ghostty.

Draws

Install

The marketplace name is figures.

In your shell
claude plugin marketplace add natsukium/claude-code-figures-plugin
claude plugin install figures@figures
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
0.1.0
License
Apache-2.0
Repo stars
9
Last change
2026-10-17

What it can reach

  • Draws in the session
  • Sees tool calls
  • Calls another program on this machine

Needs Claude Code 2.1.288 or later, with mods enabled, in a terminal Claude Code treats as kitty-graphics capable. That decision follows the terminal's XTVERSION reply: kitty 0.28.0 or later, or Ghostty. In any other terminal the reply gets alt text instead, such as [mermaid diagram 1]. Setting TERM or TERM_PROGRAM has no effect. The README says CLAUDE_CODE_FORCE_TERMINAL_IMAGES=1 is the override Claude Code reads, and that it also skips the tmux check. Inside tmux the pictures also need allow-passthrough on. A mermaid, dot, graphviz, d2, or svg block in a reply is rendered and drawn under the reply. The code stays visible above the picture. Display math, a math, latex, or tex block, is typeset with MathJax, which is bundled and runs inside Claude Code, so math needs no Node.js. Inline math stays text. A latex block that holds a whole document stays code. tool_images starts on. Read of a PNG, JPEG, GIF, WebP, or SVG, or a screenshot an MCP tool returns, is drawn under the tool's row. An SVG read only in part is left alone. In a collapsed tool group they are thumbnails, and ctrl+o draws them full size. A picture Claude attaches for another device is drawn under its attachment line, read from disk the first time the row is drawn. Overwriting the file later leaves that picture as it was. A picture the size caps would shrink below 60 percent of its natural size grows up to the terminal's height, and one still smaller says so, with /figures to enlarge. /figures opens a pane of the session's pictures, on the newest one drawn too small, or else the newest. p and n step through them. o opens the current one with open on macOS or xdg-open. Escape or your next prompt closes the pane. The plugin also ships a diagrams skill, which tells Claude which languages are drawn and how to write them so they render. Each PNG is cached under the temporary directory claude-figures, named by a hash of the source and the theme. Files older than seven days are removed when a session starts. theme starts at auto, background at transparent, and scale at 2. Above 1, scale needs resvg, or mmdr renders at 1x. renderers starts empty, which keeps the default order. Mermaid tries mmdr first, then mmdc if mmdr fails and mmdc is installed. mmdc runs mermaid.js in a headless browser on this machine. dot and d2 need their own programs and resvg. Tool images other than PNG need magick or sips, and sips is built into macOS. A block whose renderer is not installed is left as code, with no error. An error shows only when an installed renderer fails. Math is drawn light when the theme is dark, and dark otherwise.

The install name is figures. This page adds the author's name. The marketplace name is figures. The pictures drawn under the reply are why this page files it under review. Images from a tool result are drawn there too.

Demo

A reply with a flowchart and a formula drawn under it, the source still visible above each picture. The prompt is a sample.
From the author's repo.

What it hooks into

  • session.startWhen a session starts
  • command.runWhen you run its slash command
  • prompt.submitWhen you send a prompt
  • ui.renderDraws into the sessionPaneAssistantMessageToolResultToolUseToolGroup

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, 7 files. They load when you open them.

Facts

Author
natsukium
Category
Review
Marketplace
figures
Repo
natsukium/claude-code-figures-plugin
Version
0.1.0
License
Apache-2.0
Repo stars
9
Last change
2026-10-17
Language
TypeScript
Files
117

Other mods in Review

screen-guarddanyuchnDraws black bars over names, organisations, secrets, and contact details in the transcript while you share your screen.md-renderdeepskyblue86Redraws each finished assistant message as colored markdown: headings, bold, italic, code, lists, and quotes.readable-layoutGarvitNangruDraws your messages and Claude's answers in labeled boxes, short notes as quiet lines, and a rule after every turn.asd-ste100JAICHANGPARKAfter each answer, draws that answer as a Simplified Technical English page in a side pane. The same install includes the STE skill.glossary-browserchicioHolds a commandRefuses a Markdown edit that uses a glossary Avoid word, and draws that repo's terms in a band above the prompt.hide-diffsgixxy22Swaps a long diff for a one-line summary of the file and the lines changed, and folds each finished shell command to one line.mods-image-previewhahmjuntaeDraws thumbnails of the images you paste, above the prompt, in any terminal. A terminal without pictures uses colored quadrant blocks.dash-guardmutlumehmetHolds a commandRefuses a write that adds an em dash, an en dash, or a double hyphen in prose, and names the lines to rewrite.rich-terminalxiaolaiRedraws each Mermaid diagram in a reply as a drawing, and a status line under the prompt shows context, cost, and rate limits.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.
All 145 in Review