The DeepSeek Harness plugin for OpenPencil: instead of returning a generated image, the agent drives a real, editable, interactive design canvas. Exact multi-frame previews, a pannable read-only canvas, a managed editor with layers and properties, and five agent-native design tools.
dsh plugin --profile web add @zseven-w/dsh-openpencil@latest
The name after --profile is a profile name you choose yourself — swap in whichever one you use.
The usual "AI does design" story ends with a generated picture. DSH OpenPencil takes another route: the agent operates on real `.op` documents. 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 with click-to-select and previous/next navigation for multi-frame documents. "Open interactive canvas" lazily mounts the read-only OpenPencil Web SDK with pan, zoom and fit, so you can inspect any page, nested node or inactive page without leaving the conversation. 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. Five tools (`openpencil_new`, `openpencil_create`, `openpencil_edit`, `openpencil_render`, `openpencil_selection`) let the agent create, modify and read a real canvas through transactional `batch_design` programs. On the security side, image and document grants are signed, hash-bound capabilities: browser metadata never exposes an arbitrary host path, and signed preview or editor capabilities never enter the canonical tool result or the model context. Transactional safety means a new document is published only after the whole `batch_design` program succeeds, the tool never overwrites an existing path, a failed batch leaves no empty file behind, and saves use an optimistic hash with atomic replace.
- ▸Exact multi-frame previews: a large PNG of the top-level frame plus a scrollable thumbnail rail with click-to-select and prev/next navigation
- ▸Pan-and-zoom interactive canvas; `editable: true` opens a managed editor with layers, properties and undo/redo in a resizable, full-screen-capable workbench
- ▸Five agent tools create, modify and read the real canvas through transactional `batch_design` — published only on full success, no empty files on failure
- ▸Signed, hash-bound capability grants: no host paths leak through browser metadata, and preview/editor capabilities never reach tool results or model context
OpenPencil 设计文档预览编辑插件,npm 已发 rc、十语言 README,工程线完整
Drop it into your README — it links back to this page.
