Introduction¶
The plugin-based architecture of DeepSeek Harness (DSH) decomposes various capabilities into reusable bundles that agents can compose as needed. However, in video post-production, DaVinci Resolve operations are still primarily performed through its GUI. In the past, having an agent work within Resolve could only be done via computer-use simulating mouse clicks—cumbersome and unstable.
The dsh-resolve plugin solves this problem: it allows an agent to take a declarative edit specification (spec) and directly generate an importable FCPXML timeline, or manipulate the project directly via the scripting API on the Studio edition.
Plugin Positioning¶
dsh-resolve is a DSH workflow plugin maintained by Lee2277-t. It abstracts DaVinci Resolve operations into declarative specs and provides two backends: a file backend that generates .fcpxml files on the free edition, and an api backend that directly builds timelines, exports frames, and renders via the scripting API on the Studio edition.
Core Features¶
The plugin provides 11 tools, categorized into general tools, api backend tools, and free-edition-only tools.
General Tools¶
resolve_doctor: Detects the current environment (version, whether Studio is installed, port, available backends) and identifies issues that need fixing.resolve_help: Outputs the full reference manual for spec fields. Recommended to read once before first use.resolve_build: The core tool. Converts a spec into output: the file backend generates.fcpxml+ subtitle PNGs + a manifest; the api backend builds a timeline directly in the current project.
API Backend Tools (Resolve Studio + external scripting = local)¶
resolve_import: Imports an existing.fcpxmlinto the current project.resolve_state: Reads the current project, timeline, and clips on each track.resolve_frame: Exports a single frame as PNG so the agent can actually see the result.resolve_render: Renders the timeline to a specified directory.resolve_py: An escape hatch for calling the Resolve Python API directly.
Free Edition Tools¶
resolve_preview: Generates an offline contact sheet using ffmpeg to extract frames and overlay titles—preview visuals without needing Resolve.resolve_live: Queues commands for execution by the Resolve internal scripting panel, bypassing scripting port restrictions.resolve_live_status: Checks whether the bridge script is installed, running, and its last status.
Installation & Activation¶
Install as a DSH bundle, replacing the path with your local directory:
dsh plugin --profile web add /path/to/dsh-resolve
# or
dsh plugin add /path/to/dsh-resolve
Whichever profile you install into is the one that uses it. The Desktop app has its own profile—install via the in-app Settings → Plugins menu. A plugin installed to the web profile via CLI will not appear in Desktop.
You can also have the agent in DSH invoke plugin_manager + install_bundle, with target pointing to this directory.
Dependencies¶
| Dependency | Purpose | Required |
|---|---|---|
| Node.js 20+ | The plugin itself | Yes |
Python 3.10+ with pip install pillow |
Asset probing, rendering subtitle PNGs | Yes |
OpenCV (pip install opencv-python) |
Probing video duration / resolution / fps | No |
| ffmpeg | resolve_preview frame extraction |
No |
| DaVinci Resolve Studio | api backend |
No |
Search order for Python and ffmpeg:
- Python:
config.pythonPath/DSH_RESOLVE_PYTHON/PYTHONenv var →%LOCALAPPDATA%\Programs\Python\Python3xx→C:\Python3xx→ PATH. - ffmpeg:
FFMPEG_PATH/FFMPEG_EXE→~/.dsh/bin/ffmpeg.exe→ common paths → PATH.
Configuration¶
Add an optional config block for this entry in cordis.patch.yml:
- id: dsh-resolve
name: dsh-resolve
config:
resolveExe: 'D:\Apps\DaVinci Resolve\Resolve.exe' # Only needed for non-default install paths
pythonPath: 'C:\Python312\python.exe' # Only needed when multiple Python versions are installed
installBridgeScript: true # Set false to skip placing the bridge script in Resolve's scripting directory
Resolve install location is searched in the following order by default: RESOLVE_EXE env var → common install paths → running Resolve.exe process → uninstall registry.
Spec Example¶
Time units in a spec default to frames, but "3s" is also accepted.
{
"name": "成片名",
"width": 1920, "height": 1080, "fps": 25,
"clips": [{ "file": "D:/素材/a.mp4", "in": 0, "duration": 75, "name": "开场" }],
"titles": [{ "text": "标题", "sub": "副标题", "at": 15, "duration": 60, "style": "center" }],
"transitions": [{ "after": 0, "type": "Cross Dissolve", "duration": 12 }]
}
Typical Usage¶
File Backend (Free Edition)¶
- Call
resolve_buildwith a spec and an output directory. The tool generates<output_dir>/<name>.fcpxmland anassets/directory. - In DaVinci Resolve, open the project and go to File › Import › Timeline…, then select the generated
.fcpxml. - The timeline appears in the media pool—double-click to continue with manual fine-tuning.
Offline Preview¶
Before importing, you can preview the result: call resolve_preview, which uses ffmpeg to extract frames and overlay titles, generating a contact sheet with frame numbers / timecodes.
API Backend (Studio)¶
After enabling the Studio scripting port, call resolve_build—the spec will build a timeline directly in the current project. You can then call resolve_frame to inspect a single frame, or use resolve_render to export the final video.
Free Edition Bridging¶
On the free edition, use resolve_live to queue operations for execution by the Resolve internal bridge script, then check the result via resolve_live_status.
Use Cases & Notes¶
dsh-resolve is suited for scenarios requiring automated DaVinci Resolve timeline creation and rendering within DSH, especially editing workflows that already have a declarative spec.
Note: The plugin runs with the permissions of the current dsh process. Review the source code and license before installing. The plugin contains no accounts, tokens, or personal paths, and makes no network requests. It only writes to the output directory, %LOCALAPPDATA%\dsh-resolve\, and Resolve’s scripting directory (can be disabled via installBridgeScript: false).
Limitations¶
The plugin currently does not handle standalone music tracks, title entrance animations, color-grading nodes, speed ramping, or keyframes. These are typically faster to adjust manually in Resolve, or require the Studio direct-connection backend.
dsh-resolve converts declarative specs into DaVinci Resolve timelines, providing a practical path to video editing automation within DSH.
- Plugin directory page: https://www.skillhub.cn/plugins/Lee2277-t/dsh-resolve
- GitHub: https://github.com/Lee2277-t/dsh-resolve