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
在「设置 → 提示词」页面管理提示词:
harness:identity、persona、
工具提示词等),不可修改、不可删除。user:<id> 段(order 500)注入系统提示词,作用于所有会话,重启后保留。旧版用户通过 $DSH_HOME/AGENTS.md(全局用户指令)添加提示词。插件首次
加载时会把该文件内容迁移为一条用户提示词(条目带「AGENTS.md」徽标,
id from-agents-md),然后把文件清空为空白文件(不删除文件),使内置
的 agent-instructions 不再重复注入。迁移后可在设置页直接删除该条目。
| 文件 | 作用 |
|---|---|
package.json |
声明 dsh.client(web 平台、inject slots/connection)与 exports["./client"] |
lib/index.js |
Host 半:user-prompts 设置命名空间(持久化)、systemPrompt.section() 注入、/rpc 通道提供系统提示词只读列表 |
client.js |
浏览器半:注册「设置 → 提示词」页面(settings.section),增删用户提示词、只读展示系统提示词 |
user-prompts
(~/.dsh/settings.yaml 的 user-prompts: 段),由 settings 服务统一
校验、写盘、冲突检测。user:<id>,order 500,位于所有内置/工具提示词之后),删除或改动后
通过 scope.watch 即时重同步。connection.rpc.call('/rpc', 'user-prompts/listSystem', {}) 读取 systemPrompt.assemble() 中非
user: 前缀的段落。$DSH_HOME\extensions\user-prompts\$DSH_HOME\profiles\web\node_modules\@local\dsh-user-prompts\$DSH_HOME\profiles\web\cordis.patch.yml 中 id: user-prompts注:副本是物理拷贝(未走 pnpm install)。若日后对 profile 执行
pnpm install,该目录可能被清理;重新拷贝即可。
组合行在进程启动时解析(Web 表面未启用 HMR),修改后需重启 DSH。
$DSH_HOME\profiles\web\cordis.patch.yml 删除 user-prompts 行$DSH_HOME\profiles\web\node_modules\@local\dsh-user-prompts\$DSH_HOME\extensions\user-prompts\~/.dsh/settings.yaml 中的 user-prompts: 段CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。