rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
PROJECT README
一个 DeepSeek Harness(DSH)Web 客户端插件:点一下聊天输入栏的 🌸 按钮,用一张会发光的「星图」告诉你 —— 任务进行到哪一步、如何继续、面前有哪些分支。 而这张图,可以由 AI 一句话长出来,也可以跟着 AI 干活实时点亮。
GET /task-flow/advance 接口自己推进星图(已通过 system prompt 协作协议告知模型);你在星图上也能一键「⚡ 交给 AI 执行」已完成/总步数 与最近使用时间;旁边的 📚 按钮展开任务历史(切换 / 改名 / 导出 / 删除 / 整库导入导出)<DSH_HOME>/storages/task-flow-library.json,换浏览器 / 换 profile / localStorage 被清也能把过往任务合并回来(打开面板自动拉取)已完成/总步数 与最近使用时间;旁边的 📚 按钮展开任务历史(切换 / 改名 / 导出 / 删除 / 整库导入导出)<DSH_HOME>/storages/task-flow-library.json,换浏览器 / 换 profile / localStorage 被清也能把过往任务合并回来(打开面板自动拉取)Q 开关、Esc 关闭prefers-reduced-motion① 一句话长出星图 —— 面板输入目标 → DSH 默认模型自动拆解 → 星图逐颗绽放:

② Agent 干活,星图点亮 —— Agent 通过 /task-flow/advance 接口自动推进,节点逐颗点亮,失败步骤红色告警:

③ 任务历史 —— 点标题右侧的箭头展开过往任务:带进度、节点数与最近使用时间,可切换 / 改名 / 导出 / 删除:

三张动图由仓库里的
scripts/record-demo.mjs自动录制(真实点击、真实模型、真实advance接口), 原始帧存在.demo-frames/,想换清晰度或体积可以只重编码不重录:node scripts/encode-demo.mjs。
dsh plugin --profile web add github:wqy-cell/dsh-task-flow
安装完成后重启 dsh web,刷新页面即可在聊天输入栏左侧看到 🌸 按钮。
<DSH_HOME>/profiles/web/plugins/dsh-task-flow/package.json 增加依赖 "dsh-task-flow": "file:./plugins/dsh-task-flow"cordis.patch.yml 增加:- insert:
- id: task-flow
name: dsh-task-flow
pnpm installdsh web,刷新页面dsh.client 声明 platform: web, immediately: true)dsh-task-flow:v2,旧 v1 数据自动迁移并备份),无遥测、无第三方服务;同时镜像一份到你自己的 DSH 数据目录 <DSH_HOME>/storages/task-flow-library.json(只在 127.0.0.1 的本机服务内读写,用于跨浏览器/跨窗口找回过往任务)/task-flow/events 轮询)dsh-task-flow/
├── package.json # dsh.client 声明(platform: web, immediately: true)
├── cordis.patch.yml # dsh plugin add 使用的挂载声明
├── LICENSE # MIT
├── lib/index.js # host 半边:/task-flow/ai-plan、advance、events、state、library(任务库)
├── lib/client.js # 浏览器半边:数据模型 + 星图渲染 + 编辑器 + AI 面板 + 执行流 + 主线星 + 任务历史
├── docs/schema-v2.md # 流程数据契约 v2(迁移规则 / 校验规则)
├── scripts/ # 开发辅助:record-demo(录演示动图)/ encode-demo(重编码)/ gif-encoder / push-to-github
├── sync-plugin.ps1 # 开发辅助:工作区源码同步到线上装载目录
└── test/ # 离线自测:mock-boot.cjs(客户端)+ mock-host.cjs(host 路由)
任务库(localStorage dsh-task-flow:v2 + <DSH_HOME>/storages/task-flow-library.json)遵循三条不变式:
updatedAt 更新的那份,其余任务原样保留;因此旧副本永远无法抹掉新任务;deleted[id] = 时间戳,比该任务最后一次更新更晚,别的窗口即使还留着这份任务也推不回来;dsh-task-flow:v2-corrupt,并尽力抢救出其中完整的流程;本地写入失败(配额等)会在面板上直接显示,不再静默丢数据。流程 JSON 格式(导入/导出同构,schema v2):
{
"title": "流程名",
"schema": 2,
"meta": { "origin": "manual", "planPrompt": null },
"nodes": [
{ "id": "n1", "kind": "task", "title": "步骤名", "desc": "说明", "how": "如何继续", "est": "10 分钟", "tags": ["标签"], "next": "n2", "exec": { "mode": "agent", "linked": false } },
{ "id": "n2", "kind": "choice", "title": "分支节点",
"branches": [ { "label": "分支名", "hint": "推荐说明", "to": "n3a", "difficulty": "低" } ] },
{ "id": "n3a", "kind": "milestone", "title": "里程碑" }
],
"history": [ { "n": "n1", "kind": "task", "ts": 1234567890, "source": "user", "note": null } ]
}
客户端自测(模拟 DSH 环境 + 真实 react SSR):
node test/mock-boot.cjs
host 半边路由自测(LLM / 校验 / 重试 / 事件总线全场景 mock):
node test/mock-host.cjs
测试通过 DSH_TEST_NODE_MODULES(或 DSH_HOME,默认 ~/.dsh/profiles/node_modules)定位 React 等真实依赖:
$env:DSH_TEST_NODE_MODULES = "你的/dsh/profiles/node_modules"
node test/mock-boot.cjs
lib/client.js 后无需重启,DSH 的 HMR 通道自动热更新(刷新页面即拿到新 bundle);修改 lib/index.js(host 半边)必须重启 dsh websync-plugin.ps1 把工作区源码同步到线上插件装载目录(多副本一致性)restart-dsh-web-now.bat(桌面另有副本「重启任务星图服务.bat」)会结束监听 3080 的进程、再经桌面快捷方式重新拉起 dsh web,并把结果写进 restart-now.log。之所以要手工双击:DSH 沙箱会在一次命令结束时回收它的整棵进程树,任何「活得比 dsh web 更久」的重启脚本都会被一起带走conversation.input.dock)、主题皮肤(星轨/霓虹)、成就徽章、模板库、步骤计时/专注模式A DeepSeek Harness (DSH) web-client plugin: click the 🌸 button next to the chat input, and a glowing star map shows where the task is, how to continue, and which branches lie ahead — with the twist that the map can be grown by AI from one sentence and lights up live while your agent works.
GET /task-flow/advance (a cooperation protocol is embedded in the planner's system prompt)prefers-reduced-motiondsh plugin --profile web add github:wqy-cell/dsh-task-flow
Then restart dsh web and refresh.
dsh-task-flow:v2, auto-migrated from v1 with backup); no telemetry, no third-party servicesSee the Chinese sections above — the flow JSON contract is documented in docs/schema-v2.md, and both offline test suites (test/mock-boot.cjs, test/mock-host.cjs) run with plain node.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。