Introduction¶
DeepSeek Harness (DSH) is an “everything is a plugin” agent development framework that allows users to invoke external tools using natural language to complete complex tasks. For video post-production professionals, integrating DSH with DaVinci Resolve Studio turns “saying a single command” into “automatically completing an entire workflow.”
dsh-davinci-qing (Happy Qingqing) is a DSH plugin designed for this purpose. It encapsulates media ingestion, timeline arrangement, node-level color grading, Fusion compositing, and delivery queuing into 62 safely callable qing_* atomic tools. You simply describe your creative intent in natural language, and it precisely executes it within your project.
Core Capabilities¶
Seven Modules and 62 Atomic Tools¶
dsh-davinci-qing breaks the workflow into seven modules, each providing a set of atomic tools:
-
Environment & Project Diagnostics (4 tools)
- Seven-link self-check (qing_resolve_health): Probes the script path, dynamic library imports, IPC connectivity, Studio licensing status, current project and timeline, and external scripting toggle configuration. Also synchronously detects the availability of the official MCP. Provides Chinese troubleshooting steps on failure.
- Project-wide overview and page navigation: Reads project frame rate, resolution, color science configuration, and track topology. Supports seamless switching between the seven workspaces:media/cut/edit/fusion/color/fairlight/deliver. -
Media Pool & Smart Archiving (8 tools)
- Read-only pre-scan and recursive ingestion: Scans disk directories before import to count video/audio/still files and total storage, supports recursive ingestion with automatic sub-clip box creation and classification by camera (by_camera), date (by_date), type, or keyword.
- Metadata real-header closed loop: First exports metadata CSV and automatically handles the Windows UTF-16 LE + BOM encoding to read back real column names, then batch-writes fields such as Scene, Take, Camera #. Supports converting marked clip regions into sub-clips in batch. -
Timeline Precision Editing & Industrial Exchange Formats (13 tools)
- Multi-track precise arrangement: Creates timelines with specified specs (covering 1080×1920 vertical commercial short films and various cinema aspect ratios), appends to tracks or precisely inserts atrecord_frame, and batch-modifies transform properties (Zoom, Pan/Tilt, Crop, Dynamic Zoom).
- Color markers & subtitle sync: Supports batch read/write of 16-color markers with conditional cleanup (withdry_runpreview). Supports importing SRT subtitles or directly generating a subtitle track from a timecode list.
- 17 industrial-grade exchange format exports: Natively supports AAF, DRT, EDL, FCP7 XML, FCPXML (1.8–1.10), OTIO, ALE / ALE+CDL, Dolby Vision (2.9–5.1), HDR10, and 17 other standard project exchange formats. -
Color Node-Level Grading & Visual Closed Loop (7 tools)
- Stable label addressing (qing_color_label_nodes): Addresses DaVinci’s full-tree renumbering behavior after node deletion by applying semantic labels and color tags to key nodes, achieving stable node localization across operations. Withinclude_grade_detail=true, it can read actual tool parameter values and ASC CDL equivalents within a node in parallel.
- Preset mounting & cross-clip copying: Supports mounting.cube/.ilut/.olut3D LUTs bynode_labelor index, batch-applying.drxPowerGrade presets to a single clip / color tag group / entire timeline, and copying complete node trees across clips.
- Frame grab & thumbnail grid review (qing_color_grab_frame): Exports the current playhead frame with dead white/dead black area, luminance percentile, and saturation pixel statistics. Also supports calling the official layer to generate a timeline thumbnail grid of up to 48 frames. -
Fusion Procedural Compositing (3 tools)
- Node inspection & parameter-driven control: Reads the node topology and input values within a composition, dynamically adds 21 whitelisted node types (TextPlus,Transform,ColorCorrector,Merge,Blur, etc.) with batch modification of text, font size, coordinates, and color inputs. The return value explicitly identifies theconnected_to_outputconnection status. -
Delivery & Overwrite-Prevention Queue (8 tools)
- Local format & preset detection: Reads the current workstation’s supported render format and codec matrix, local render presets, and supports bypassing presets to configure 24 low-levelRenderSettingsparameters directly.
- Safe queuing & asynchronous rendering: Supports three same-name file protection strategies —overwrite/unique/fail— to prevent silent overwriting of existing outputs during batch rendering. Queueing and render start are decoupled, with support for asynchronous polling of render progress and interruption cleanup. -
Official MCP Enhancement Layer (19 tools · Requires Studio 21.1+)
- Deep grading read & dynamic generation: Fully inherits the 18 capabilities of the officialResolveMCP.exe, supporting reading of actual grading parameters and ASC CDL, rendering a single frame and ROI zoom at any timecode (without moving the playhead), generating a multi-frame timeline overview grid, writing/hot-updating.dctlshader code online, and generating.cube3D LUTs grid-by-grid via Python math functions.
- Real-time API search & process launch: Performs regex search of official API signatures in local.pyistubs, consults developer documentation, launches the Resolve process with one click, and executes sandboxed Python scripts under controlled conditions.
Dual-Channel System Architecture¶
The project adopts a “Cordis TypeScript lightweight forwarding shell + Python persistent bridge runtime” architecture,打通 two official DaVinci communication channels in parallel at the lower layer:
DSH (Cordis)
│ ctx.tools.register(...) ← 62 qing_* tools (Python single-source Schema generation, zero drift)
▼
dist/index.js (TypeScript shell: pure forwarding, no business logic)
│ stdio JSON-RPC
▼
lib/resolve_bridge.py (Persistent Python runtime)
├── Channel 1: External Scripting API (DaVinciResolveScript / fusionscript) ──→ 43 core project tools
└── Channel 2: Resolve official native MCP (ResolveMCP.exe · Studio 21.1+) ──→ 19 enhanced perception & generation tools
- Dual-channel parallel complementarity: The Scripting API handles high-reliability, snapshot-protected project and timeline operations; the official MCP layer fills in capabilities structurally unreachable by the Scripting API (such as reading actual parameter values and ASC CDL of node parameters, rendering any-timecode single frames and ROI zooms without moving the playhead, generating full timeline thumbnail grids, and dynamically generating
.cubeLUTs and.dctlshaders). When the official MCP is unavailable, the base 43 tools still operate independently and stably. - Single-source Schema zero drift: All 62 tools’ JSON Schemas are dynamically generated on the Python side and pushed to DSH. The TypeScript shell maintains no second duplicate definition.
Safety Mechanisms¶
In real commercial projects, any irreversible project misoperation is catastrophic. dsh-davinci-qing has four layers of built-in safety guardrails at the lower level:
- Mandatory project save and timeline snapshot (Checkpoint): All 10 core write tools involving timeline editing, color grading node trees, and Fusion composition modifications are forced to trigger
project.SaveProject()before execution, automatically cloning a timestamped backup timeline ([Backup_HHMMSS]_OriginalTimelineName), then switching back to the original timeline before performing the operation. If backup creation fails, the system refuses to execute by default. - 26-item Pre-flight pre-write validation: Before sending any modification command to DaVinci, a single-pass validation checks track out-of-bounds, track lock status, frame number range, node index and label existence, local path validity, and output file conflicts. If pre-flight validation fails, no partial writes are produced, and all violations with Chinese fix suggestions are returned in one response.
- Pre-overwrite readback & full audit logging: When mounting a new LUT, toggling node enable state, modifying node labels, or exporting project files, the system reads back and returns the original state before replacement. Every checkpoint creation and destructive write is structurally logged to
~/.dsh-davinci-qing/audit.jsonl(customizable viaQING_STATE_DIR). - Built-in simulator isolation (
QING_DAVINCI_FAKE=1): Includes a complete Resolve object model stand-in simulator. When enabled, all read/write tests run in an isolated environment and never touch the real project (the official MCP layer is simultaneously disabled).
Capability Boundaries¶
The project presents tool capability boundaries honestly:
- Native undo stack limitation: DaVinci external scripting operations do not enter the Ctrl+Z undo history stack. For rollback, use the automatically generated
[Backup_HHMMSS]backup timeline directly. - Features with no exposed API: The official Scripting API currently does not expose color grading Qualifier color picking, Power Window window drawing, Tracker solving, or Fusion node auto-wiring (nodes created via script
AddToolare not connected by default and must be manually wired toMediaOutin the Fusion page). - Screenshots are not hardware scopes: The screenshot tool returns 8-bit display reference images and pixel statistics, not hardware-level IRE / 0–1023 scale. For precise signal overshoot judgment, enable the waveform monitor in DaVinci (with
Extentsenabled). - Render control red line: The plugin will not modify Resolve global preferences on its own, nor will it start rendering without confirmation.
Installation & Activation¶
Environment Prerequisites¶
- Software: DaVinci Resolve Studio (v18.5 or above; the official MCP enhancement layer requires Studio 21.1+). The free version of DaVinci Resolve does not expose the external scripting interface or the official MCP. A Studio licensed version is required.
- Runtime environment: Python 3.10+ (dependencies:
mcp>=1.2,<3,pydantic>=2.6,<3, optionalPillow>=10.0for pixel statistics), Node.js>=22, and DeepSeek Harness (>=0.2.1-rc.2 <0.3.0-0). - External scripting permission: Open DaVinci Resolve Studio, go to
DaVinci Resolve->Preferences->System->General, setExternal scripting usingtoLocal, click Save, and then restart DaVinci Resolve.
Installation Steps¶
- Clone the repository and build
git clone https://github.com/MokoKing666/dsh-davinci-qing.git
cd dsh-davinci-qing
npm install && npm run build
- Run environment self-check
Ensure DaVinci Resolve Studio is running with any project open. Execute the self-check script to verify the dual-channel link (add--simulateparameter to run a simulated self-check in environments without DaVinci):
python check_env.py
- Integrate with DSH
Install this project into your DeepSeek Harness plugin directory (ensureSKILL.mdanddist/index.jsare loaded). Restart DSH, and Happy Qingqing will be ready to serve.
Typical Usage¶
-
Pre-production media prep and automatic binning
“First scan the media structure under
D:\Shoot\2026_Commercial, import into the media pool with automatic binning by camera, then create a 1080×1920 25fps vertical timeline and place Camera A clips onto tracks in sequence.” -
Node-level grading and visual review closed loop
“Apply
D:\PowerGrades\Kodak2383_Base.drxto all clips with theOrangecolor tag on the current timeline, tag the 2nd node withBALANCE, then grab the current frame and generate a 6-grid timeline thumbnail grid to help me check overall exposure and skin tones.” -
Local zoom inspection without moving the playhead
“Use the official single-frame rendering interface to export an ROI zoom of the character’s face at timecode
01:00:12:08, and confirm whether highlight details are clipping.” -
Safe batch rendering
“Read available local render presets, add the current timeline to the render queue using the
H.265 Masterpreset, output toD:\Exports, set the same-name file strategy touniqueto prevent overwriting.”
Applicable Scenarios & Notes¶
dsh-davinci-qing is suitable for users who need to batch-execute video post-production workflows via natural language, such as:
- Commercial video teams that need to rapidly process large volumes of media
- Editors who want to drive color grading node trees and timeline arrangement with natural language
- Compositors who need to programmatically generate LUTs, shaders, and thumbnail grids
Notes:
- The plugin runs with the current DSH process permissions. Check the source code and license before installation.
- The official MCP enhancement layer requires DaVinci Resolve Studio 21.1+. The free version does not expose the external scripting interface or the official MCP.
- DaVinci external scripting operations do not enter the Ctrl+Z undo history stack. Use the automatically generated
[Backup_HHMMSS]backup timeline for rollback.
Closing¶
The ultimate meaning of tool evolution has never been to replace the creator, but to thoroughly strip away those tedious, repetitive, inspiration-draining mechanical operations.
Leave the tedious to the tools. Give the time back to creation.
- Directory page: https://www.skillhub.cn/plugins/MokoKing666/dsh-davinci-qing
- GitHub: https://github.com/MokoKing666/dsh-davinci-qing