Mobile PWA and IM remote control for DSH: concurrent desktop/mobile approval and user-question race, AES-256-GCM E2EE v2 transport over Fetch SSE, read-only workspace git diff review, remote session/model/permission switching, and bidirectional IM cards for Bark, Telegram, Feishu, and WeCom. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-silkline
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:yangdw2024/dsh-silkline
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
让 Agent 在工作站放飞干活,把牵引丝线握在口袋里。
面向 DeepSeek Harness (DSH)0.2.x的零客户端安装、跨公网/内网 E2EE v2 安全直连、桌面/手机双端并发审批与提问竞速、以及 Bark / Telegram / 飞书 / 企业微信双向卡片的原生 Cordis 插件 Bundle(MIT 开源协议)。
核心特性
- 旗舰级自适应 Mobile PWA(对标原生客户端手感):
- 三态自适应布局与双主题/多强调色:
<840px移动端支持侧滑手势抽屉与虚拟键盘适配(visualViewport),≥840px平板/横屏自动常驻左侧会话与 Todo 栏;支持深/浅双主题与 3 套强调色切换; - 流式性能与安全渲染:接入
agent.status、projection.changed(实时 Todo 清单)、turn.ended与assistant.stream(支持thinking思考过程扫光与完成后自动折叠);内置 XSS 免疫 Markdown + 代码块一键复制 +diff语法着色;tool/call与tool/result按callId配对折叠成单行胶囊;智能吸底滚动、排队消息实时转插话/撤回、会话搜索与多条并发审批/提问队列切换; - 全链路 Fetch SSE + E2EE v2:使用
Authorization: Bearer+ReadableStreamSSE 指数退避续传(动态携带最新sinceSeq)与 RTT 延迟探测;GET/POST/SSE 全程支持X-Silkline-Proto: 2(AES-256-GCM),支持“公共设备仅会话期保存”。
- 三态自适应布局与双主题/多强调色:
- 桌面端「设置 → 丝鸢 Silkline」与侧栏快捷弹层:
- 点击左下角丝鸢图标即开快捷控制台(一键切换模式、待处理审批直达批准/拒绝、在线设备统计、直接生成扫码 QR);
- 设置页支持穿透热切换(LAN / Tailscale Serve / Cloudflare Tunnel)、连通性自检(含 Tailscale Serve 端口核验)、一键导出脱敏诊断快照、设备在线状态与 L1–L3 权限实时调整、IM 表单防轮询覆盖、降噪开关(
highRiskOnlyForBark)及一键测试推送。
- 离席高频控制能力(RBAC 分级保护):
- L1 只读工作区变更审阅:手机端在批准高危操作或
git push前直接查看git status与统一 Diff; - L2/L3 远程新开会话、模型与权限预设切换(完整对齐 DSH
0.2.2session/modelCatalog、session/selectModel、permissionPresets.set)。
- L1 只读工作区变更审阅:手机端在批准高危操作或
- 双端并发竞速审批(
concurrent默认模式)与userQuestions/plan-review桥接:保留companion/takeover模式、400 条callId日志回扫、facts高危摘要与原子级“附言驳回”。 - 双向 IM 卡片闭环:支持 Bark(高危分级强提醒)、Telegram Bot(Webhook / 长轮询 + 内联按钮 + 回复附言驳回)、飞书交互卡片与企业微信 Webhook。
安装方式
方式一:从 npm 一键安装(推荐)
dsh plugin --profile web add dsh-silkline
方式二:从 GitHub 安装
dsh plugin --profile web add github:yangdw2024/dsh-silkline
方式三:本地零侵入 --patch 热调试
dsh --profile web --patch /绝对路径/dsh-silkline/cordis.dev.yml
安装激活后,打开 DSH 页面右上角 设置 → 丝鸢 Silkline(或点击左下角丝鸢图标)即可点击「生成配对二维码」或配置 IM 通道。
无头服务器(SSH / Docker)配对确认
curl -X POST http://127.0.0.1:3091/api/v1/host/pairings/confirm \
-H "Content-Type: application/json" \
-d '{"otp":"123456","level":3}'
安全模型与文档
运行测试与校验
npm test
npm run verify
License
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-remote-web-ui★ 10703
Remote control of a dsh web workspace from phone or PC: QR-code pairing through a token-gated channel, SSE real-time sync, and separate mobile and full desktop GUI modes.
zhu1090093659/dsh-web#packages/dsh-ssh★ 10703
SSH ops panel for DSH: web terminal, SFTP transfer with progress, local port forwarding, and one-command cluster execution across hosts; agents share the same host config.
liguobao/ds-harness-remote★ 4109
Multi-device remote access for DeepSeek Harness and supported coding workspaces through an end-to-end encrypted channel, with adaptive Relay/WebRTC transport, device authorization, workspace files, read-only previews, terminals, and optional Codex Remote.
saya-ch/dsh-mobile★ 1033
Access DeepSeek Harness from the Android app or a mobile browser with secure LAN and remote connections, persistent device pairing, and a customizable mobile interface.
WNLUO/dsh-mobile-plugin★ 536
The DeepSeek Harness app lets you use the DeepSeek Harness on this computer or server from your phone. Phones and tablets both work, on Android and iOS. On your phone you can keep chatting, look at files and manage plugins, and the machine you are using can also connect to DeepSeek Harness on your other machines and open each one separately.
uumit-ai/dsh-uumit-remote★ 534
Open dsh web from your phone or another computer through a UUMit account, without running your own server or installing another program: a built-in tunnel client connects to UUMit's hosted tunnel, and a panel in the sidebar handles pairing and who can use it (only you, people you invite by link or phone number, or everyone), with revocation. Requires dsh web on DSH >=0.2.1-rc.2.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.