rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:M4XC117/dsh-work-chat-switch
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
ChatGPT-style switch in the top-left corner of the DeepSeek Harness sidebar, plus an embedded official web chat in the main column.
| Button | Tooltip | What it does |
|---|---|---|
| 聊天 / Chat | 无限制使用 / Unlimited use | Switches the central column to https://chat.deepseek.com/, embedded in a desktop <webview> guest |
| 工作 / Work | 使用API额度 / Uses API quota | Switches back to the Conversation and creates the next blank session with the API-key provider (deepseek-official) |
In the desktop app: open Plugins → Add, paste dsh-work-chat-switch,
and confirm. The bundle inserts one Host row and loads its Client half
immediately, so the Chat / Work pair appears without a restart.
From a terminal, if dsh is on your PATH:
dsh plugin add dsh-work-chat-switch
A checkout can also be installed as a local bundle (Plugins → Add → local path). No build step and no install-script approval is involved: the published tarball is plain JavaScript.
The shipped New Session button is drawn by @deepseek-ai/dsh-client-ui-sidebar
and has no plugin slot. This bundle measures that button, hides it with
visibility: hidden (its layout box stays, so nothing below moves), and draws
the Chat / Work pair in the exact same rectangle from shell.overlay. If the
button cannot be found — another build, a shell without it, or the collapsed
sidebar rail — the original is restored untouched and the plugin draws nothing.
Switching covers the central column with a frosted layer, swaps the view underneath it, and clears the frost: 250 ms hold + 250 ms fade. Both buttons are disabled while the switch runs.
chat.deepseek.com answers with Content-Security-Policy: frame-ancestors 'none',
so it cannot be iframed. The Desktop app creates browser guests only through its
own lease-gated bridge, and this panel uses that same bridge:
dshDesktop.browser.acquire(partitionKey) reserves a guest and returns a
lease plus the approved partition.<webview name="<lease>" partition="<approved>" src="about:blank#<lease>">
is attached; the main process rejects any guest without a matching lease.dom-ready the element navigates to the chat page.The guest is sandboxed, permissionless, download-blocked, and confined to http(s) navigation. The partition is the app's process-lifetime browser storage: a login entered in the panel survives until the app quits and is shared by every Chat panel in that run, but it is not written to disk. That is a property of the desktop browser, not of this plugin.
Work uses the regular Host session API: uiWorkspace.connectWorkspace,
remote.session.selectModel, uiWorkspace.openSession. If no API-key model is
routable, it falls back to the deployment default model and shows a short notice
under the buttons.
package.json declares
engines.dsh >= 0.2.2-rc.1 so a market install can be gated by version.deepseek-official provider). Without one it
falls back to the deployment default model and shows a notice under the
buttons — the session still opens.| File | Purpose |
|---|---|
package.json |
Bundle manifest: patch, Client half, locale and icon exports |
cordis.patch.yml |
Inserts the Host row |
index.js |
Host half — no Host behavior |
client.js |
Sidebar replacement, embedded Chat panel, Work session flow |
locale/*.json |
Plugin Manager display metadata |
icon.svg |
Bundle icon |
MIT. See LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。