ClaudeCodeMod

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.

In your shell
claude plugin marketplace add ray-amjad/claude-code-mods
claude plugin install diagram-pane@claude-code-mods
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.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

diagram-pane: Claude adds a discount module on the left; on the right the pane has gone into the checkout.js box, its numbered steps drawn as boxes, with a change being typed into the field below
From the author's repo.

What it hooks into

  • session.startWhen a session starts
  • turn.completeWhen a turn ends
  • command.runWhen you run its slash command/diagram
  • tool.callAround a tool call, where it can hold one
  • ui.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
Repo
ray-amjad/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

Other mods in Review

show-your-workiamumeransariShows Claude's finished work in the terminal: screenshots, videos of it clicking through your app, and before-and-after QA recordings.review-paner3al1tymDocks the session's latest reply in a calm reading pane beside the conversation, following the live turn, with its plan, question, and tasks one key away.prismantisNahumLitvinRedraws Claude's replies in the terminal: colored tables, code, charts, flowcharts, and one quiet line per tool call.glassrashedInt32Redraws the terminal transcript as colored commands, diff cards, a tool tree, and a band of running subagents above the prompt.cc-split-diff-viewneteye-platformDraws Edit and Write diffs, and the files a Bash command updates, in two columns, removed lines left and added lines right, in Claude Code's own diff colors.mdviewxuanji86Opens a clicked Markdown path as a rendered pane beside the conversation, pictures included, and sends an edit when you type one in a block.mermaid-modngothanhlucDraws mermaid blocks in Claude's replies as Unicode diagrams in place, and leaves the stored message as Mermaid source.accountable-reviewwyeworksShows a review run on the status line, then publishes a review agenda for a pull request as a private Claude Artifact page.repowiserepowise-devDraws margin notes under edits, a change review under the answer, and a /lens pane of what an edit reaches.hal-grammar-checkvintaDraws grammar corrections above the prompt while you type, with explanations in your language: English by default, or Chinese, Japanese, or Korean.sc-modskylesnowschwartzDraws mermaid diagrams in replies as text, jump buttons above the prompt, and a copy button under each reply.glamour-darkTickloopDraws the model's text replies in glamour's default dark style.
All 145 in Review