dsh-nanobot-subagent-link: Integrating NanoBot as a Subagent into DeepSeek Harness

Overview

DeepSeek Harness (DSH) adopts a plugin architecture. When it is necessary to invoke a locally running AI agent within the DSH workflow, the cost of manual integration is relatively high. The dsh-nanobot-subagent-link plugin provides a ready-made bridging solution. It allows DSH to delegate an independent subtask to a local NanoBot for execution via the nanobot_run tool and returns the execution result to the Harness workflow.

Plugin Role

  • Name: dsh-nanobot-subagent-link
  • Owner: 2025Bigeye
  • Core Capability: Registers a local NanoBot instance as a sub-agent for DSH. DSH passes self-contained subtasks to NanoBot via tool calls; NanoBot executes them using its own tools and context, returning only the final answer.
  • Support: The plugin registers the nanobot_run tool, the nanobot-run runtime skill, and corresponding prompt sections, enabling new sessions to discover this capability directly.

Installation and Prerequisites

Ensure the environment meets the following conditions before installation:
* DSH Web version is 0.1.0-rc.6 or higher.
* A local nanobot CLI is installed and available in the PATH environment variable.
* Windows systems must use PowerShell.

Run the following command to install:

dsh plugin --profile web add dsh-tool-nanobot

Once the installation is complete, restart the dsh web service to make it available.

Usage Modes

DSH automatically invokes the nanobot_run tool, supporting two invocation modes that can be switched via configuration:

  1. oneshot (Default Mode)

    • Each task launches an independent nanobot agent process.
    • Executes the command nanobot agent -m <prompt>.
    • Characterized as stateless, suitable for executing independent tasks unrelated to the context.
  2. server Mode

    • Launches a persistent nanobot serve service, providing an OpenAI-compatible /v1/chat/completions endpoint.
    • Command: nanobot serve.
    • Characterized by faster response times; the plugin automatically terminates the service process when DSH is closed.

Configuration

Locate the nanobot namespace in the DSH settings interface for configuration:

Field Default Value Description
mode oneshot Default invocation mode: oneshot or server
oneshotCommand nanobot agent -m "{prompt}" --no-markdown Single-run command template; must contain a {prompt} placeholder
serverBaseUrl http://localhost:8900 Address in server mode (local loopback only)
serverStartCommand nanobot serve Command used to start server mode
serverModel (Empty) Model name sent to the server; if left empty, the server decides

Security and Execution Mechanism

The plugin incorporates multi-layered security protections and execution controls:
* Command and URL Injection Protection: Command templates and server Base URLs are sourced exclusively from trusted user settings, eliminating any injection surface controllable by the model.
* Network Isolation: Server mode enforces a loopback whitelist, ensuring API keys are not transmitted outside the host.
* Sandboxing and Approval: Supports sandbox-aware execution, implementing an approval escalation mechanism combined with sandbox_permissions and justification.
* Resource Cleanup: Upon disposal, the plugin automatically truncates output and terminates any started server processes.

Notes

  • This plugin runs with the permissions of the current DSH process. Please verify its source code and license before installation.
  • In a Windows environment, the plugin relies on PowerShell’s Shell Service to execute commands.
  • This is a community-maintained project and is not officially affiliated with DeepSeek or High-Flyer Quant.

Ecosystem Background

DSH’s philosophy is “Everything is a Plugin.” Community directories (such as SkillHub) are independent sites and are not affiliated with any official app store.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye