rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:laowang88888/dsh-birds-screensaver
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
给 DeepSeek Harness 桌面端用的鸟类群集锁屏屏保:空闲后全屏显示 boids 群集动画(3 个鸟群 + 2 只猎鹰),输入密码解锁。
English summary: A boids flock screensaver and password lock screen for the DeepSeek Harness desktop app. Clone, run
node install.mjs, restart DSH. Configurable default password and idle timeout.
▶ 在线预览(GitHub Pages) · 本地预览 preview.html
~/.dsh/local-plugins,通过 junction 挂载,DSH 升级不会覆盖git clone <this-repo> dsh-birds-screensaver
cd dsh-birds-screensaver
node install.mjs # 可选参数见下
然后重启 DeepSeek Harness。右下角会出现一个 🔒 按钮。
install.mjs 幂等地执行两步:
<DSH_HOME>/profiles/node_modules/@local/birds-screensaver → 本仓库目录<DSH_HOME>/profiles/desktop/cordis.patch.yml 末尾追加注册段(已存在则跳过,配置不动)DSH_HOME 默认 ~/.dsh,可用环境变量覆盖。
node install.mjs --profile desktop --password 1234 --idle-ms 180000
| 参数 | 默认 | 说明 |
|---|---|---|
--profile |
desktop |
DSH profile 名 |
--password |
1234 |
默认解锁密码 |
--idle-ms |
180000 |
空闲多久锁定(毫秒,≥10000) |
注册段位于 ~/.dsh/profiles/desktop/cordis.patch.yml 末尾:
- insert:
- id: birds-screensaver
name: "@local/birds-screensaver"
config:
defaultPassword: "1234" # 默认解锁密码
idleMs: 180000 # 空闲锁定时间(毫秒)
改完重启 DSH 生效。
用户改过的密码(localStorage) > defaultPassword > 内置 1234
localStorage 'dsh-birds-idle-ms' > idleMs > 180000
| 操作 | 方式 |
|---|---|
| 锁定 | 点右下角 🔒;或 Ctrl+Shift+L / Ctrl+Alt+L |
| 解锁 | 输入密码 + 回车 |
| 改密码 | 锁屏界面底部「修改密码」(需验证当前密码,新密码 ≥4 位) |
| 自动锁定 | 空闲达到 idleMs |
开发者工具(F12)Console:
localStorage.removeItem("dsh-lock-password") // 回到配置的默认密码
localStorage.removeItem("dsh-birds-idle-ms") // 回到配置的空闲时间
cordis.patch.yml 的 config
│
▼
宿主半 lib/index.js ← 能拿到 Loader config
│ 注册 GET /plugins/birds-screensaver/config
▼
客户端半 lib/client.js ← 拿不到 Loader config,启动时 fetch 拉取
│
▼
锁屏 UI + boids 动画
{ name },客户端插件拿不到 config,所以由宿主半通过 HTTP 路由转交。inject: ["webServer"],用 ctx.webServer.register({ kind: "exact", path, handler }) 注册路由。insert 形式cordis.patch.yml 的语义是:
insert 的行只能覆盖已存在的 entry;- insert:,否则 id 不存在时会被静默跳过(只在日志里 warn,不会报错)。这就是为什么注册段长这样:
- insert:
- id: birds-screensaver
name: "@local/birds-screensaver"
| 现象 | 处理 |
|---|---|
| 重启后没有 🔒 按钮 | 确认 patch 是 insert 形式;确认 junction 存在;node --check lib/*.js |
| 有按钮但快捷键无效 | 用按钮锁定;换 Ctrl+Alt+L;检查是否被其他软件占用 |
| 密码不对 | 先试 1234;清 localStorage['dsh-lock-password'] |
| 空闲不触发 | 清 localStorage['dsh-birds-idle-ms'];确认 idleMs ≥ 10000 |
| 动画卡顿 | 调小 lib/client.js 里的 N(默认 420) |
node --check lib/index.js
node --check lib/client.js
node -e "import('./lib/index.js').then(m => console.log(Object.keys(m)))"
node uninstall.mjs
或手动:删除 cordis.patch.yml 里的 insert 段 + 删除 profiles/node_modules/@local/birds-screensaver 链接。
动画参数都在 lib/client.js 顶部:
| 参数 | 默认 | 作用 |
|---|---|---|
N |
420 | 鸟的数量 |
HAWK_COUNT |
2 | 猎鹰数量(0 关闭) |
FLOCKS |
3 组 HSL | 鸟群配色 |
PERCEPTION / SEPARATION |
64 / 28 | 群集感知 / 排斥半径 |
MAX_SPEED / MAX_FORCE |
2.6 / 0.07 | 飞行速度 / 转向力 |
HAWK_SPEED / HAWK_FLEE |
3.7 / 190 | 猎鹰速度 / 鸟的逃逸半径 |
改完重启 DSH。
这是客户端锁屏:密码存在浏览器 localStorage,本质是 UI 遮罩。
真正敏感的数据请配合系统锁屏(Win + L / Ctrl+Cmd+Q)。
dsh.client)的 DeepSeek Harness 版本ctx.effect / ctx.webServer 公开服务CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。