๐ dsh-plugin-browser-live
A floating browser panel for DeepSeek Harness
Watch your agent browse the web in real time โ and take the page over with one click.
As your agent drives the web through the Playwright MCP tools
(mcp__playwright_mcp__*) โ or through the browser_* tools of the
tool-browser package, which in desktop-bridge mode drive the app's built-in
browser panel โ a small floating panel at the bottom-right of the Harness
desktop app streams the operation trace, the current page URL,
open tabs, and the latest page snapshot text. One click hands the
current page to the built-in sidebar browser.
Read-only by design, no shell changes, no build needed to install.
โจ Features
|
|
| ๐ก Live mirror |
Folds every browser tool event โ mcp__playwright_mcp__browser_* (Playwright MCP provider) and browser_* (tool-browser, incl. desktop-bridge mode) โ the moment it happens. |
| ๐งญ Current page |
URL, title, and tab strip โ always in sync with the latest browser_snapshot. |
| ๐ Page snapshot |
The model-visible page summary text is shown for quick review. |
| ๐ One-click takeover |
โๆๅผโ hands the current URL to the built-in sidebar browser (ui-sidebar-browser) so you can keep browsing yourself. |
| ๐ Auto-follows sessions |
Mirrors the latest running session automatically; close it and it follows the next one. |
| ๐ Read-only mirror |
Derives only from existing session log events (tool/call / tool/result). No model-visible input added, no extra browser process, session reconstructability untouched. |
| ๐ชถ Self-contained bundle |
Runtime deps are just the client baseline (react, @deepseek-ai/dsh-client-store); CSS is inlined. Install needs no build. |
| ๐ฆ Committed artifacts |
lib/ ships inside the repo; tests/ run on plain Node with zero install. |
๐ฅ UI at a glance
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๐ ๆต่งๅจ้ขๆฟ [ ๆถ่ตท ] โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโ โ
โ โ https://www.deepseek.com โ [ๆๅผ] โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโ โ
โ ( DeepSeek โ ๆทฑๅบฆๆฑ็ดข ) ( ๆๆกฃ ) โ
โ ๆไฝ่ฝจ่ฟน ยท 14 ๆญฅ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ ๐ฑ ็นๅป target=#btn-submit 12:01:03 โ โ
โ โ โจ ่พๅ
ฅ text=deepseek 12:01:01 โ โ
โ โ ๐งญ ๆๅผ็ฝ้กต url=https://โฆ 12:00:59 โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โธ ้กต้ขๅฟซ็
ง (ๆ่ฟไธๆฌก browser_snapshot) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Earlier versions of this feature (the legacy ui-browser) depended on a full
dshDesktop.browser native bridge inside a redesigned desktop shell. Current
shipped builds only expose a lease-based bridge, so that panel cannot be
installed without breaking the UI. This plugin is the redesigned version: it
reads the session event log and works on the shipped 0.2.0-rc.2 desktop app.
๐ฆ Installation
Not published to npm. Install by cloning this repository and linking it into
your DeepSeek Harness profile โ the same flow the Harness plugin manager uses.
Prerequisites
- DeepSeek Harness 0.2.0-rc.2 desktop app
- The agent's browser tool enabled (Playwright MCP, row
browser-use-playwright)
- Node.js โฅ 22 with pnpm (only needed for
pnpm install in the profile)
1. Clone
git clone https://github.com/Akun-python/dsh-plugin-browser-live.git
2. Link the package into your profile
Profiles live under ~/.dsh/profiles/<name>/. For the desktop profile, edit
package.json โ dependencies:
{
"dependencies": {
"@deepseek-ai/dsh-client-ui-browser-live": "link:C:/absolute/path/to/dsh-plugin-browser-live"
}
}
Then, inside the profile directory:
pnpm install
3. Enable the plugin row
Append to cordis.patch.yml:
- id: ui-browser-live
name: '@deepseek-ai/dsh-client-ui-browser-live'
4. Restart
Fully quit DeepSeek Harness (tray icon โ Exit), then reopen. A small
green-dot "ๆต่งๅจ" button appears at the bottom-right of the chat window.
๐ Quick Start
- Click the floating ๆต่งๅจ button to expand the panel.
- Ask your agent to browse, e.g.:
โ็จๆต่งๅจๆๅผ https://www.deepseek.com๏ผๆป็ป้ฆ้กตๅ
ๅฎนโ
- Watch the trace stream into the panel in real time.
- Click ๆๅผ to hand the current page to the built-in sidebar browser and
browse it yourself.
Uninstall
Remove the ui-browser-live row from cordis.patch.yml and the link:
dependency, then restart the app.
๐ How It Works
โโโโโโโโโโโโโโ events โโโโโโโโโโโโโโโโโโโโโโโโ hook โโโโโโโโโโโโโโโโโ
โ Agent โ โโโโโโโโโโถ โ Session event window โ โโโโโโโโโถ โ Browser Panel โ
โ (Playwrightโ โ (tool/call + โ โ (shell.overlay)โ
โ MCP tools)โ โ tool/result) โ โโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโ
- A derived observable (
createBrowserFrameSource) samples the client
sessions catalog and retains the latest running session.
- It subscribes to that session's live event window and folds every
Playwright MCP browser
tool/call into a trace row, and every
browser_snapshot tool/result into the page view (url / title / tabs /
snapshot text).
- The snapshot is published through a bare
client-store source bound into
the panel via the inject hooks compartment โ no subscription machinery
inside React components, no new model-visible input, nothing written back
to the session log.
The bundle loads as a dynamic module-table row
(window.__ModuleLoader__.load) with externals limited to the client baseline
(react, react/jsx-runtime, @deepseek-ai/dsh-client-store).
๐ Comparison
|
Legacy ui-browser |
This plugin |
| Data source |
dshDesktop.browser native bridge |
Session event log |
| Shell dependency |
Requires a redesigned desktop shell |
None โ works on shipped 0.2.0-rc.2 |
| Install today |
โ Would crash the UI |
โ
link: + one patch row |
| Model-visible impact |
โ |
None (read-only fold) |
๐ Project Structure
dsh-plugin-browser-live/
โโโ src/
โ โโโ index.ts # Node half (empty apply)
โ โโโ client/
โ โโโ index.ts # Plugin entry: shell.overlay registration
โ โโโ browser-live.ts # Derived frame source (sessions โ events)
โ โโโ extractors.ts # Pure log-fold logic (zero deps)
โ โโโ BrowserPanel.tsx # Floating panel component
โ โโโ BrowserPanel.module.css # Token-based styles (inlined at build)
โ โโโ contract/slots.ts # shell.overlay slot typing
โโโ lib/ # ๐จ Committed build artifacts (no build to install)
โ โโโ index.js / client.js # Host + module-table browser bundle
โ โโโ types/ # d.ts for type consumers
โโโ tests/
โ โโโ extractors.test.mjs # Plain-Node unit tests (node --test)
โโโ scripts/
โ โโโ build.mjs # Sync/rebuild from a DeepSeek Harness checkout
โโโ .github/workflows/ci.yml # CI: tests + bundle smoke check
โโโ README.md / README.zh.md # Bilingual docs
โโโ ORIGIN.md # Provenance & build constraints
โโโ LICENSE # MIT
๐ง Building From Source
The committed lib/ makes installation build-free. To rebuild it you must
build inside a DeepSeek Harness workspace checkout โ the npm copies of
@deepseek-ai/cordis / @deepseek-ai/dsh-client-store are version-mismatched
with the 0.2.0-rc.2 runtime, so a standalone npm build is not supported.
From a Harness checkout that already contains packages/client/ui-browser-live:
# inside the Harness workspace
pnpm --filter @deepseek-ai/dsh-client-ui-browser-live bundle
Then sync the artifacts back into this repo:
node scripts/build.mjs # copy current built artifacts
DSH_HARNESS_REBUILD=1 node scripts/build.mjs # rebuild first, then copy
scripts/build.mjs resolves the Harness path from DSH_HARNESS_PATH
(defaults to the sibling directory ../deepseek-harness).
๐งช Testing & CI
Unit tests run on plain Node โ no install, no DOM:
node --test
CI (.github/workflows/ci.yml) runs on every push/PR:
unit tests โ bundle smoke check (module-loader wrapper, slot registration,
tool prefix) โ build-script syntax check.
โ FAQ
Q: The panel doesn't show after restart?
Ensure the ui-browser-live row is in cordis.patch.yml and the profile's
pnpm install printed no errors; then fully quit (tray โ Exit) and reopen.
Check the app log for a failed row load.
Q: Does the panel affect what my agent sees?
No. It is a pure viewer over existing session events; nothing is injected into
the model or the session log.
Q: Why no screenshots in the panel?
Screenshots live in the log as attachment references, not inline data-URLs.
The panel currently shows the page snapshot text; attachment-based thumbnail
rendering is on the roadmap.
Q: Can I publish this to npm?
The install path is Git + link: (see README). The package is marked
private: true; publishing to npm requires flipping that off and version
alignment with the Harness runtime.
๐ฃ Roadmap
- Real-time trace & page view mirror
- One-click takeover into the sidebar browser
- Plain-Node unit tests + CI
- Screenshot thumbnails via the attachment API
- Address bar navigation from the panel
- Multi/session switcher when several sessions run in parallel
- Localization through the platform locale dictionary
๐ค Contributing
Contributions, issues, and feature requests are welcome! Open an
issue or a
pull request.
When changing source, rebuild via scripts/build.mjs and keep the tests green
(node --test). See ORIGIN.md for the upstream build contract.
๐ License
MIT ยฉ 2026 akun
๐ Links