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
把一条「发散想法」投进一个安静的独立新会话,不触碰主线上下文、不切主线视图。
Ctrl+Shift+K 或右下角「⚡ 捕获」浮标呼出,可拖拽,深色模式适配。dsh-capture/
├── src/host/index.ts host 引擎:/recall 命令(近10条压缩 → 新建会话 → inject+followup)
├── src/client/index.ts 捕获窗 + 对话视图(官方 connection.api 数据层)
├── tsconfig.json host 编译(tsc → lib/index.js)
├── tsdown.config.mjs client 打包(→ dist/client.cjs)
└── install.ps1 构建/安装/接线/重启提示
main: lib/index.js),由 cordis 插件 loader 加载。注册 /recall 命令,负责压缩、建会话、注入上下文(这些需要 host 侧的 llm.stream 与 agent.inject)。dsh.client 声明 + exports["./client"](dist/client.cjs),走官方 ctx.connection.api(sessions.history/prompt/models/selectModel、llm.*、events.host/mux)与 connection.rpc(选择模式由 host 侧过滤消息,避免下发 chunk 碎片),无私有 harness RPC。dsh plugin --profile web add dsh-capture-window
(dsh 即 npx @deepseek-ai/dsh。)装完重启 npx @deepseek-ai/dsh web,按 Ctrl+Shift+K 呼出捕获窗。
原理:本包声明了
dsh.bundle.patch,dsh plugin add会自动把它注册进dsh.profile.bundles,无需手动改cordis.patch.yml。
cd dsh-capture
.\install.ps1
脚本会:装依赖 → tsc 构建 host → tsdown 构建 client → pnpm add 装进 ~/.dsh/profiles/web → 在 cordis.patch.yml 追加插件行 → 提示重启。
plugin/recall 来源(非回复 prelude)。CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。