diagram-pane

Reviewed at commit 181ec6e New version, not yet reviewed

A side pane that pins every diagram Claude draws and keeps a live map of the work

Made by
Ray Amjad
What we checked

Opens a side pane that pins every mermaid or box diagram Claude writes and draws a live map of the work, which you can open box by box or change by typing. It reads the session's messages and uses extra Claude requests on your own account (Haiku and session forks) for the map. It adds two tools so Claude can read and edit the pane, and stores maps for the last 20 sessions.

Review details

Static review of the source at the pinned commit; not run. Delta review of the changes since 465d8d4; the rest carries over from the review at that commit. Registers session.start (opens the pane, registers /diagram and the tools diagram_get and diagram_set through $.tool.register), turn.complete (pins new diagrams, every N turns runs a Haiku yes/no gate through $.model.complete and then a $.model.fork that returns a JSON graph), command.run for /diagram, tool.call for its own two tools only, and ui.render for the pane. The gate and forks send a digest of recent prompts (160 characters each) and tool names with file paths or commands (100 characters each) to the model on the user's account. Uses $.session.messages, $.session.id, $.store.get/set (per-session maps, 20 newest) and $.env.get for DIAGRAM_PANE_EVERY, DIAGRAM_PANE_SYNC and DIAGRAM_PANE_DUMP; only when DIAGRAM_PANE_DUMP is set (a test aid) it writes the pane text to that path with $.fs.write. This version (0.2.6) adds a headless guard: at session.start it records whether the session is non-interactive (-p / SDK) and then registers nothing and does nothing on turn.complete, unless DIAGRAM_PANE_SYNC or DIAGRAM_PANE_DUMP is set; interactive behaviour is unchanged. No network calls, no processes, no eval. No npm dependencies.

What it uses
  • Reads your prompts: no
  • Sees tool calls: yes
  • Blocks or changes tool calls: no
  • Reads or writes files: no
  • Runs programs on your machine: no
  • Calls the model (uses tokens): yes
  • Sends data over the network: no
  • Stores data: yes
  • Shows something on screen: yes
Hooked events
Screenshot of diagram-pane
Made this mod? Add a badge to your README

modsforClaude badge for diagram-pane

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/diagram-pane.svg)](https://modsforclaude.com/mods/diagram-pane/)

← All mods