graphmod
Renders Graphviz DOT in replies as real PNG/SVG pictures with an interactive view.
Illustration. Actual results depend on the mod, terminal and environment.
Install
/plugin marketplace add ybonda/graphmod
/plugin install graphmod@graphmod
/reload-pluginsRun these commands one at a time in a Claude Code session.
claude plugin marketplace add ybonda/graphmod
claude plugin install graphmod@graphmodThen run /reload-plugins in your session, or start a new session.
Please install the Claude Code mod "graphmod" (https://github.com/ybonda/graphmod). Before installing, read the Security and Requirements sections of its README and tell me what it reads and writes, which commands it runs, whether it uses the network, and which Claude Code version, OS and terminal it needs. If everything looks fine, run claude plugin marketplace add ybonda/graphmod and claude plugin install graphmod@graphmod, then remind me to run /reload-plugins in my session.Send this to Claude Code so it reads the author’s instructions before installing.
git clone https://github.com/ybonda/graphmod
cd graphmod
claude --plugin-dir .Clone the repository and try it in a local session with --plugin-dir.
What it accesses
Based on the author’s documentation, checked when listed; use claude plugin validate to check for yourself.
Reads
YesReads DOT source from replies and intermediate files in the cache directory.
Writes files
YesWrites render cache and the interactive page only under ~/.cache/graphmod/.
Runs commands
YesRuns mkdir, gvpr (with its style.g) and dot.
Network
NoneIntroduction
graphmod is a Claude Code function-hooks mod that nudges Claude to draw with ```dot blocks, then styles them with gvpr and renders with dot. Kitty-graphics terminals get a PNG plus an interactive HTML link; desktop gets SVG. It writes only under ~/.cache/graphmod/, makes no network calls, and strips DOT attributes that could read local files. Built and tested on Claude Code 2.1.289 (recorded as tested, not an author-stated hard minimum). Needs Graphviz (dot/gvpr) on PATH. Preview is illustrative.
Who it is for
- People who want real architecture diagrams in the terminal, not ASCII
Requirements
- Claude Code ≥ 2.1.289
- Author built and tested on 2.1.289; not stated as a hard lower bound.
- Needs Graphviz on PATH: brew install graphviz.
- Terminals without picture support may show source or a fallback.