Explainer

An explanation compiler for Claude Code. Ask how something works, and get the explanation that costs you the least effort to understand. Usually that is a short answer in precise, plain prose, built from first principles. When the structure needs it, the answer becomes a diagram, an interactive page, or a narrated 3Blue1Brown-style video. Behind each artifact sits a small model of the subject, and every rendering is checked against it, both for what it leaves out and for what it says that you did not need.
 |  |
| Self-attention (interactive): remove one part at a time (the content weights, a separate query, √d, the mask) and see what breaks. | Softmax temperature (video, 93 s): one value, T, drives every object. The voice is local, and no API keys are needed. |
Live site: interactive pages, and videos that stop for your prediction · Inspired by Andrej Karpathy's post on understanding LLM output through richer formats.
Install
In Claude Code:
/plugin marketplace add ifrit98/Explainer
/plugin install explainer@explainer
Then ask:
/explainer:explain how does a bloom filter work
/explainer:video why the derivative of sin is cos
/explainer:verify bloom-filter
The plugin adds an explainer command that runs the toolkit through uv. Stages 1–3 need nothing else. Video also needs Cairo, Pango, and FFmpeg (brew install cairo pango pkgconf ffmpeg) and a one-time explainer setup for the local voice. Details: getting started.
Most questions need no artifact
The principles also shape plain chat answers: answer first, give the mechanism and why it has its form, add one case with numbers, then stop. explainer eval chat measures that. It asks six questions about phenomena (why ice floats, why TCP starts slowly, how a wing makes lift, …), answers each one under three system prompts, and has a fresh model grade them blind:
| System prompt | Score /10 | Words | Passages the reader did not need | Ranked best |
|---|
| none | 6.3 | 399 | 4.7 per answer | 0 of 6 |
| v0.5.0 principles | 7.2 | 544 | 5.0 | 1 of 6 |
| current principles | 7.8 | 292 | 1.5 | 5 of 6 |
The first run showed that the principles made answers 50% longer. The answers carried Scope sections, status tags on textbook facts, and extra cases. One rule fixed it: a chat answer is not a small artifact. Evals.
How it works
Most explanations fail by omission, not by error: a formula with no reason for its form, a guarantee never shown to break, a symbol used before anyone said what it means. Explainer separates the work into three passes, and checks each one.
flowchart LR
Q[Question] --> M["1 · Model<br/>what is true:<br/>entities, causes, numbers,<br/>claims with their evidence"]
M --> N["3 · Narrative<br/>the reader's path:<br/>question, motive, beats,<br/>every symbol introduced"]
M -.-> S("2 · Stage<br/>the simplest medium<br/>that keeps the structure")
S -.-> N
N --> P[Prose]
N --> D[Diagram]
N --> H[Interactive page]
N --> V[Video]
M -. "probe" .- PR(("fresh<br/>agent"))
N -. "cold read" .- CR(("fresh<br/>agent"))