What is cs-mermaid?
cs-mermaid is a Claude Code mod by hex that draws mermaid flowcharts in replies inline, as coloured blocks and lines. It is listed under Interface and has 57 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | hex |
| Repository | hex/claude-sessions |
| Popularity | 57 GitHub stars |
| Category | Interface |
| Security | Low risk (88/100) |
| Rank | #344 of 9,397 Claude Code mods; #142 in Interface |
| License | MIT |
| Last commit | 2026-11-24 |
| Stars this week | +2 |
| Hooks | 1 events |
| Sees | only the events it hooks |
| Draws on | AssistantMessage |
Is cs-mermaid safe to install?
cs-mermaid scores 88/100 on the MCPMods security check: Low risk. Things to review: reads environment variables. It passed 7 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.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts no processes | Pass |
| Writes no files or config | Pass |
| Reads environment variables | Review |
| Only sees the events it hooks | Pass |
| Doesn't drive Claude | Pass |
| Passes claude plugin validate | Pass |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.config.list | |
$.env.get | reads env vars |
$.ui.resolve | draws interface |
How do I install cs-mermaid?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/hex/claude-sessions claude plugin validate ./claude-sessions/mods/cs-mermaid
- Install it. Run this in your terminal, then /reload-plugins in an open session.
git clone https://github.com/hex/claude-sessions && claude --plugin-dir ./claude-sessions/mods/cs-mermaid
Or ask Claude to set it up
Paste this into Claude Code and it installs cs-mermaid for you:
Install the "cs-mermaid" Claude Code mod from https://github.com/hex/claude-sessions/tree/main/mods/cs-mermaid. Run claude plugin validate on it first and show me what it can access before you enable it.
More from hex/claude-sessions
This repository has 6 Claude Code mods on MCPMods.
- cs: cs's in-session mod: the band above the prompt, the rotate and wrap keys under it, and forced rotation past CS_ROTATE_FO (High risk)
- cs-filter-chat: Restyles the chat: your messages and Claude's replies, and nothing of the work between them. Off by default; the band's (Review before installing)
- cs-images: Draws pictures from absolute file paths inside replies, as pixels or coloured blocks. (Review before installing)
- cs-panel: /cs opens a pane of cs's settings, its mods' /config rows and its own CS_* settings, and changes one per machine or for (Review before installing)
- cs-update: Release notes for a pending cs update, once per launch, with 1 to install it in place; /cs-update reopens the pane. (Review before installing)