# Repository Briefing: NahumLitvin/prismantis
> Source: https://repoforai.com/repo/NahumLitvin/prismantis (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/NahumLitvin/prismantis
- **Official Docs / Website**: https://www.catchkill9.dev/posts/prismantis.html
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: TypeScript
- **License**: MIT
- **Engineering Health**: A+ (93/100 · Maintenance 35/35 · Adoption 18/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v0.52.1 (2026-12-01) — https://github.com/NahumLitvin/prismantis/releases
- **Review Snapshot**: 2026-12-01
- **Deployment / Stack Signals**: CLI
- **Momentum**: 534 ★ total (+0 24h / +24 7d) · 81 forks
- **Topics**: `claude-code`, `claude-code-mod`, `claude-code-plugin`, `markdown`, `mermaid`, `terminal`, `theme`
- **When to Use**: Best for: Claude Code users who routinely review Mermaid diagrams, wide tables, and tool diffs inline and want control over how much tool output stays visible. Skip if: You need an MCP tool server, identical rendering across hosts, or an unchanged client and prompt context with no extra configuration.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Integration: TypeScript function hooks redraw replies, prompts, slash-command output, tool rows, and turn footers.
- Rendering: Mermaid diagrams and charts, width-aware tables, and Prism highlighting in roughly two dozen languages.
- Tool output: `quiet` and `rows` retain edit diffs and errors; v0.52.0 added opt-in coloring for JSON, JSON Lines, and unified diffs.
- Export: Copy controls support Markdown, text art, HTML, or PNG; rich clipboard operations rely on platform-specific helpers.
- Prompt budget: Diagram hints default to about 630 tokens per prompt; v0.52.0 added a once-per-session option.
- Host coverage: Claude Code has the full feature set; OpenCode and Codex have narrower integrations, and Antigravity gets a demo without theming.
```

## Quick Start / Clone
```bash
claude plugin marketplace update prismantis && claude plugin update prismantis@prismantis
```
