DeepSeek Harness Plugin

Jessie-1939/whalepal#dsh-bridge

Stars ★ 0 Category Just for Fun Added 2026-10-10

Bridges DeepSeek Harness agent state (status, tool calls, errors, approval waits) over loopback to WhalePal, a standalone desktop pet app, so the desktop pet follows the real agent state instead of guessing from screenshots.

Install

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:Jessie-1939/whalepal#path:/packages/dsh-bridge

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README

Pushes DeepSeek Harness (DSH) agent state to WhalePal, a standalone desktop pet app. WhalePal is its own Electron desktop-pet application (installed separately); this plugin only feeds it the agent state. With this plugin the pet no longer has to guess from screenshots: she knows when the agent is thinking, which tool it is running, when something failed, and when it is waiting for your approval. WhalePal works fine when DSH is closed — the two are independent.

What it does

It subscribes to public DSH events and POSTs a small state payload to a loopback address:

DSH event State sent to WhalePal
agent/session-start session-start
agent/status busy / idle
tools/pre-execute tool (tool name + a command/path snippet cut to 90 chars)
tools/result tool-done / error
agent/error error (short error summary)
agent/turn-stopping turn-end
approval/request waiting-approval

Install

# from npm (once published)
dsh plugin --profile web add dsh-whalepal-bridge

# or straight from GitHub (subpackage of the monorepo)
dsh plugin --profile web add github:Jessie-1939/whalepal#path:/packages/dsh-bridge

Then restart dsh web. On the WhalePal side, keep 设置 → 陪伴 → "DSH 桥接(本机回环)" enabled (default on, port 8787).

Uninstall:

dsh plugin --profile web remove dsh-whalepal-bridge

Privacy

  • Loopback only: normalizeEndpoint() rejects anything that is not 127.0.0.1 / localhost, and the plugin refuses to send at all in that case;
  • No message content: only the tool name plus a 90-char command/path snippet;
  • No telemetry, no cloud calls, no files written;
  • When WhalePal is not running it fails silently (at most one debug log per 5 minutes) and never affects DSH itself.

License

MIT.

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.