diagram

diagram is a Claude Code mod by korenka that adds a Diagram button that draws the flow or architecture from Claude's latest response in its own pane tab, saved as SVG and draw.io.

Updated 2026-10-13

What is diagram?

diagram is a Claude Code mod by korenka that adds a Diagram button that draws the flow or architecture from Claude's latest response in its own pane tab, saved as SVG and draw.io. It is listed under Interface and has no public popularity data yet.

TypeClaude code mod
Authorkorenka
Repositorykorenka/claude-harness
Popularityno public popularity data yet
CategoryInterface
SecurityHigh risk (56/100)
Rank#3,730 of 5,272 Claude Code mods; #1,551 in Interface
LicenseMIT
Last commit2026-10-13
Hooks5 events
Seesonly the events it hooks
Draws onAbovePrompt, Pane

Is diagram safe to install?

diagram scores 56/100 on the MCPMods security check: High risk. Things to review: starts processes outside the sandbox; writes files or config; reads environment variables. It passed 3 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts processes outside the sandboxReview
Writes files or configReview
Reads environment variablesReview
Only sees the events it hooksPass
Drives Claude (model calls, prompts)Note
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.now
$.command.register
$.env.getreads env vars
$.fs.writewrites files
$.model.completedrives Claude
$.model.forkdrives Claude
$.process.runruns processes
$.session.cwd
$.session.messagesreads the transcript
$.ui.copydraws interface
$.ui.invalidatedraws interface
$.ui.logdraws interface
$.ui.opendraws interface
$.ui.resolvedraws interface

How do I install diagram?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/korenka/claude-harness
    claude plugin validate ./claude-harness/mods/diagram
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    git clone https://github.com/korenka/claude-harness && claude --plugin-dir ./claude-harness/mods/diagram

Or ask Claude to set it up

Paste this into Claude Code and it installs diagram for you:

Install the "diagram" Claude Code mod from https://github.com/korenka/claude-harness/tree/main/mods/diagram. Run claude plugin validate on it first and show me what it can access before you enable it.

More from korenka/claude-harness

This repository has 6 Claude Code mods on MCPMods.

  • agent-dock: Agents side panel with run, pause, stop and open-in-tab controls, plus a context window bar with a Compact button (Low risk)
  • blind-spots: Adds a Blind Spots button above the prompt that asks Claude to list the engineering blind spots in the current plan or d (Low risk)
  • help-offers: Turns the 'How I can help' list at the end of an answer into buttons that start a subagent for each offer (Low risk)
  • rephrase: Adds a Rephrase button that rewrites the draft in the prompt box with a small model, so the LLM gets a clearer, structur (High risk)
  • tldr: Adds a TLDR button that summarizes Claude's latest response in a side pane (Low risk)