[Enhancement]: Add a DeepSeek Harness integration
Affected area
Framework integrations, Build, packaging, or CI, Documentation or examples
Problem or opportunity
DeepSeek Harness users have no supported way to run on NeMo Relay. The option today is to replay the harness's session log into Relay after the fact. That gives traces, but nothing is managed: a guardrail cannot block a tool call that already ran, and redaction never sees the live request.
DeepSeek Harness has a plugin system with hooks on the model stream (llm/stream) and on tool execution (tools/execute), so a first-class integration in the style of the OpenClaw one is possible.
Proposed enhancement
Add integrations/deepseek-harness, published as nemo-relay-deepseek-harness: a DeepSeek Harness plugin bundle that wraps llm/stream in llmStreamCallExecute and tools/execute in toolCallExecuteAsync, so every model call and tool call, including subagents', is a managed Relay call.
On top of that it would provide:
- the generic plugin host, activated from the plugin's configuration over the usual
plugins.tomllayers, withpii_redactioncredential detectors and per-turn ATIF as defaults only where no layer already decides - editable guardrail rules as a Relay tool conditional-execution guardrail, with one shipped rule that blocks recursive deletion of the root or home directory
- Arize Phoenix tracing through
OpenTelemetrySubscriberwith OpenInference conventions - a conversation view that shows each turn's model and tool calls and what was blocked
- a
nemo_relayagent tool and skill, where changes that loosen protection go through DeepSeek Harness's approval prompt
The implementation is finished and tested, and I am opening a pull request that references this issue. I am filing the issue so the design can be reviewed in one place, as CONTRIBUTING.md asks, and I am glad to change the approach or split the pull request.
Runtime contract and binding impact
No change to the Rust runtime or to any binding's API. The integration is a consumer of the Node.js binding (nemo-relay-node and nemo-relay-node/plugin) and needs the same Node.js version the binding does. It adds one npm package, plus CI and packaging wiring that mirrors OpenClaw.
One observation from building it, outside this request: the Node.js binding aborts the process when a runtime of another major version is already loaded in that process. The integration checks for that before loading the binding, but a load error would be easier for any host to handle. I can file that separately if it is useful.
Alternatives considered
- Replaying the DeepSeek Harness session log into Relay. This works for traces, but calls are not managed, so guardrails cannot block and sanitizers cannot act on the live call.
- Keeping the plugin out of tree. It would work, but it tracks the Node.js binding closely and could not share this repository's CI, release process, and documentation.
Acceptance criteria
- Installing the plugin in DeepSeek Harness routes every model call and tool call through managed Relay execution, with one turn scope per turn and one ATIF trajectory per turn.
- Operator
plugins.tomllayers are honored, and the plugin's defaults apply only where no layer decides. - A rule can block a tool call, and the block is visible to the model and in the trace.
- Tests cover the request and tool projections, the rules, and a run against the real binding, and
just test-deepseek-harnessruns in CI. - Documentation explains installation, defaults, configuration, and troubleshooting, and the support matrix lists the integration.