Introduction¶
In DeepSeek Harness (DSH), most agent interactions still center on the typing area: you have to think carefully about how to describe a task, then sift through tool outputs and lengthy replies. If you want to “talk to the machine, listen and speak at the same time, and delegate the heavy lifting to the main agent for decomposition,” you need to connect the real-time voice layer with DSH’s scheduling pipeline—rather than repeatedly pasting instructions into the chat.
dsh-moss-live (maintained by HudsonHuang, a client-side plugin) addresses exactly this: it adds a phone button next to the composer, opening an in-app call panel. You speak with MOSS-Live in full-duplex mode, and content requiring real execution is handed off to the DSH main agent via dsh_task. The main agent then runs tools, file operations, Shell commands, etc. in sub-agents, and the results are read back to you in voice. It complements the offline transcription skill agent-ear—this plugin does not perform file transcription or precise timeline segmentation, nor does it replace agent-ear’s offline capabilities.
What It Is¶
In one sentence: dsh-moss-live is a MOSS-Live full-duplex voice client plugin for DSH. It provides a thin wrapper around browser-side audio capture/playback and a local relay, separating “talking” from “working”—the frontend handles listening, speaking, and barge-in, while the Harness handles clarification, planning, and scheduling sub-agents.
Ecologically, DSH adheres to the “everything is a plugin” principle; the community directory is listed on the SkillHub plugin page and has no official affiliation with DeepSeek / High-Flyer. The source code and npm package share the same name. The current npm version is 0.1.3, licensed under MIT (see package.json).
Core Features & Division of Labor¶
The data flow during a call (as illustrated in the README) can be summarized as:
you speak ──► MOSS-Live (full duplex, barge-in)
│ dsh_task(objective) ← text only
▼
DSH main agent (decides, clarifies, schedules)
│ spawn
▼
subagent (tools, files, shell, web)
│ final text
▼
MOSS speaks the answer
Responsibilities at each layer:
| Layer | Responsible For | Communication to Next Layer |
|---|---|---|
| MOSS-Live (frontend) | Listening, speaking, barge-in | Single async tool call |
| Relay (this plugin) | API key, protocol translation, call logging | sessionController.prompt + sub-agents |
| DSH main agent | Clarification, planning, scheduling | Sub-agents |
| Sub-agents | Actual execution | Final text |
Two tools are registered per call session:
dsh_task(objective): Forwards a request; the main agent decides how to execute it (immediately, in the background, or scheduled).dsh_tasks(): Summarizes running and completed tasks.
While a task is executing, the user can keep talking; results are announced in voice once returned. If a task exceeds MOSS’s ~120-second tool window, you’ll first hear a “processing” acknowledgment, and the final result will be delivered as narration upon completion. The text relayed back to the voice layer is capped at 2000 characters (README Known limits).
Call recordings are stored locally: each call writes to calls/YYYYMMDD-HHMMSS.md (transcript, dispatched tasks, results) and leaves a one-line path reference in the chat; there is also a multi-day append-only .calls/YYYY-MM-DD.jsonl raw stream.
Installation & Activation¶
Environment Requirements (README Install):
- DeepSeek Harness installed;
- MOSS API key (MOSS Console, model
moss-live-1.0); - Node.js ≥ 22.19 (package.json
enginesis>=22.19.0).
The plugin runs with the current DSH process privileges; please review the repository source code and MIT license before installing.
Option 1: npm Install¶
Package name dsh-moss-live:
npm install dsh-moss-live
In your DSH profile, install the directory as a bundle (use an absolute path):
plugin_manager action=install_bundle target=/absolute/path/to/node_modules/dsh-moss-live
Note: install_bundle links the local directory into the profile via pnpm link: and does not automatically install the npm dependencies within that directory. At runtime, ws and @mossai/mosslive must be resolvable.
Option 2: Plugin Marketplace¶
dsh plugin --profile web add dshmarket
Then install dsh-moss-live from the marketplace.
Configuring the API Key¶
Choose one of the following (README):
- A
.moss-api-keyfile in the plugin directory (single line, recommended permissions 600); - The plugin config field
apiKey; - The environment variable
MOSS_API_KEY.
Reload the plugin line, refresh the DSH page if necessary, and click the phone button next to the composer to open the panel.
Pre-Call Self-Check¶
Run the following in the plugin directory (e.g., node_modules/dsh-moss-live):
npm run doctor
It checks the Node version, required files, ws / @mossai/mosslive resolution, built-in relay module loading, relay port (default 127.0.0.1:17861), and API key. Unless --offline is specified, it also performs a real MOSS WebSocket handshake and attach_session (empty session, no audio). Failures exit with a non-zero code and print remediation suggestions.
Note: doctor does not cover microphone, audio, DSH delegation, desktop-shell iframe injection, or billing quotas. If the key is only in the plugin’s apiKey field and not readable by the CLI, use --key-file <path> or set MOSS_API_KEY before the handshake check.
Configuration Options¶
| Field | Default | Description |
|---|---|---|
apiKey |
— | MOSS API key (overrides file/env var) |
keyFile |
.moss-api-key |
Key file, relative to plugin directory |
listen |
127.0.0.1:17861 |
Local relay listen address |
mossUrl |
wss://api.mosi.cn/v1/realtime |
Upstream WebSocket |
model |
moss-live-1.0 |
Real-time model |
sessionTimeoutMs |
180000 |
Timeout for main agent’s status report when a task runs too long |
Typical Usage¶
- Complete the bundle installation and key configuration as described above; run
npm run doctoruntil relevant items show[ok]. - Refresh the page in the DSH Web profile, click the phone button next to the composer, and authorize the microphone in the panel (in a pure browser context the call page captures audio itself; in the desktop shell
dsh-app://non-secure context, the Harness page captures and passes it to the call page). - State your needs in natural language; small talk can be handled by the frontend model on its own, while other requests are prompt-biased toward forwarding via
dsh_task, with clarification first if information is insufficient. - While a long task is running, keep talking; use voice-side capabilities to query
dsh_tasks()for progress (the tool is already registered on the session). - After the call, check the local
calls/and.calls/directories for records; a path to the current markdown file is also left in the chat.
Use Cases & Limitations¶
Suitable for: Developers who want a unified “real-time intercom + agent execution” experience in DSH, where tasks require sub-agents to run tool chains, and who are comfortable using MOSS-Live as the voice interface (not DeepSeek’s native TTS).
Choosing between this plugin and agent-ear (README):
- Real-time intercom, barge-in, spoken answers → this plugin;
- Pre-recorded audio/video, word-level/event-level timelines, precise segmentation → agent-ear.
Known Limitations (excerpt):
- Only one simultaneous call is supported (single-session relay design).
- Whether the frontend model forwards or clarifies first depends on prompts, not hard guarantees.
- Doctor cannot substitute for real-device call testing.
FAQ (README Troubleshooting summary):
| Symptom | Resolution |
|---|---|
ERR_MODULE_NOT_FOUND: Cannot find package 'ws' |
Run npm ci in the plugin directory, then reload the plugin; npm run doctor will also hint at this |
| MOSS rejects key (401/403) | Check apiKey / MOSS_API_KEY / .moss-api-key for single-line content without line breaks |
| Cannot connect to MOSS | Check network/proxy and mossUrl; run npm run doctor |
EADDRINUSE 17861 |
Change listen to e.g. 127.0.0.1:17862, or free the occupied port |
PUBLIC_WSS_URL_REQUIRED |
mossUrl must be wss:// (loopback ws:// is fine for development), with no credentials/query/hash |
API_KEY_REQUIRED |
Key is empty or contains line breaks |
Conclusion¶
dsh-moss-live uses a relatively thin relay to connect MOSS-Live full-duplex voice to DSH: you speak, the frontend responds in real time, heavy work goes to sub-agents, results come back as voice, and call and task traces are preserved locally. Install via npm or dshmarket; run npm run doctor before going live, and verify your MOSS key and Node version.
- Community directory: https://www.skillhub.cn/plugins/HudsonHuang/dsh-moss-live
- GitHub: https://github.com/HudsonHuang/dsh-moss-live