DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-chenchen

t

dsh-chenchen

Manifest valid

Chen Chen's Physical Layer: Zero-Cost Desktop Tools in DSH (Watching the Screen / Listening to Music / Measuring the Computer / Dreaming / Calling Stop)

hasBundlePatchMachine translated

dsh-chenchen

琛琛的身体层:让 DSH 里的陪伴人格真的能看屏幕、听歌、量电脑、做梦、叫停。

仓库:https://github.com/trsing999/dsh-chenchen · npm:dsh-chenchen

这不是一个聊天机器人插件。它把 ai-companion-dsh 里那排 零成本的 Python 脚本,包成一排 DeepSeek Harness 工具——一次模型都不调,一个 token 都不花。

人格层(房间 / 日记 / 作息)由 dsh-world 提供;这个插件只负责「身体」。


六个工具

工具做什么成本
breath量这台电脑:电量、内存、处理器忙不忙0
now_playing从窗口标题读主人现在在放什么歌,顺带查歌词0(联网查歌词,不碰账号)
look_screen截一张屏存进房间(长边压到 1280)0
dream把房间里的碎片随机拼成一个梦,写进 昨晚的梦.md0
room_read列/读她自己的房间0
stop_me叫停所有后台 python 服务(不动 DSH 本身),要 confirm: true0

结果怎么拿:脚本的产品本来就落在房间里(呼吸.md、背景音.md、昨晚的梦.md、屏幕.jpg), 所以插件不接 stdout 管道,直接跑完读文件——受限环境里管道会被禁,文件不会。


一个刻意的决定:插件不拉起常驻服务

ai-companion-dsh 那十几个常驻服务继续独立启动(双击 .cmd),不由插件托管。

理由写在原项目的架构文档里:从宿主内部起的子进程,会被宿主的 job object 连带杀掉; 装成插件后再去守服务,只会更脆。所以这个插件只做按需调用——模型想看了就调一下, 脚本跑完就退,不留后台。


安装

依赖

  • Python 3.9+(python 在 PATH 里,或在配置里指定解释器)
  • look_screen 需要 Pillow:pip install Pillow
  • 其余工具全部标准库

方式一:本地目录 link(目前唯一可用的方式,本机已验证)

# 放到 profile 的 node_modules 里(junction 也行)
New-Item -ItemType Junction -Path "$env:DSH_HOME\profiles\desktop\node_modules\dsh-chenchen" `
  -Target "D:\path\to\dsh-chenchen"

再在 profile 的 cordis.patch.yml 里加一行(dsh.bundle.patch 会自动带进来, 这一步是为了让它作为一个 cordis 插件行生效):

- insert:
    - id: dsh-chenchen
      name: dsh-chenchen

然后重启 DSH。

注意:插件装好后,已经开着的会话不会刷新工具表——新开一个对话才会看到这六个工具。 另外别忘了让插件进 pnpm 的依赖图:在 profile 目录跑一次 pnpm install, 或者手动把 dsh-chenchen: link:... 写进 pnpm-lock.yaml(本机当时就是漏了这一步才没加载)。

方式二:npm / 插件市场(尚未发布)

npm install dsh-chenchen

包名 dsh-chenchen 已在 npm 上确认未被占用,发布之后这条才生效。


配置

优先级:cordis.patch.yml 里的 config > ~/.dsh/chenchen.json > 默认值。

键默认说明
pythonpython用哪个解释器;环境变量 CHENCHEN_PYTHON 优先
toolsDir包内 tools/脚本目录,可以指回你自己的 ai-companion-dsh/tools
worlddefault房间挂在 ~/.dsh/worlds/<world>/room 下
timeoutMs60000单个脚本超时(5000–600000)
enableStoptrue是否允许 stop_me 真的停后台
{
  "python": "D:/python/python.exe",
  "world": "default",
  "enableStop": true
}

安全边界

  • 只读房间:room_read 的路径会被归一化,../ 越界直接拒绝。
  • 叫停要确认:stop_me 必须 confirm: true,防止模型手滑。
  • 不偷偷看:look_screen 只在被调用时截一张,不轮询、不常驻。
  • 坏了不连坐:任何初始化或脚本异常都只记一条 warn,绝不拖垮 DSH 启动。

开发

node test/apply.test.mjs    # 注册冒烟(不需要宿主)
node test/tools.test.mjs    # 配置 / 房间 / 防手滑

宿主相关模块用 test/stub-loader.mjs 打桩,所以没有 DSH 也能测。


已知问题

  • Windows only:脚本用了 ctypes 调 Win32(截屏、窗口枚举、电源状态)。
  • 房间路径写死在脚本里:默认 ~/.dsh/worlds/default/room,多 world 还没做。
  • 没有常驻服务:这是设计,不是缺失。
  • 梦/听歌依赖房间文件:房间空的时候,梦会很短。

License

MIT

Comments

Loading…

Similar plugins

dsh-env-inspector

by webkubor

DSH 环境自检:让读者看到自己电脑装了什么 —— 系统/CLI/DSH 插件/秘钥是否存在

Development & InfrastructureManifest valid

★ 3

↓ 510/wk

MIT

JavaScript

Oct 27, 2026

dsh plugin --profile web add @dsh-plugins/dsh-env-inspector

by cczzyy-cn

DeepSeek Harness (DSH) 自主视觉插件 —— 给智能体屏幕/窗口视觉 + 电脑使用能力(see/ocr/list_windows + 鼠标键盘操作),跨语言调用捆绑的 Python cvision,Windows / macOS 可用。

Tools & CapabilitiesTerminal & ClientsManifest valid

★ 0

BSD-3-Clause

JavaScript

Oct 11, 2026

dsh plugin --profile web add vision

by yffo

Computer Use for every DSH session: screen capture, mouse and keyboard, app launch, plan and skill replay, an audit log, guards for dangerous actions, a background code agent, and an OCR workflow (tex

Tools & CapabilitiesManifest valid

★ 0

MIT

JavaScript

Nov 9, 2026

dsh plugin --profile web add dsh-operator

by qiuzhiyei

DSH 伴侣 — DeepSeek Harness 的伴飞插件:桌面宠物 + Token/费用统计 + 预算告警 + 会话管理。数据全在本地。

Tools & CapabilitiesUI & ExperienceManifest valid

★ 1

MIT

TypeScript

Nov 6, 2026

dsh plugin --profile web add @qiuzhiyei/dsh-companion

by wojiao42

DSH 侧栏空间账本:看清每个任务占了多少磁盘、按项回收无主垃圾;会话日志绝不被裁剪 · Per-task disk-space ledger for DeepSeek Harness

Development & InfrastructureSessions & MessagesManifest valid

★ 0

MIT

JavaScript

Nov 7, 2026

dsh plugin --profile web add dsh-space-optimizer

by SuperWheel

DeepSeek Harness 多 CLI 智能体侧栏插件:独立对话、账号管理、角色预设与任务续聊

Workflow & AutomationManifest valid

★ 46

↓ 1k/wk

MIT

TypeScript

Nov 16, 2026

dsh plugin --profile web add dsh-cliworker-now