answer-pane
Reviewed
at commit 707eabd
Caution: Saves every page Claude draws, which can quote your code and secrets, as Markdown and HTML under ~/.claude/answer-pane outside your project, where it stays.
Explain, plan and ELI5 pages drawn natively in a side pane: diagrams in place, plan decisions as buttons, Respond fills the prompt box. No model calls.
0 upvotes
Log in to upvote or save- Made by
- Vedant Andhale
- Pinned commit
-
707eabd5ef10aa25559ddd1a6dbdb24ac7df781a - What we checked
-
Gives Claude a show_page tool that draws explain, plan and ELI5 pages in a side pane; plan decisions become buttons, and Respond puts your answers in the prompt box for you to send. Each page is rendered by a bundled local Node.js script and saved as Markdown and HTML under ~/.claude/answer-pane/. It makes no network or model calls; its tool description adds about 577 tokens to each request.
Review details
Static review of the source at the pinned commit; not run. On session.start it registers the tool show_page ($.tool.register) and the commands /pages, /eli5 and /plan-page; tool.describe on its own tool sets isDeferred from the stored auto setting (default on); tool.call on mcp__answer-pane__show_page takes only the markdown argument, writes it with $.fs.write to <CLAUDE_CONFIG_DIR or ~/.claude>/answer-pane/<timestamp>-<slug>.md (slug limited to a-z0-9-), then runs $.process.run(['node', <plugin root>/vendor/am.mjs, 'render', draft, '-o', html, '--no-open', '--style', style]) and reads the HTML back with $.fs.read to extract the SVG diagrams and CSS for the pane; on failure it returns the renderer's output (max 1,500 chars) as the tool result so Claude can fix the draft. Pages, current page, view and plan replies are kept in plugin atoms (last 30 pages); $.store holds auto and style. /eli5 and /plan-page submit a prompt built from the user's own topic via $.prompt.submit; the Respond button calls $.prompt.fill (replace) with the picked options, struck panels and quoted comments, and the user sends it. The Browser button runs cmd /c start, open or xdg-open on the saved HTML file. ui.render draws the pane with Box, Text, Button, Markdown, Code, Svg and Input, plus toasts. vendor/am.mjs is a bundled copy of the MIT answer-me-with-html CLI (upstream QingYunA/answer-me-with-html at d77749d per vendor/UPSTREAM) containing marked and @dagrejs/dagre; it uses only node:fs, node:path, node:os, node:util and child_process.spawn (only to open the browser, which --no-open disables), reads the optional ~/.answer-me-with-html/config.json for theme defaults (it writes that file only through its own 'config' subcommand, which the plugin never calls) and writes the HTML to the given path; no network, eval or dynamic import found. Raw html/svg fences in Claude's draft are embedded as-is in the saved HTML, which runs in the browser only if you press Browser. Saved page files are never deleted. register.tsx, page.ts, the types and the CLI's cli/config/render/assets parts were read fully; the bundled marked and dagre library code and the component renderers were checked by targeted search for network, process, file, env and dynamic-code use. Needs Node.js 20+ on PATH.
- What it uses
-
- Reads your prompts: no
- Sees tool calls: no
- Blocks or changes tool calls: no
- Reads or writes files: yes
- Runs programs on your machine: yes
- Calls the model (uses tokens): no
- Sends data over the network: no
- Stores data: yes
- Shows something on screen: yes
Made this mod? Add a badge to your README
Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.
[](https://modsforclaude.com/mods/answer-pane/)