All shelves / Mods / Review
diagram-pane
By ray-amjad
diagram-pane is a Claude Code review mod by ray-amjad.
Pins every diagram Claude draws in a side pane, keeps a live map of the work, and lets you open boxes and change them.
Draws
Install
The marketplace name is claude-code-mods.
claude plugin marketplace add ray-amjad/claude-code-mods claude plugin install diagram-pane@claude-code-mods
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.2.6
- License
- MIT
- Repo stars
- 94
- Last change
- 2026-10-17
What it can reach
- Draws in the session
The pane opens on its own in a terminal 144 columns or wider, and /diagram opens it at any width; with fullscreen rendering it docks beside the transcript, and in the classic renderer it sits above the prompt. When a turn ends, any mermaid code block or ASCII box diagram in Claude's replies is pinned, newest first, and mermaid flowcharts are redrawn as boxes and arrows that fit a 60-column pane; other chart types are pinned as raw code. Every 3 turns, the everyTurns setting, a Haiku call asks whether the work changed shape, and only on yes does a fork of the session, which cannot call tools, return a small graph of the files, components, and steps, with the node Claude is on marked. Press a box's number to open its detail, b to go back, and c to type a change that a fork redraws; Claude reads and edits the pane with two tools, diagram_get and diagram_set. /diagram runs the check now, /diagram force draws the map from scratch, dropping edits, and /diagram open gives the pane the keyboard. It does nothing in -p or SDK sessions unless DIAGRAM_PANE_SYNC or DIAGRAM_PANE_DUMP is set.
The marketplace name is claude-code-mods, the same string hamzafer, arasovic, and karanb192 use. Add ray-amjad/claude-code-mods. The marketplace also holds decision-tree, secret-box, prompt-bouncer, and other mods. This one installs on its own. Reading Claude's diagrams in the terminal is why this page files it under review. show-me, by arasovic, draws each mermaid diagram in an answer as a picture in a pane once the turn ends. mermaid-mod, by ngothanhluc, draws mermaid blocks in Claude's replies as Unicode diagrams in place. This one also keeps a map of the work and lets you go into its boxes, and Claude sees the pane only through those two tools. The map is the model's own summary of the work, and every chart is drawn top to bottom, even graph LR, because a narrow pane has no room sideways. The map, the edited pins, and the open view are saved per session in the plugin's store, so they survive a hot reload or --resume, and /clear starts the pane fresh.
Demo

What it hooks into
session.startWhen a session startsturn.completeWhen a turn endscommand.runWhen you run its slash command/diagramtool.callAround a tool call, where it can hold oneui.renderDraws into the sessionPane
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Slash commands 1
/diagramRedraw the live work map in the diagram pane
Files
The author's README and source, 6 files. They load when you open them.
Facts
- Author
- ray-amjad
- Category
- Review
- Marketplace
- claude-code-mods
- Folder
- plugins/diagram-pane
- Version
- 0.2.6
- License
- MIT
- Repo stars
- 94
- Last change
- 2026-10-17
- Language
- TypeScript
- Files
- 18