Keeps the built-in browser window from taking foreground focus or covering other windows: a WinEvent hook daemon sets WS_EX_NOACTIVATE and moves it to HWND_BOTTOM, while pages still load, click and screenshot. Windows only.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:Yyhy110421/dsh-quiet-browser
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
给 DeepSeek Harness 用的窗口行为插件:DSH 的内置浏览器继续工作,但不再盖住你正在用的窗口,也不抢键盘焦点。
DSH 的浏览器工具需要一个真实窗口来加载页面。这个窗口默认会弹到最前;静默浏览在后台盯着它,把它按到所有窗口的最底层,并改成“不激活”窗口。
能力
- 只处理标题以 dsh-browser 开头的窗口,不碰 DSH 主窗口、微信、资源管理器、你开的 Chrome / Edge。
- 窗口仍然存在:页面照常加载、点击、执行 JS、截图。
- 不抢焦点:浏览器窗口不会成为前台窗口,你继续在原窗口里打字。
- 不遮挡:窗口被压到 HWND_BOTTOM,任何普通窗口都在它上面。
- 设置界面:DSH 设置 → 静默浏览,可随时启用 / 暂停。
- 暂停后会清掉“不激活”样式,浏览器恢复普通行为,方便你手动接管或处理验证码。
安装
在 DSH 里打开 设置 → 插件管理器,安装下面任一来源:
github:Yyhy110421/dsh-quiet-browser
file:<本仓库的绝对路径>
装完重启 DSH 生效。
注意:file: 安装是实体拷贝,改完源码要卸载再装才会更新;update 只支持 npm 注册表插件。 本插件不发布到 npm。
配置
设置文件:$DSH_HOME/data/quiet-browser.json(没有 DSH_HOME 时用 ~/.dsh)。
{
"enabled": true,
"pollMs": 200
}
- enabled:是否启用。也可以在设置页切换。
- pollMs:兜底轮询间隔(毫秒,50–5000),默认 200。窗口创建/显示/切前台时由 WinEvent 钩子立即处理,轮询只是兜底。
工作方式
- 插件随 DSH 启动一个隐藏的 PowerShell 守护进程(lib/quiet-browser.ps1)。
- 守护进程用 SetWinEventHook 监听前台切换、窗口显示、标题变化;命中目标就:
- 加 WS_EX_NOACTIVATE,让窗口不能被激活;
- 调 SetWindowPos(HWND_BOTTOM),压到所有普通窗口下面。
- 如果浏览器抢到了前台,守护进程会把上一个用户窗口切回去(SetForegroundWindow,失败再试 SwitchToThisWindow)。
- 插件卸载 / 暂停时,守护进程清掉 WS_EX_NOACTIVATE,窗口恢复正常。
不修改 dsh-builtin-browser,也不修改 DSH 本体。
已知限制
- Windows 创建浏览器窗口的一瞬间可能仍有一帧闪动;守护进程会在窗口显示后立即压回去。若你实测仍明显,请开 issue。
- 目标按标题匹配(dsh-browser 或 dsh-browser [...])。如果你有别的程序故意用这个标题,也会被压到底层。
- 浏览器窗口被压在最底层后,正常情况下会被 DSH 主窗口挡住;这是预期行为。需要看页面时,在设置里暂停,或等任务结束。
- 截图优先走 CDP;窗口被遮挡时 Electron 原生 capturePage 可能失败,插件会自动回退。实测 dsh_browser_screenshot 正常。
- 仅 Windows。
开发
# 查看当前目标窗口与“不激活”状态
powershell.exe -NoProfile -ExecutionPolicy Bypass -File lib/quiet-browser.ps1 -Action status
# 前台运行守护进程(Ctrl+C 退出)
powershell.exe -NoProfile -ExecutionPolicy Bypass -File lib/quiet-browser.ps1 -Action watch -PollMs 100
宿主部分零第三方依赖;窗口操作全在 lib/quiet-browser.ps1(Add-Type + Win32 API)。
License
MIT © 2026 Yyhy110421
Links
More in this category
Tencent/BrowserSkill#dsh-plugin-browserskill★ 10776
BrowserSkill bridge for controlling visible Chrome and Edge Agent Windows from DeepSeek Harness, with native browser tools, accessibility and VOM observations, screenshots, owned multi-session control, and a live Web UI overlay.
DDDMUC/dsh-free-search★ 1756
Free web search for DSH with 42 engines: 6 keyless (DuckDuckGo, Bing, SearXNG, Degoog, AnySearch), 6 key-or-keyless tiers (Exa, Tavily, Keenable, Firecrawl, Parallel, You.com), 5 HTML search pages, and keyed providers from Brave and Baidu to Zhihu, OpenAI and Claude. Failure-classified failover with cooldown and key rotation, allowlist switching, an editable fallback chain, zh/en language pools, Multi concurrent merge, 12 MCP tools and a standalone stdio server, with per-engine keys in settings.
omdsh-dev/dsh-browser#packages/browser/bridge-browser★ 1149
Chrome sidebar extension that lets DSH operate your browser directly, no vision capabilities required.
liustack/modsearch★ 1050
Web search bridge for text-only agents: ask the web or X, get structured JSON evidence (search, fetch, citations).
Fisfzy/dsh-ego-browser★ 588
Drive a real Chrome/Chromium browser from DeepSeek Harness with 35 structured tools for navigation, snapshots, clicks, forms, JavaScript/CDP, screenshots, downloads and tabs; a live sidebar mirrors the page and accepts mouse and keyboard input. It ships a managed CDP runtime, keeps login state across calls, and can import cookies from your everyday Chrome through a companion extension.
regrevia/Envoy#dsh-envoy★ 283
Distill any link into Markdown, a wiki or a knowledge base. Installs per host: DSH -> envoy-dsh; Claude Code/Codex -> envoy@envoy. Douyin/Bilibili video, image posts, WeChat, Xiaohongshu, PDFs, podcasts. Video is read on its own timeline with keyframes and ASR transcripts locatable to \[mm:ss], so the context carries what was said and shown instead of the title and the recommendation rail. On 60 turns with vs without: ends normally with the gaps named 22% -> 92%, times out 68% -> 0% (the A/B is exploratory: different time caps, no human correctness review). On 123 live links 80% came back usable (93% of the pages that answered).
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.