The plugin ecosystem of DeepSeek Harness (DSH) allows for the extension of agent capabilities. The dsh-cursor-dev plugin integrates the local Cursor CLI into this framework. It enables DSH models (the parent model) to delegate coding tasks to Cursor, review the results, and then continue working.
Core Positioning¶
This is a workflow plugin maintained by Dclef. It runs as a DSH sub-coding agent, dispatching tasks to the locally installed Cursor CLI, receiving results, reviewing changes, and proceeding with subsequent work.
The parent model and the model used by Cursor can be selected independently. For example, the parent model can use DeepSeek, while Cursor uses Auto.
Core Features¶
The plugin provides the following key capabilities:
- Sub-agent execution: Runs Cursor CLI as a DSH sub-agent.
- Model selection: Supports independent selection of the parent model and the Cursor model.
- Session continuity: Supports resuming sessions across DSH restarts.
- Progress and diffs: Provides real-time progress and actual file diffs.
- Usage dashboard: Provides a view of Cursor usage/quota.
- Mirrored sub-sessions: Provides mirrored sub-session functionality.
- Tool entry points: Provides three tool entry points:
cursor_code,/cursor-subagent, andcursor_subagent.
Installation and Enabling¶
Install this plugin in the DSH plugin management. The installation source for the public repository is:
git+https://github.com/Dclef/dsh-cursor-dev.git
Users who have already configured the DSH command line can also run the following under their active profile:
dsh plugin add dsh-cursor-dev
The following environment requirements must be met before installation:
- DSH version:
>=0.2.1-rc.2 <0.3.0-0 - Node.js:
^22.19.0 || >=24.0.0 - Cursor CLI: A Cursor CLI that is logged in and able to access the service
Native sub-agent functionality requires DSH’s subagents and agents services; using the DSH desktop app is recommended.
Typical Usage¶
Tool Entry Points¶
cursor_code: The parent model dispatches a complete task, controlling directory, mode, model, session, and reporting. Results return to the parent model./cursor-subagent task content: The user directly dispatches a one-off task. An optional-m modelprefix is supported.cursor_subagent: A DSH-native one-shot sub-agent tool that can run in the background.
Example Invocations¶
Tell the parent model to use cursor_code in DSH:
Please use cursor_code to fix the empty-password validation in the login form, following the project’s existing interaction style.
Or use the slash command directly:
/cursor-subagent Create cursor-cli-check.txt with content "cursor-cli-ok", then read it back to confirm the content. Modify only this file, and report the result at the end.
Configuration and Notes¶
Proxy Settings¶
Cursor CLI does not read the registry; environment variables such as HTTPS_PROXY must be configured. The panel provides proxy settings; if not set, auto-detection is used by default.
Depth Limit¶
maxChildDepth limits the maximum depth that Cursor sub-sessions may reach. It defaults to 1, meaning only the parent agent may create sub-agents. Invocations at depth 0 are rejected.
Data Cleanup¶
Deletion operations clear index records, traces, and mirrored sub-sessions.
Summary¶
By connecting Cursor CLI to DSH, the dsh-cursor-dev plugin provides developers with a way to use Cursor capabilities directly within the DSH environment for coding, refactoring, and bug fixing. With independent model selection and session management, it enables efficient task execution and review.
For more information, see the plugin directory or the GitHub repository.