dsh-oh-my-pi: Delegating DeepSeek Harness Tasks to a Local oh-my-pi Coding Agent

Introduction

When building agent workflows with DeepSeek Harness (DSH), a common challenge is: how to delegate complex coding tasks to a dedicated local coding agent while maintaining visibility into the process. oh-my-pi is a local coding agent, but DSH itself has no native capability to invoke it. The dsh-oh-my-pi plugin solves this problem: it registers a provider named omp on DSH’s subagent interface and provides a subagent_omp tool for every Agent. With this plugin, you can open an OMP panel from DSH’s left sidebar to view the current configuration, runtime status, and recent run history.

What This Is

dsh-oh-my-pi is a DSH plugin developed by the maintainer Geqiandipan. It delegates DSH tasks to the local oh-my-pi coding agent. The plugin consists of two parts: the Host half registers the provider and tool on the DSH subagent interface; the Browser half provides a panel in the left sidebar that displays provider configuration, runtime status, and recently completed runs. The plugin itself does not install oh-my-pi; it assumes you have already installed Pi CLI and the optional oh-my-pi orchestration extension.

Core Features

  • Subagent Provider: Registers a one-shot subagent provider omp on the Harness subagent interface. Every Agent can invoke the subagent_omp tool to delegate tasks.
  • Left Sidebar Panel: After installation, an OMP entry appears in the left sidebar. Clicking it opens a panel with four sections: delegation configuration, runtime information, recent runs, and usage instructions.
  • Run History: The panel refreshes every five seconds by reading the /omp/status endpoint. Recent run records are stored in $DSH_HOME/storages/omp-runs.json, retaining up to twenty entries, each including ID, status, duration, exit code, and a brief answer preview.
  • Stateless Delegation: Each delegation spawns a brand-new, unsupervised pi session and returns only the final answer. The reasoning process, tool traffic, and stderr output remain in the child process.
  • Flexible Configuration: Through cordis.patch.yml, you can configure timeout, command path, model selection, thinking level, API key, and other parameters.

Installation & Activation

Before installing, make sure you have installed the oh-my-pi CLI and extension:

# Pi CLI
npm install -g @earendil-works/pi-coding-agent

# oh-my-pi orchestration extension (optional but recommended)
pi install npm:oh-my-pi

The plugin itself requires DeepSeek Harness 0.2.2 or later. There are two ways to install it:

From npm:

dsh plugin --profile <profile> add dsh-oh-my-pi

From source:

dsh plugin --profile <profile> add github:Geqiandipan/dsh-oh-my-pi

After installation, restart the host application. An OMP entry will appear in the left sidebar, and the subagent_omp tool becomes available to all Agents.

Configuration

The plugin’s default configuration requires no local paths and simply runs pi from the host PATH. To customize, add the following to the configuration file cordis.patch.yml:

- id: subagent-oh-my-pi
  name: 'dsh-oh-my-pi'
  config:
    providerName: omp
    timeoutMs: 900000
    disposeGraceMs: 3000
    # Every field is optional. Uncomment and fill in your values; no field is required.
    # cliPath: '<absolute path to the pi CLI>'
    # model: '<provider>/<model>'
    # thinkingLevel: '<off|minimal|low|medium|high|xhigh|max>'
    # apiKeyEnv: '<credential name>'

The main configuration options are as follows:

Field Default Description
providerName omp Provider name in the subagent registry.
command pi Executable used when cliPath is empty, resolved via the host PATH.
commandArgs [] Arguments placed before pi’s own flags.
cliPath '' Absolute path to pi CLI’s dist/cli.js. When set, the child process is executed using the host runtime.
nodePath '' Node executable used together with cliPath. Empty means the host runtime is used.
model '' The --model provider/id argument passed to pi. Empty preserves pi’s own model selection.
thinkingLevel '' The --thinking level passed to pi.
extraArgs [] Additional pi flags placed after the plugin’s own flags.
env {} Environment entries that override the sanitized parent environment.
apiKeyEnv '' Environment variable name passed to the child process.
timeoutMs 900000 Wall-clock budget per delegation (milliseconds).
disposeGraceMs 3000 Grace interval between child process interface termination levels (milliseconds).

Credentials

apiKeyEnv names a credential in the Harness credential store (which the Models page writes to). The provider reads it via the credential service and passes it to the child process through that environment variable, so there is no need to copy the key into oh-my-pi’s configuration. If oh-my-pi is already self-authenticated, leave this field empty.

Model

By default, the child process uses the model configured by oh-my-pi itself. Set model to pin the routing for delegated runs—model uses pi’s --model provider/id syntax, and thinkingLevel uses the --thinking level.

OMP Panel

The left sidebar entry opens a page containing four sections:

  • Delegation: Provider name, tool name, pinned model and thinking level, per-run budget.
  • Runtime: The program running in the child process, CLI path, and whether the configured API key resolves.
  • Recent Runs: Completed runs with status, duration, exit code, and a brief answer preview.
  • Usage: How to delegate tasks to the provider.

The page refreshes /omp/status every five seconds. The run list is stored in $DSH_HOME/storages/omp-runs.json (the same directory as the Harness storage service), so it persists across restarts, and each Harness process reads the same records. Up to twenty most recent runs are retained, each containing ID, status, duration, exit code, and a brief answer preview. Credentials are not written there.

Behavior & Limitations

  • Stateless Delegation: Each delegation spawns a brand-new process; it does not resume, restore, or pool.
  • Final Answer Only: The child process’s reasoning, tool traffic, and stderr remain in the child process output.
  • Cancellation & Errors: Cancelled runs have status aborted; failed processes have status error with a brief diagnostic (phase, exit code), and raw protocol dumps are never returned.
  • File Editing: The delegated agent can edit files in the current workspace, and the plugin does not roll back those changes.
  • No Start-Time Capability: The provider does not claim support for start-time capabilities, so it cannot inherit the parent conversation, select its own presets, or enforce depth limits—this is the same one-shot contract as the official Claude Code and Codex subagent packages.
  • Disable & Persistence: Disabling the plugin removes the tool and sidebar entry, but run logs remain on disk until manually deleted.

Use Cases

This plugin is ideal for developers who already use oh-my-pi as their local coding agent while building agent workflows with DeepSeek Harness. When you need to hand off complex coding tasks to oh-my-pi within a DSH session while still wanting to view configuration, run status, and run history from the DSH interface, this plugin is the right fit.

Before installing, review the source code and license (MIT), and ensure your DeepSeek Harness version meets the requirement (>=0.2.2). The plugin runs with the permissions of the current dsh process, so you should review its behavior and permission requirements before installing.

Conclusion

The dsh-oh-my-pi plugin builds a bridge between DeepSeek Harness and the local oh-my-pi coding agent. Through the subagent interface and the left sidebar panel, it lets you delegate tasks, view configuration, monitor runs, and browse history—all within DSH. If you are already using oh-my-pi, this plugin integrates seamlessly into your workflow, enabling DSH to better leverage local coding capabilities.

Plugin homepage: https://www.skillhub.cn/plugins/Geqiandipan/dsh-oh-my-pi
GitHub: https://github.com/Geqiandipan/dsh-oh-my-pi

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

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

Xiaoye