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.
claude plugin marketplace add natsukium/claude-code-figures-plugin claude plugin install figures@figures
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

What it hooks into
session.startWhen a session startscommand.runWhen you run its slash commandprompt.submitWhen you send a promptui.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
- Version
- 0.1.0
- License
- Apache-2.0
- Repo stars
- 9
- Last change
- 2026-10-17
- Language
- TypeScript
- Files
- 117