dsh-web-search-ddg
aooyoo
Zero-token DuckDuckGo search provider for the DeepSeek Harness (DSH) web seam — local headless browser, no API key, no m…
PROJECT TOPICS
PROJECT README
DeepSeek Harness 的浏览器端插件:在长对话右侧显示一条导航条,帮你快速检索和跳转到历史回合。
每条横杠 = 一条用户消息(一个回合),不是每条 assistant 步骤 —— 因为工具调用会把一次回复拆成很多步,按回合计才能真实反映对话节奏。
前提:本机已安装并运行 DeepSeek Harness 的 web GUI。下文
<profile>默认是web(可在~/.dsh/profiles/下确认你自己的 profile 名;Windows 上~即C:\Users\<你>)。
# Windows (PowerShell)
git clone https://github.com/nicolas-zhao-4/dsh-reply-nav.git
cd dsh-reply-nav
./install.ps1 # 可选参数:profile 名,默认 web
若 PowerShell 提示执行策略限制,用:
powershell -ExecutionPolicy Bypass -File ./install.ps1
# macOS / Linux
git clone https://github.com/nicolas-zhao-4/dsh-reply-nav.git
cd dsh-reply-nav
./install.sh # 可选参数:profile 名,默认 web
脚本做的事:把插件拷贝到该 profile 的 node_modules/,并把注册行追加到 cordis.patch.yml(已存在则跳过,幂等)。然后刷新浏览器页面即可。
把 dsh-reply-nav 文件夹(含 package.json 和 lib/)复制到 ~/.dsh/profiles/<profile>/node_modules/dsh-reply-nav/
编辑 ~/.dsh/profiles/<profile>/cordis.patch.yml,追加:
- insert:
- id: reply-nav
name: dsh-reply-nav
刷新浏览器页面。
cd ~/.dsh/profiles/<profile>
npm i --no-save --package-lock=false github:nicolas-zhao-4/dsh-reply-nav
然后同样追加方式 B 里的 patch 行,再刷新页面。
http://127.0.0.1:3080/plugins/dsh-reply-nav/client.js 返回 200lib/index.js 是空的 apply(只是为了在 Loader 里"激活");全部 UI 在 lib/client.jspackage.json 里 dsh.client.platform: "web" + exports["./client"] 声明它是一个 web bundledsh-client-modules 扫描 loader 行,把 bundle 编入 window.__DSH_BOOT__,浏览器通过 /plugins/dsh-reply-nav/client.js 加载apply(ctx) 里通过 ctx.slots.inject("shell.overlay", ...) 注册到覆盖层插槽,因此悬浮在页面最上层id 必须与包名一致(dsh-reply-nav),它是浏览器模块表里的模块 id直接编辑 lib/client.js 即可,改完刷新页面生效,没有构建步骤。本仓库本身就是"把一个动态 Cordis 插件持久化为开机自启 bundle"的产物,想了解完整迁移过程可参考 DSH 的 persisting-client-plugins skill。
MIT
deepseek-harness · dsh · dsh-plugin · cordis · ai-agents
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。