DeepSeek Harness 插件

OpenPetsHQ/openpets#dsh

Star 数 ★ 1427 下载量(近 30 天) 854 分类 通知与集成 收录于 2026-08-17 npm @open-pets/dsh

将 DeepSeek Harness 的生命周期状态、错误与审批请求,桥接到本地运行的 OpenPets 桌面伙伴。

安装

# npm 包(预构建)

dsh plugin --profile web add @open-pets/dsh

# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)

dsh plugin --profile web add github:OpenPetsHQ/openpets#path:/packages/dsh

装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。

README

该插件的 README 只有英文版本。

Cordis plugin connecting the DeepSeek Harness (DSH) agent runtime directly to the OpenPets desktop companion.

Features

  • Lifecycle Reactions: Synchronizes DSH agent status (running ⇄ idle), errors, and approval requests with companion emotions.
  • Status Stream Awareness: Extracts ⏵ status lines from assistant stream chunks and displays them in companion speech bubbles.
  • Tool Operation Reactions: Maps bash executions (running), edit/write operations (editing), and read operations (working).
  • Toggleable Configuration: Enable or disable per profile or dynamically via Cordis plugin configuration.
  • Safe & Fail-safe: Automatically sanitizes paths and messages, strips URLs/secrets, throttles speech rate, and isolates IPC failures so the agent loop never stalls.

Installation

Add to your DSH profile or user configuration (~/.dsh/cordis.patch.yml):

- insert:
    - id: plugin-openpets-dsh
      name: '@open-pets/dsh'
      disabled: false
      config:
        enabled: true
        minSpeechIntervalMs: 1200
        enableStatusLineStream: true
        enableToolEvents: true
        enableApprovalEvents: true

Configuration Options

Option Type Default Description
enabled boolean true Master switch to enable or disable listener registration.
minSpeechIntervalMs number 1200 Minimum interval (in ms) between speech bubble notifications.
enableStatusLineStream boolean true Forward ⏵ status lines from assistant stream chunks.
enableToolEvents boolean true React to tool executions (bash, edit, write, read).
enableApprovalEvents boolean true Announce when an approval request is waiting for human permission.

Event Mappings

DSH Event OpenPets Reaction Speech Behavior
agent/status: running thinking Curated thinking speech
agent/status: idle success Curated success speech (suppressed for 5s after errors)
agent/error error Curated error speech
approval/request waiting Curated permission speech
agent/assistant-stream working Sanitized ⏵ status line
tools/result (bash) running Sanitized tool description
tools/result (edit/write) editing Sanitized file action
tools/result (read) working Sanitized read action

License

MIT

内容来自项目 README(GitHub)↗

链接

同类插件

查看整个分类 →

社区评论

评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。