dsh-finesse-visualizer

Visualizes Finesse 3 KatScript in the conversation and adds a drag-and-drop optical bench designer that generates the Finesse model. It scans every user and assistant message for KatScript or a Finesse Python cell and renders them in the background with the first Python interpreter that can import finesse (Finesse 3, NumPy and Matplotlib required; interpreter overridable with FINESSE_VIZ_PYTHON), keeping the code and figures under ~/.dsh/finesse-vis.

Overview

Visualizes Finesse 3 KatScript in the conversation and adds a drag-and-drop optical bench designer that generates the Finesse model. It scans every user and assistant message for KatScript or a Finesse Python cell and renders them in the background with the first Python interpreter that can import finesse (Finesse 3, NumPy and Matplotlib required; interpreter overridable with FINESSE_VIZ_PYTHON), keeping the code and figures under ~/.dsh/finesse-vis.

Installation

Install from GitHub

dsh plugin --profile web add github:darkneu/dsh-finesse-visualizer

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.