rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:JiayangSUNwinter/dsh-island-bridge
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
把 DeepSeek Harness 的会话状态与待审批操作,投影到 macOS 刘海上的原生灵动岛——审批在岛上直接裁决,点一行跳回那个对话。

并行开几个 Agent 会话时,人常常不在 DSH 窗口前:
dsh-island-bridge 用一颗系统级、原生、数据不出本机的悬浮面板同时盖住这两件事。
| 方案 | 任何 App 前台可见 | 可就地裁决 | 数据出本机 |
|---|---|---|---|
| 系统通知中心 | ✓ | ✗ 第三方 App 不支持交互按钮 | 视实现 |
| DSH 页面内浮层 | ✗ 窗口被遮挡即不可见 | ✓ | ✓ |
| 云中继 + 手机推送 | ✓ | ✓ | ✗ 经第三方云 |
| 本项目(原生刘海面板) | ✓ | ✓ | ✓ 仅 stdio / 同源路由 |
| 待审批 | 并行任务 |
|---|---|
![]() |
![]() |
| 单个任务 | 完成提示 |
|---|---|
![]() |
![]() |
截图取自原生面板本身(Retina 2x):审批时整颗岛只显示待交互内容,正文可滚动、按钮钉在底部;无待交互时显示运行会话行,会话结束后在同一个岛上出一条 24pt 完成提示。
allowed-once / rejected 与原审批瀑布动词一致,不产生额外权限语义。flowchart LR
subgraph DSH["DSH 桌面端进程"]
AW["审批瀑布<br/>approval/request<br/>user-questions/request"]
ST["会话状态<br/>agents · sessions · projections"]
BR["dsh-island-bridge<br/>lib/index.js"]
CL["桌面客户端<br/>lib/client.js"]
RT["同源已鉴权路由<br/>/api/island-navigation/*"]
end
subgraph NATIVE["原生 helper(Swift)"]
P["NSPanel 刘海面板"]
end
AW -- "answerer(prepend + global)" --> BR
ST -- "快照" --> BR
BR -- "stdin JSON 行" --> P
P -- "decision / open" --> BR
BR -- "审批按钮 → 已鉴权通道" --> CL
CL -- "PendingApproval.answer → 原审批动词" --> AW
P -- "点击任务行" --> CL
CL --> RT --> P
CL -- "uiWorkspace.openSession" --> DSH
swiftc 编译并按源码哈希缓存。| 项 | 要求 |
|---|---|
| 系统 | macOS 14+(Apple Silicon 优先;需要带刘海的屏幕效果最佳) |
| DSH | 桌面端 >= 0.2.1-rc.2 |
| 工具链 | Xcode Command Line Tools(首次运行 swiftc 编译原生面板):xcode-select --install |
| Node | ≥ 22(DSH 自带运行时即可,仅测试与脚本用到) |
在 DSH 的插件管理页里从 GitHub 安装 JiayangSUNwinter/dsh-island-bridge,然后重启 DSH。
# 从 GitHub 安装
dsh plugin --profile desktop add github:JiayangSUNwinter/dsh-island-bridge
# 或从本地仓库根目录安装(开发用)
dsh plugin --profile desktop add link:"$PWD"
装完重启 DSH。本仓库按 awesome-dsh-plugin 的收录要求组织(dsh.bundle manifest、screenshots.json、分类与描述),收录后也能在 DSH Market 里一键安装。dsh plugin 会把参数转发给 pnpm,并在成功后把包名写进 profile 的 dsh.profile.bundles;本包的 cordis.patch.yml 经 dsh.bundle.patch 声明,作为组合层随该 bundle 加载。
[island-bridge] 时)以桌面 profile 为例,三处都要在,缺一不生效:
包目录可被解析:~/.dsh/profiles/desktop/node_modules/dsh-island-bridge 指向仓库(软链或 file: 依赖);
~/.dsh/profiles/desktop/package.json 的 dsh.profile.bundles 含 "dsh-island-bridge";
~/.dsh/profiles/desktop/cordis.patch.yml 末尾追加:
- insert:
- id: island-bridge
name: 'dsh-island-bridge'
改完重启 DSH。卸载时逆向删除这三项并重启。
安装位置与运行时文件:
$DSH_HOME/dsh-island-bridge/island-helper # 首次启动自动编译的原生面板
$DSH_HOME/dsh-island-bridge/island-helper.sha256 # 源码哈希缓存,源码变了自动重编
| 操作 | 效果 |
|---|---|
| 点常驻区(绿点 / 橙点) | 展开岛,显示任务列表或审批卡 |
| 点顶部收起 / 点岛外 | 收起;同一审批的状态刷新不会再弹开,新审批仍会展开 |
| 「同意一次」/「拒绝」 | 回传与原审批动词一致的裁决,4 秒未确认允许重试 |
| 「在 DSH 回答」(提问卡) | 打开对应会话去回答,不会被当成工具权限批准 |
| 点任务行 / 审批来源标题 | 唤醒 DSH 并打开该会话(不产生裁决) |
| 复制按钮 | 复制审批全文 |
| 环境变量 | 默认 | 说明 |
|---|---|---|
DSH_ISLAND_DEBUG |
未设置 | 设为 1 后写入诊断日志 $DSH_HOME/dsh-island-bridge/bridge-debug.log |
DSH_HOME |
~/.dsh |
DSH 数据目录,决定 helper 二进制与日志位置 |
$DSH_HOME 下。| 现象 | 处理 |
|---|---|
| 岛上没有面板 | 看 DSH 日志里的 [island-bridge] 输出;确认 swiftc 可用(swiftc --version) |
找不到 swiftc |
xcode-select --install 后重启 DSH |
| 升级插件后面板行为没变 | 重启 DSH,桥接会按源码哈希重新编译 helper |
| 点任务行只唤醒窗口、不跳会话 | 导航只在桌面端(dsh-app: 协议)生效,普通浏览器不消费 |
| 装完插件列表里没有 | 重跑一次 dsh plugin --profile desktop add …,并确认 profile 的 dsh.profile.bundles 含 dsh-island-bridge |
npm test # 32 项 Node/进程/窗口/导航测试 + 55 条原生断言(需 macOS + Xcode CLT)
npm run check # 只做语法检查
npm run build:helper -- --out ./build # 手动编译原生面板到本地 build/
测试直接从源码编译 helper,无第三方依赖;原生断言通过 tests/core-regressions.swift 注入并与面板代码同进程运行。原生集成测试统一使用 --test-protocol:保留实际模型和窗口几何检查,窗口不可见且不安装鼠标监听,不会在桌面弹出“配置检查”等测试提示或与正式岛重叠。可见演示需显式使用 --demo。
目录结构:
.
├─ lib/index.js # 宿主半边:审批 answerer、快照推送、helper 托管
├─ lib/registry.js # 待交互注册表(permission / ask_user_question)
├─ lib/helper-host.js # 单实例 helper 监督(合并重启、退避预算)
├─ lib/approval-relay.js # 绑定同一审批对象后提交,清理DSH与岛两侧状态
├─ lib/navigation.js # 桌面端导航的 wait/ack 路由
├─ lib/client.js # 桌面客户端半边:收到 open 命令后精确打开会话
├─ helper/island-helper.swift # 原生 NSPanel 面板(AppKit + SwiftUI)
├─ cordis.patch.yml # bundle 组合层:向宿主插入 island-bridge 服务
├─ tests/ # Node 测试 + Swift 原生断言
└─ docs/ # 产品需求、显示规格、修复与验收记录
package.json 已声明 os: darwin)。MIT © 2026 JiayangSUNwinter
dsh-island-bridge projects DeepSeek Harness session state and pending approvals onto a native macOS notch panel, so you can approve or reject tool calls without switching back to DSH, and click any row to jump straight into that conversation.
allowed-once / rejected verbs as DSH itself.>= 0.2.1-rc.2, Xcode Command Line Tools.dsh plugin --profile desktop add github:JiayangSUNwinter/dsh-island-bridge
Licensed under MIT.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。