DeepSeek Harness 插件

BolunHan/cc-monitor#dsh-cc-monitor

Star 数 ★ 2 下载量(近 30 天) 1,092 分类 通知与集成 收录于 2026-08-27 npm dsh-cc-monitor

将 DeepSeek Harness 会话活动上报到自托管的 cc-monitor 服务器:Claude Code 与 DSH 会话以彩色状态卡片出现在同一个 Web 仪表盘中,会话需要关注时通过浏览器与 Android 应用通知你。

安装

# npm 包(预构建)

dsh plugin --profile web add dsh-cc-monitor

# Release 预构建包

dsh plugin --profile web add "https://github.com/BolunHan/cc-monitor/releases/download/v0.7.4/dsh-cc-monitor.tgz"

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

dsh plugin --profile web add github:BolunHan/cc-monitor#path:/dsh-cc-monitor

装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。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 只有英文版本。

A host-side DSH plugin that reports session activity to a cc-monitor server. It maps DSH session events to the same normalized hook payloads the server already accepts, then POSTs them to /api/event with agent: dsh.

Install

dsh plugin --profile web add link:/path/to/cc-monitor/dsh-cc-monitor

Then make sure the profile's package.json lists dsh-cc-monitor in dsh.profile.bundles (the dsh plugin add command normally handles this for out-of-tree bundles; verify with dsh --profile web --dump-config).

First npm publish: npm Trusted Publishing can only publish subsequent versions once the package already exists. Publish the first version once from a machine with npm login (npm login && npm publish --access public), then the GitHub Actions trusted-publisher job can publish future versions.

Configuration

Defaults are designed for a local cc-monitor server on 127.0.0.1:9876. Override them with environment variables or a patch entry:

- insert:
    - id: cc-monitor
      name: 'dsh-cc-monitor'
      config:
        # Full override; host/port below are ignored when this is set.
        serverUrl: 'https://192.168.1.100:9876'
        # Or configure host + port separately:
        # host: '192.168.1.100'
        # port: 9876
        uid: 'my-dsh-instance'

If serverUrl is set, port overrides its port. If serverUrl is omitted, host + port are used to build http://<host>:<port>.

Setting Environment Default
serverUrl CC_MONITOR_URL —
host CC_MONITOR_HOST 127.0.0.1
port CC_MONITOR_PORT 9876
uid CC_MONITOR_UID dsh-default
enabled — true

How it maps

DSH event cc-monitor event State
direct user/message UserPromptSubmit working
assistant/message cached, then turn/end → Stop pending_review
tool/call PreToolUse working
approval tool call PermissionRequest pending_approval
tool/result PostToolUse working
session/disposed SessionEnd all_done

内容来自项目 README(GitHub)↗

链接

同类插件

查看整个分类 →

社区评论

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