NahumLitvin/prismantis
TypeScript render hooks bring diagrams, tables, and compact tool output to Claude Code
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Prismantis is a TypeScript presentation plugin, not an MCP server or a model backend. In Claude Code, function hooks redraw assistant replies, slash-command output, tool rows, turn footers, and user prompts. Prism handles syntax highlighting, and other mods can use the width- and surface-aware $.prismantis.markdown({ surface, text, columns }) interface. The plugin manifest at plugin/.claude-plugin/plugin.json defines the option schema under userConfig.
Rendering and prompt augmentation are separate concerns: diagramHints tells the model what the host can draw, while the hooks handle presentation. The root tree separates the opencode/, codex/, and antigravity/ integrations. Those hosts render their own replies, so Prismantis supplies hints and adds only what the respective plugin APIs expose, rather than reproducing the Claude Code integration wholesale.
Key Capabilities & Differentiators
The Claude Code integration renders Mermaid flowcharts, sequence, state, and ER diagrams, plus bar, line, pie, and Gantt charts. Tables adapt to terminal width and align numeric cells; code cards include a language header and Prism highlighting. The 18 palettes cover 13 dark and five light themes. Copy controls can export Markdown, text art, HTML, or PNG.
quiet hides read and search results; rows also hides successful call output. Both preserve edit diffs and errors. The off-by-default highlightOutput option colors JSON, JSON Lines, and unified diffs in tool results. OpenCode adds colored figures, selected Mermaid charts, and code and prose themes; Codex themes code, prose, tables, and diagrams, but draws figures as text. Antigravity keeps its own colors and gets a /prismantis demo.
Trade-offs & Limitations
Compared with Claude Code's built-in renderer, Prismantis makes diagrams and dense outputs easier to scan in place, at the cost of another plugin whose reach depends on host APIs and terminal features. Oversized diagrams fall back to source, and LaTeX rendering requires kitty or Ghostty outside tmux. Teams that need to see every tool result should stick with the default full output rather than quiet or rows.
The full-demo measurement on an M4 Pro is about 5 ms cold and 1 ms warm for layout, not end-to-end response latency. Default diagram hints add about 630 tokens of model-only context per prompt, or roughly 710 with LaTeX enabled. Use once-per-session hints if repeated guidance is unnecessary, or disable both diagram and issue hints to eliminate those additions. The plugin's lack of network calls does not change the host's own data path.
Hardware & Deployment Guide
Install in Claude Code 2.1.287+ with /plugin marketplace add NahumLitvin/prismantis and /plugin install prismantis@prismantis, then use /reload and /prismantis setup. Configure it in /config or under pluginConfigs["prismantis@prismantis"].options in ~/.claude/settings.json. Full Desktop Code-tab coloring requires 2.1.324+; the separate integrations require OpenCode 2.2.5+ or Codex 0.164.0+, respectively.
No Prismantis service or model runtime is required, and the plugin makes no network calls. Rich clipboard actions invoke a local helper on click, and optional LaTeX uses ratex-render in kitty or Ghostty outside tmux. v0.51.0 added support for Claude Code's experimental Code Mode, v0.52.0 added themed tool results and once-per-session diagram hints, and v0.52.1 fixed a missing backward edge in left-to-right flowcharts and a stacked-subgraph title issue.
quiet and rows retain edit diffs and errors; v0.52.0 added opt-in coloring for JSON, JSON Lines, and unified diffs.Claude Code users who routinely review Mermaid diagrams, wide tables, and tool diffs inline and want control over how much tool output stays visible.
You need an MCP tool server, identical rendering across hosts, or an unchanged client and prompt context with no extra configuration.
Quick Start & Installation
claude plugin marketplace update prismantis && claude plugin update prismantis@prismantis
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| prismantis ★ | 534 | +24 | TypeScript | MIT | TypeScript render hooks bring diagrams, tables, and compact tool output to Claud |
| ponytail | 204.4k | +4.1k | JavaScript | MIT | A prompt-driven coding-agent plugin for smaller changes and focused tests. |
| obsidian-skills | 56.2k | +1.7k | Shell | MIT | Agent Skills plugins for editing Obsidian files and working with vaults |
| ECC | 316.1k | +4.2k | JavaScript | MIT | Plugins and CLI workflows for planning, reviewing, and verifying agent-written c |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/NahumLitvin/prismantis.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about prismantis
How does Prismantis integrate with Claude Code and other mods?
$.prismantis.markdown({ surface, text, columns }) to render Markdown for a given surface and width. It is a presentation plugin, not an MCP server; displaying an MCP reply does not make it a tool provider.Does it need a GPU, and what overhead should we measure?
npm --prefix scripts run bench lets you measure your own machine. Separately, default diagram hints add about 630 tokens of model-only context per prompt, so rendering time alone does not capture the overhead.Can we use it commercially, and does it need a self-hosted service?
When is Claude Code's built-in renderer the better choice?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy