将 DeepSeek Harness 会话活动上报到自托管的 cc-monitor 服务器:Claude Code 与 DSH 会话以彩色状态卡片出现在同一个 Web 仪表盘中,会话需要关注时通过浏览器与 Android 应用通知你。
安装
# npm 包(预构建)
dsh plugin --profile web add dsh-cc-monitor
# Release 预构建包
dsh plugin --profile web add -w "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 |
链接
同类插件
xmanrui/dsh-im★ 3801
通过二维码或机器人凭据将 IM 机器人接入 DeepSeek Harness(支持飞书、微信、钉钉、企业微信、QQ、Slack、Telegram、Discord 和 WhatsApp 共 9 种渠道)。
shaobeichen/dsh-pocket★ 3151
手机远程访问 DSH Web 界面:扫码即用局域网或公网(cloudflared 隧道)访问,实时同屏、移动端适配布局,带设置页管理。
c1overzz/dsh-bili-scroll★ 1473
让你的 DSH 自己刷 B站 —— 读字幕原文挑内容、写日报,遇到值得看的会发评论 @ 你。
OpenPetsHQ/openpets#dsh★ 1407
将 DeepSeek Harness 的生命周期状态、错误与审批请求,桥接到本地运行的 OpenPets 桌面伙伴。
inclusionAI/Avernet#deepseek-harness-channel-bcn★ 610
通过 WebSocket V2 将 DeepSeek Harness 接入 Avernet Bot 协作网络,支持自动注册、Agent 会话隔离、工具调用事件和多 Bot 路由工具。
zaofan-make/dsh-qqbot★ 282
QQ 官方机器人通道(tencent-connect/dsh-qqbot 的增强 fork):群/私聊ai陪聊、富媒体收发、表情包打标入库+检索发图、入群审批/禁言/群发、定时唤醒、QQ 远程审批与提问卡、互动按钮卡、多账号多实例、扩展接口、群友记忆注入、按消息价值唤醒省token、上下文自动压缩、悬浮球设置面板。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。