Who it is forAn engineer who wants to explain a process, service flow or data pipeline to a teammate from inside a Claude Code session.
The problemClaude Code prints mermaid as source, so the flow is hard to read without rendering it elsewhere.
The outcomeA flowchart, sequence diagram, bar chart or pie chart appears in the reply and can be copied as text art.
What you need first
- Claude Code version 2.1.287 or later
- A terminal that can show colors; kitty or Ghostty if you want LaTeX math drawn as images
- RaTeX's ratex-render binary, only if you want LaTeX math
Steps
- Install Prismantis as described in its README and confirm it is active with
/prismantis. - Ask Claude for the flow, for example: explain the request path of this service as a mermaid flowchart.
- Check that the mermaid block draws as colored text art and fits the terminal width.
- Use the
⧉ artcopy button to copy the drawn text, or⧉ mdto copy the markdown. - If the diagram is wider than the window or over 80 lines, shorten the question and ask again, since the README says those stay as code.
Prompt for your agent
Using the NahumLitvin/prismantis plugin in Claude Code, ask Claude to explain <process name> as a mermaid flowchart. Expected output: a colored text diagram with one color per box, not raw mermaid source. Verify that the diagram fits the terminal width and that the copy button on the diagram works.
Caveat. Diagrams that are too wide for the window or longer than 80 lines stay as code, so large systems need to be split into smaller questions.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for NahumLitvin/prismantis and "Draw a flowchart or chart inside a Claude Code reply"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer