HuanLinOTO/dsh-plugin-spur
聊天流中悬挂皮鞭,甩动鞭梢(>2.0 px/ms)即向 agent 发送“开工!”消息
Project Overview项目介绍
This is a native plugin built exclusively for DeepSeek Harness (DSH) that adds an interactive physics-simulated whip overlay to the chat interface. The whip is anchored to the top-right corner of the viewport as a fixed-position SVG layer. Only the tip of the whip is interactive; users can click and drag it to swing, and if the release speed exceeds a 2.0 px/ms threshold, the plugin automatically sends a "go work!" prompt to the active agent. It can be installed directly from npm via the DSH CLI with no additional configuration required.
The plugin preserves user workflow by saving any existing draft text in the input bar before submitting the "go work!" prompt. Once the prompt transaction is complete, it automatically restores the original draft so users do not lose any work they had in progress. This makes it ideal for users who want to quickly trigger an existing ad-hoc task without interrupting their current draft. The whip continues swinging with damped oscillation after release until it comes to a rest, adding a casual fun interactive touch to the DSH chat interface.
The plugin follows DSH plugin architecture conventions with a single bundle containing two entry points for host and client code, and the physics engine is split into a separate module for easier unit testing. Development requires the pnpm package manager, and pre-built library files are committed to the repository so no post-install build step is needed for source-based installations. There are three known current limitations: there is no idle swing animation, the anchor position is fixed to the viewport corner, and the speed threshold is hard-coded and not configurable. The license for this project is not explicitly declared.
这是一个专为 DeepSeek Harness (DSH) 开发的原生插件,会在视口右上角添加一根用 Verlet 物理引擎模拟的可交互辫子(皮鞭)。插件将辫子作为 SVG 固定叠层渲染,只有辫梢圆点允许点击抓取,其他区域不响应鼠标事件。拖动辫梢后释放,若释放速度超过预设阈值,会自动向 Agent 发送「go work!」指令鞭策其工作,可通过 DSH 命令行从 npm 直接安装,无需额外配置。
当用户在 DSH 聊天会话中编辑了较长的提示词草稿,想要临时让 Agent 优先处理其他任务,只需抓住辫梢快速甩动释放,插件就会自动保存当前输入草稿,提交「go work!」指令,等指令处理完成后再恢复原草稿,不会破坏用户正在编辑的内容。适合需要临时触发 Agent 任务又不想丢失当前输入内容的开发者使用,辫子释放后还会保持阻尼摆动直到静止,交互效果灵动有趣。
该插件采用单包双入口架构,物理引擎部分独立拆分出来方便开发者进行单元测试,开发依赖 pnpm 包管理器,预构建产物已经提交到代码仓库,源码安装时无需额外构建步骤。目前存在三个已知限制:无空闲摆动动画、锚点位置固定不可改、甩动速度阈值硬编码不可配置,许可证未明确声明。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-plugin-spur(HuanLinOTO/dsh-plugin-spur)
仓库:https://github.com/HuanLinOTO/dsh-plugin-spur
本站详情页:https://www.yhbd.top/plugins/huanlinoto-dsh-plugin-spur/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 NOASSERTION · ⭐ 5 · 最近提交 2026-09-04 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 5 stars - very few users, little community feedback星标只有 5,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add @huanlin/dsh-plugin-spur
把 HuanLinOTO/dsh-plugin-spur 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-spur
小鲸鱼不听话?抽就完了。
一根悬挂在 DSH 聊天流中的辫子(皮鞭)。抓住辫梢甩动——速度足够快时,向 agent 发送一条 go work! 消息,鞭策它去干活。
功能
- Verlet 物理引擎渲染的辫子,作为
position: fixed的 SVG 叠层,锚定在视口右上角,垂入聊天区域。 - 辫梢圆点是唯一可抓取的元素(在整体
pointer-events: none的叠层上设为pointer-events: auto)。 - 鼠标按下 → 辫梢锁定到光标;鼠标移动 → 跟踪速度(指数移动平均);鼠标释放 → 带末速度释放。
- 释放速度超过阈值(2.0 px/ms)时:
- 保存当前输入草稿。
inputActions.setDraft('go work!')inputActions.submit()- 提交事务完成后(phase 回到
plain)恢复原草稿。
- 释放后辫子继续摆动,阻尼振荡直至静止。
架构
单 bundle 双入口(host . + 浏览器 ./client + invariant ./invariant),仿照 yet-another-subagent。
- 宿主半边(
src/index.ts):空apply——纯客户端插件。 - 浏览器半边(
src/client/index.ts):注册conversation.composer.docklist slot(iddsh-spur,order 50)。dock 是编辑器卡片下方的条带;辫子本身是position: fixed的 SVG 叠层,通过createPortal挂载到document.body。 - 物理引擎(
src/client/physics.ts):Verlet 积分绳索 + 距离约束。与 React 组件分离,便于单元测试。
Slot 选择
conversation.composer.dock(list,session 作用域)——编辑器卡片下方的条带,由 ui-conversation 拥有。session 作用域意味着辫子仅在 session 活跃时渲染(hero 模式自然隐藏)。dock 条目从框架接收 InputZone(owner)+ SessionStandardProps(useInput、inputActions)。
消息发送
插件使用 session 的输入机来发送消息——与 InputBar 相同的路径:
inputActions.setDraft('go work!')
inputActions.submit()
覆盖前先保存当前草稿,提交事务完成后恢复,确保用户的在途文本不被破坏。
开发
pnpm install # 安装开发依赖
pnpm run typecheck # tsc --noEmit(通过 ../dsh 解析 DSH 源码)
pnpm test # vitest run(物理引擎单元测试)
pnpm run build # tsc + tsdown → lib/index.js, lib/invariant.js, lib/client.js
基于 DSH checkout 类型检查
tsconfig.json 继承 ../dsh/tsconfig.base.client.json,继承其 paths 映射到同级 DSH checkout 的 packages/*/*/src。需在 ../dsh 是 DSH checkout 根目录的同级布局下运行 typecheck。
预构建 lib/
lib/ 随仓库提交(与 dsh-web-ui-notify / dsh-activity-plugin 相同模式),git 安装时无需 prepare 脚本。开发时改动源码后跑 pnpm run build(或 pnpm run bundle:client)重建 lib/,再提交。
安装
# 从 npm 安装(推荐):
dsh plugin --profile web add @huanlin/dsh-plugin-spur
配置
无配置。session 活跃时辫子始终存在。
已知限制
- 无空闲摆动动画。 未交互时辫子垂直悬挂。可通过在锚点上施加周期性正弦力来添加空闲摆动。
- 锚点位置固定在屏幕(右上角)。 未来可将辫子附着到编辑器右边缘,随滚动/resize 跟踪位置。
- 甩动阈值硬编码。 速度阈值(2.0 px/ms)不可配置。改为
Config字段可按部署调优。
设计参考
- 插件开发规范:
plugin-development-guide.md - DSH Native UI slot 速查:
DSH-Native-UI.md - Verlet 绳索物理:标准游戏物理技术(参见 Thomas Jakobsen《Advanced Character Physics》)
liangmianya/dsh-synapse
alaliqing/claude-paper
acryldev/acryl
omdsh-dev/dsh-annotation
Anionex/dsh-turn-rewind
Tyan66666/billion-context-dsh
qkycir-123/dsh-run2skill