Install the DeepSeek Harness Plugin¶
Prerequisites¶
- Python 3.10+
- Node.js 22.19 or newer, as required by DSH
- A DSH profile such as
web,tui, orheadless - The
dshcommand available onPATH
1. Install MemSearch¶
The default ONNX embedding provider runs locally and does not require an API key:
The embedding model downloads from Hugging Face the first time it is used and is cached afterward.
2. Add the Plugin to a DSH Profile¶
Install the published npm package into the profile you use:
Replace web with the profile you use, then restart it or start a new session.
Native summary credentials¶
For default summaries with an API key saved on DSH's Models page, give
headless jobs access to saved keys. Add or update this top-level entry in
~/.dsh/profiles/headless/cordis.patch.yml, or ask memory-config to do it.
If you set DSH_HOME, use profiles/headless/cordis.patch.yml under that
directory. Keys exported in DSH's launch environment are already available to
native summaries.
Install from Source¶
Use a local checkout when developing the plugin:
git clone https://github.com/zilliztech/memsearch.git
cd memsearch/plugins/dsh
npm install --omit=peer
dsh plugin --profile web add /absolute/path/to/memsearch/plugins/dsh
The plugin is plain ESM with no build step. Restart the profile after changing the plugin source.
3. Verify the Installation¶
Complete a turn, then open today's file in the project's .memsearch/memory/
directory and check for a summary of what you discussed. If the entry reports
MISSING_CREDENTIAL, check the native summary credentials.
You can also ask DSH to use the registered skill:
In a web profile, look for the compact MemSearch capsule above the composer. Expanding it shows skill candidates and the read-only .memsearch browser.
Plugin Settings¶
The DSH profile settings control capture, recall hints, and summarization.
| Setting | Default | Purpose |
|---|---|---|
captureEnabled |
true |
Capture completed turns into the daily memory journal |
injectEnabled |
true |
Remind the agent to use memory-recall before the first model step when memory exists |
summarizeEnabled |
true |
Summarize turns before writing them |
summarizeMode |
auto |
Use a configured API provider when present; otherwise use a one-shot DSH headless agent |
To override these settings, patch the memsearch row in the profile's cordis.patch.yml:
Embedding, Milvus, and provider settings continue to live in the shared MemSearch configuration. For example, to route DSH capture summarization through a configured provider:
memsearch config set llm.providers.openai.type openai
memsearch config set llm.providers.openai.model gpt-5-mini
memsearch config set llm.providers.openai.api_key env:OPENAI_API_KEY
memsearch config set plugins.dsh.summarize.provider openai
Leave plugins.dsh.summarize.provider unset to use the DSH headless-agent default. Setting a provider selects the direct custom-llm route. See How It Works for the backend behavior.
Optional Maintenance¶
These background tasks are disabled by default:
memsearch config set plugins.dsh.project_review.enabled true
memsearch config set plugins.dsh.user_profile.enabled true
memsearch config set plugins.dsh.memory_to_skill.enabled true
They maintain .memsearch/PROJECT.md, .memsearch/USER.md, and .memsearch/skill-candidates/. Skill candidates remain inert until you choose to install one.
Update¶
Update the package in the selected profile, then restart that profile:
Uninstall¶
Removing the plugin does not delete .memsearch markdown files or the Milvus index.
Troubleshooting¶
- No memory file appears: confirm the plugin mounted in the DSH session log and that
captureEnabledis stilltrue. - The recall skill is missing: restart the profile after installation and confirm
@zilliz/memsearch-dshis present in that profile. - A required command is missing: make MemSearch and Python 3 available on the profile's
PATH.MEMSEARCH_CMDandMEMSEARCH_PYTHONcan select explicit executable paths. For native summaries, Desktop users can enable Manage dsh Command… → Install, or setDSH_CLIto the CLI entry. The bundled Windowsdsh.cmdis supported. Quote paths containing spaces, then restart DSH so it inherits the updated environment. - Summarization reports an unavailable note: inspect the reported dependency or execution error. Once the command starts, check the headless profile's model configuration or the configured
[plugins.dsh.summarize]provider. - The web dock is absent: the dock requires a web profile; capture, injection, and recall still work in TUI and headless profiles.
- First search cannot download the model: pre-cache the ONNX model from an environment with access to Hugging Face, or configure another embedding provider.