rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:qingxingLi/dsh-deepseek-webchat
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
把 DeepSeek 网页版(chat.deepseek.com) 嵌入 DeepSeek Harness (DSH) 桌面端:左侧栏主面板里直接聊天,并让 DSH agent 通过工具向网页版提问。
非官方插件,与 DeepSeek 官方无关。网页版回复属于外部内容,请自行判断。
<webview>,站点 frame-ancestors 'none' 也能正常加载)。zh_CN,登录页与主界面均为中文。--dsw-alias-* 颜色注入网页版,网页版配色跟着皮肤走;浅色/深色切换、skin-center 皮肤切换都会自动同步(约 40 个 alias token,不改你的 DeepSeek 账号设置)。userToken / __appKit_userInfo 到 Harness 窗口的持久 localStorage,下次打开(含重启 Harness)自动恢复,不用反复登录。deepseek_web_ask:agent 把问题发到网页版并取回回复;面板先弹确认条(取消 / 本会话都允许 / 允许发送),批准后才发送。deepseek_web_read:读取当前面板里网页版已显示的对话([user]/[assistant] 逐轮),交给 agent 总结/分析/存档;只读本机页面,不发送、不消耗网页版上下文。deepseek-web-ask + 系统提示段:装好后 agent 自动知道何时该用、怎么用、失败怎么处理。前置条件:DSH 桌面端(Electron,profile 为 desktop)。纯 Web profile 不启用(站点拒绝 iframe 嵌入,且该 profile 没有桌面 webview 租约)。
# 从 GitHub 安装(需要 DSH 的 dsh 命令在 PATH 上)
dsh plugin --profile desktop add "github:qingxingLi/dsh-deepseek-webchat"
# 或本地目录(开发时)
dsh plugin --profile desktop add "link:/absolute/path/to/dsh-deepseek-webchat"
也可以在 DSH 插件管理器里安装本地目录。安装后重启 Harness,或直接在「插件」页启用 dsh-deepseek-webchat。
对 DSH 说类似:
问一下网页版:<你的问题>
让 DeepSeek 网页版回答一下:……
用网页版做三轮追问:先问 A,再根据回答问 B 和 C
deepseek_web_ask 参数:
| 参数 | 类型 | 说明 |
|---|---|---|
prompt |
string | 要发送给网页版的完整问题,支持多行 Markdown,最多 20000 字符 |
流程:agent 调用 → 自动打开/切到网页版面板 → 确认条显示完整问题(90 秒不操作自动取消)→ 允许后填入并发送 → 等待网页版生成完成(最长约 2 分钟)→ 回复作为工具结果返回。
审批选项:
读取一下网页版当前的对话,总结成要点
把网页版刚才的讨论存到工作区 md 文件
deepseek_web_read 参数:
| 参数 | 类型 | 说明 |
|---|---|---|
max_chars |
number | 返回字符上限,默认 12000,上限 60000 |
last |
number | 只读最近 N 条消息,默认 0 = 全部,上限 200 |
返回:[user]/[assistant] 逐轮文本、消息总数、是否截断、页面 URL/标题。只读取页面当前可见的消息(长历史可能只加载了最近一部分),需要面板已登录。
DSH agent
│ deepseek_web_ask(prompt) / deepseek_web_read(...)
▼
Host 半(index.js) Client 半(client.js)
├─ 工具执行,把提问/读取请求放进队列 ├─ 每 2 秒轮询 /dsh-deepseek-webchat/poll
├─ webServer 注册两个同源路由: ├─ ask:打开面板、弹确认条、发送、等回复
│ /dsh-deepseek-webchat/poll ├─ read:读取当前面板 DOM 里的 .ds-message
│ /dsh-deepseek-webchat/result └─ 结果 POST /result 回 Host
├─ 路由用 ctx.connection 做连接鉴权
├─ 注册技能 + 系统提示段
└─ 等 /result 返回结果 ───────────────────────────┘
<webview> 复用桌面壳的 globalThis.dshDesktop.browser 租约(与官方右侧栏「浏览器」同一个机制);主进程批准租约后才允许 attach。dsh-deepseek-webchat.auth.v1)。dshDesktop.browser 桥;纯 Web 模式不可用。--dsw-alias-* 配色 token(半透明面板会压平成接近的实色),皮肤的背景插画不会复制;网页里非 token 的硬编码颜色(如图表)不会变。pbcopy,Windows 用 PowerShell Set-Clipboard,Linux 假定装了 wl-clipboard(wl-copy);命令不可用时网页复制按钮会失败,可先用快捷键复制。dsh-deepseek-webchat/
├── index.js # Host 半:工具、技能、提示段、同源桥接路由
├── client.js # Client 半:面板、webview、审批条、导入、轮询
├── cordis.patch.yml # bundle 行(非 desktop profile 自动禁用)
├── package.json # dsh.bundle / dsh.client 声明
├── locale/{zh,en}.json # 插件名与描述
├── skills/deepseek-web-ask/SKILL.md # 内置技能
├── icon.svg
└── LICENSE
@deepseek-ai/dsh-client-ui-sidebar-browser(本插件复用它的 webview 租约机制)。MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek、deepseek-harness。