cs-mermaid

cs-mermaid is a Claude Code mod by hex that draws mermaid flowcharts in replies inline, as coloured blocks and lines, and tells the model they draw.

Updated 2026-10-17

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, and tells the model they draw. It is listed under Interface and has 50 GitHub stars.

TypeClaude code mod
Authorhex
Repositoryhex/claude-sessions
Popularity50 GitHub stars
CategoryInterface
SecurityLow risk (100/100)
Rank#239 of 5,272 Claude Code mods; #96 in Interface
LicenseMIT
Last commit2026-10-17
Stars this week+3
Hooks2 events
Seesonly the events it hooks
Draws onAssistantMessage

Is cs-mermaid safe to install?

cs-mermaid scores 100/100 on the MCPMods security check: Low risk. No checks raised a concern. It passed 8 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 no processesPass
Writes no files or configPass
Doesn't read environment variablesPass
Only sees the events it hooksPass
Doesn't drive ClaudePass
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.config.list
$.fs.existsreads files
$.session.cwd
$.ui.resolvedraws interface

How do I install cs-mermaid?

  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/hex/claude-sessions
    claude plugin validate ./claude-sessions/mods/cs-mermaid
  3. 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 3 Claude Code mods on MCPMods.

  • cs: cs's in-session mod: the rotate band above the prompt, forced rotation past CS_ROTATE_FORCE_CTX, and the wrap key (High risk)
  • 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)