# graphmod

Claude Code mod that renders diagrams in replies as real pictures.

- Category: Developer Tools
- Pricing: Free
- Tags: Coding Assistants, Visualization, Open-Source AI
- Website: https://github.com/ybonda/graphmod/?via=aigregator
- Aigregator page: https://aigregator.com/tools/graphmod
- API: https://x402.aigregator.com/v1/tools/graphmod

## Overview
graphmod is an open-source mod for Claude Code that turns diagrams in Claude's replies into real pictures. It adds a short section to the system prompt asking Claude to draw diagrams as Graphviz dot blocks instead of ASCII art. When a reply contains a closed dot block, graphmod styles the graph and renders it: as a PNG image in terminals that support the kitty graphics protocol (Ghostty, cmux, kitty, WezTerm), or as an SVG in the Claude Code desktop app, VS Code and mobile.

It is built for developers who ask Claude Code to explain architecture, data flows or system layers. Each cluster gets its own color and tinted background, and each box becomes a card with a colored badge, a bold title and a short detail line. Under the picture, a link opens an interactive HTML page where you can hover a box to highlight its neighbors, click to pin it, drag it and zoom.

The mod runs only mkdir, gvpr and dot, writes files only to ~/.cache/graphmod/, and has no network access. Dot blocks that would make Graphviz read local files are shown as text instead. The main limitation: it depends on Claude Code's mods feature, which is early and may change between releases, and it needs Graphviz installed locally.
## Key Features
- Prompts Claude to draw diagrams as Graphviz dot instead of ASCII art
- Renders dot blocks as inline PNG images in Ghostty, cmux, kitty and WezTerm
- Renders SVG in the Claude Code desktop app, VS Code and mobile
- Colored clusters and card-style boxes via a gvpr style script
- Interactive HTML diagram page with highlight, pin, drag and zoom
- Content-hash cache in ~/.cache/graphmod/ and no network access
- Blocks dot sources that would read local files

## Use Cases
- Show software architecture diagrams inside the Claude Code terminal
- Explore a system's components on an interactive diagram page
- Replace ASCII-art diagrams in AI coding sessions with rendered graphs

## Alternatives
- Mermaid
- Eraser
- Excalidraw

---
Source: Aigregator — AI tools directory. https://aigregator.com/tools/graphmod
