Skip to content

ZSeven-W/dsh-openpencil

863Last commit Aug 14, 2026

dsh-openpencil DSH plugin

DSH OpenPencil connects DeepSeek Harness with OpenPencil so an Agent drives a real, editable, interactive design canvas instead of returning a generated image. It provides exact multi-frame previews, an interactive canvas, and a managed editor with native design tools, all within the DSH conversation interface.

How to install the dsh-openpencil DSH plugin

dsh plugin --profile web add @zseven-w/dsh-openpencil@latest

Copying does not run this command. Review the repository and version before installing the dsh-openpencil DSH plugin.

dsh-openpencil DSH plugin data source

dsh-openpencil DSH plugin snapshot date: Aug 16, 2026

discovered

What the dsh-openpencil DSH plugin can do

  • Exact multi-frame previews with PNG thumbnail rail and click-to-select navigation
  • Read-only interactive canvas with pan, zoom, and fit for inspecting any page or node
  • Managed editor with selection, layers, properties, drawing tools, undo/redo, and explicit save semantics
  • Five agent-native design tools: openpencil_new, openpencil_create, openpencil_edit, openpencil_render, openpencil_selection
  • Capability-gated grants with signed hash-bound image and document capabilities

Where the dsh-openpencil DSH plugin fits

  • Create a new .op document from a natural language requirement using the agent canvas
  • Preview and iterate on an existing design within the conversation without leaving the chat
  • Edit specific nodes or layers of a live canvas through the managed editor workbench
  • Inspect inactive pages or nested nodes that are not shown in the preview gallery
  • Build a complete design workflow from requirement to final artifact in one DSH session

Who the dsh-openpencil DSH plugin is for

  • Designers and developers using DeepSeek Harness who need to create or modify OpenPencil documents
  • Teams integrating agent-native design tools into their conversational AI workflows

dsh-openpencil DSH plugin limitations

  • Follow-up edits to an existing canvas require an already-open managed editor; changes remain unsaved until the user invokes its Save action
  • The lightweight Web SDK canvas is read-only; full editing requires the separate managed editor surface

dsh-openpencil DSH plugin: from the repository README

Quoted from the ZSeven-W/dsh-openpencil README, the upstream source of the dsh-openpencil DSH plugin. Copyright remains with the original authors.

DSH OpenPencil connects [DeepSeek Harness](https://github.com/deepseek-ai/DSH) with [OpenPencil](https://github.com/ZSeven-W/openpencil) so an Agent drives a real, editable, interactive design canvas instead of returning a generated image. <table> <tr> <td width="50%"> ### 🖼️ Exact Multi-Frame Previews The installed OpenPencil headless exporter renders design-faithful previews: the first top-level frame as a large replay-safe PNG, plus a horizontally scrollable thumbnail rail, click-to-select, and previous/next navigation for multi-frame documents. </td> <td width="50%"> ### 🗺️ Interactive Canvas "Open interactive canvas" lazily mounts the read-only OpenPencil Web SDK with pan, zoom, and fit — inspect any page, nested node, or inactive page without leaving the conversation. </td> </tr> <tr> <td width="50%"> ### ✏️ Managed Editor With `editable: true`, the edit action opens the managed OpenPencil editor — selection, layers, properties, drawing tools, undo/redo, and explicit save semantics — in a resizable right-hand workbench with a full-screen option. </td> <td width="50%"> ### 🤖 Agent-Native Design Tools Five tools — `openpencil_new`, `openpencil_create`, `openpenci

Read the full READMERepository license: MIT

dsh-openpencil DSH plugin questions

How do I install the DSH OpenPencil plugin?

Run the command: `pnpm dlx --package=@deepseek-ai/dsh@0.1.0-rc.6 dsh plugin --profile web add @zseven-w/dsh-openpencil@latest`. Then start the DSH web server with `pnpm dlx --package=@deepseek-ai/dsh@0.1.0-rc.6 dsh web`. The plugin is public and requires no npm token.

Does this plugin require OpenPencil to be installed on my machine?

Yes, for full functionality the plugin expects an OpenPencil binary. It checks several locations: the environment variable `DSH_OPENPENCIL_BINARY` or `DSH_OPENPENCIL_DESKTOP`, common macOS paths, or the `openpencil-desktop` command on PATH. If the exact binary is unavailable, a fallback renderer (Jian) may produce a labelled runtime-preview, but exact renderer failures do not silently fall back.

Can I edit .op documents with this plugin?

Yes, by setting `editable: true` when calling `openpencil_render` or by using the managed editor. The editor supports selection, layers, properties, drawing tools, undo/redo, and explicit save. Changes remain unsaved until you click Save. The lightweight interactive canvas is read-only, so full editing requires the managed editor workbench.

What design tools does the plugin provide?

The plugin exposes five agent-native tools: `openpencil_new` (create a new .op from a batch design program), `openpencil_create` (modify an existing canvas), `openpencil_edit` (modify a specific node), `openpencil_render` (render previews and optionally open the editor), and `openpencil_selection` (read the currently selected nodes in the live editor).

How are previews and editor capabilities secured?

Image and document grants are signed, hash-bound capabilities. Browser metadata never exposes arbitrary host paths, and signed preview/editor capabilities never enter the canonical tool result or model context. The plugin uses a same-origin, session-bound endpoint to recover UI-only projection, and editor grants are issued only for recent, trusted live results.