dsh-openpencil: OpenPencil Design Canvas Integration for DeepSeek Harness
zseven-w/dsh-openpencil
DSH OpenPencil is a DeepSeek Harness plugin that lets agents preview, inspect, and edit real .op design documents in conversation, with exact multi-frame previews, an interactive canvas, and a managed editor.
dsh-openpencil is a DeepSeek Harness plugin that embeds OpenPencil's design canvas directly into conversations, enabling an Agent to preview, inspect, and edit real .op documents. It offers exact multi-frame previews, an interactive canvas, a managed editor, and agent-native design tools, solving the problem of AI design tools returning only images. Capability-gated grants and transactional safety ensure controlled and reliable design processes. Maintained by ZSeven-W under the MIT license, it suits developers who need to manipulate design files directly in conversation.
How to Install
dsh plugin --profile web add @zseven-w/dsh-openpencil- Category
- Tools & Capabilities
- Platform
- DSH Plugin
- Author
- zseven-w
- Distribution
- Plugin
dsh-openpencil Key Features
dsh-openpencil Repo Summary
What Does It Do?
DSH OpenPencil is a DSH plugin for DeepSeek Harness that integrates OpenPencil's design canvas into conversations, letting an Agent preview, inspect, and edit real .op documents directly. It solves the problem of AI design tools returning only generated images, offering exact multi-frame previews, an interactive canvas, a managed editor, and agent-native design tools. Capability-gated grants and transactional safety ensure controlled and reliable design processes. Maintained by ZSeven-W under the MIT license, it was last updated in 2026-08.
Core Features
- Exact Multi-Frame Previews: Uses the OpenPencil headless exporter to render design-faithful previews, including a large PNG, thumbnail rail, click-to-select, and previous/next navigation.
- Interactive Canvas: Lazily mounts the read-only OpenPencil Web SDK with pan, zoom, and fit, allowing inspection of any page or node without leaving the conversation.
- Managed Editor: With editable: true, opens a resizable right-hand workbench with selection, layers, properties, drawing tools, undo/redo, and explicit save semantics.
- Agent-Native Design Tools: Five direct-canvas tools and six openpencil_pipeline_* tools let the Agent create, inspect, refine, publish, modify, and read a real canvas.
- Capability-Gated Grants: Signed, hash-bound grants; browser metadata never exposes arbitrary host paths, and signed capabilities never enter model context.
- Transactional Safety: A full-pipeline document stays in a private unpublished draft until all quality gates pass; publication never overwrites existing paths, and aborted batches leave no empty targets.
How to Use This Plugin?
After enabling the plugin in DSH, the Agent can invoke its tools directly in conversation to operate on OpenPencil documents. For example, entering "Open interactive canvas" lazily mounts the read-only canvas for inspection; setting editable: true opens the managed editor for full editing. The workflow follows a complete loop: requirement → private draft → semantic batches → live previews → deterministic validation → atomic publish. The plugin follows DSH's Chinese/English locale and light/dark theme without reloading the editing session.
This page is an independent rewrite of the plugin's official README — for authoritative documentation and the latest changes, refer to the source: zseven-w/dsh-openpencil. The plugin is third-party code that runs on your machine once installed; inclusion does not imply endorsement — please review the source before installing.
