Enter3211/dsh-web-search-all-modes

插件Plugin ⭐ 5 MIT toolsweb-ui

所有 dsh 对话模式支持联网搜索,极简模式可用。Web search for all dsh conversation modes, minimal included.

编辑导读Editor's Brief

## 核心特性
- 该插件会为未包含宿主 web_search 工具的 agent 预设恢复该工具,包括默认仅包含 bashstr_replace_editor 的 minimal 模式。
- 它会在 DeepSeek Harness web profiles 中重新启用宿主 tool-web 行,同时保持已包含 web_search 的预设不变,因为作用域注册会遮蔽全局注册。
- 它使该工具可用于 minimal 模式以及省略 tool-web 的本地编写预设,同时避免在工具已存在时重复注册。
- 它需要与 standard 模式相同的搜索凭据,使用由宿主 web-search-deepseek provider 解析的 DEEPSEEK_API_KEY

## 使用场景
- 为 DeepSeek Harness web 界面中的 minimal 模式会话添加网页搜索,该预设原本只暴露 shell 和文件编辑工具。
- 为编写时未包含 tool-web 行的自定义本地预设恢复网页搜索。
- 保持现有 standard、code 或 creative 预设不变,同时为同一部署中的其他预设补齐缺失的搜索能力。

## 技术细节
- 该包通过 dsh plugin --profile web add 从本地路径或 GitHub 安装为 DeepSeek Harness 插件包。
- 它作用于由 @deepseek-ai/dsh-base 组合而成的 profiles,这些 profiles 会挂载 web 服务、DeepSeek 搜索 provider,以及模型侧 web_search 工具。
- 该插件通过标识符定位 tool-web 行,基础配置为每次搜索分配 60 秒预算,并默认设置 fetch: false,因此 web_fetch 保持禁用。
- 安装后,必须重启 web 进程,web_search 才会出现在新会话的工具目录中。

## 注意事项
- 在 minimal 预设中,persona 被固定为完整系统提示词,因此即使 web_search schema 已列出并可用,工具引导提示词部分仍保持隐藏。
- 如果组合后的部署不包含 tool-web 行,例如非 base 部署,加载器会记录跳过警告,插件不会生效。
- 网页搜索会发起独立的模型请求,并依赖宿主搜索 provider 和 API key 配置。

## Core Features
- The plugin restores the host web_search tool for agent presets that do not include it, including the minimal mode that defaults to bash and str_replace_editor only.
- It re-enables the host tool-web line in DeepSeek Harness web profiles while leaving presets that already include web_search unchanged because scoped registrations mask global registrations.
- It makes the tool available to minimal mode and to locally authored presets that omit tool-web, while avoiding duplicate registration where the tool is already present.
- It requires the same search credential as standard mode, using DEEPSEEK_API_KEY resolved by the host web-search-deepseek provider.

## Use Cases
- Add web search to minimal-mode sessions in a DeepSeek Harness web interface where the preset otherwise exposes only shell and file-editing tools.
- Restore web search for custom local presets that were authored without the tool-web line.
- Keep existing standard, code, or creative presets unchanged while extending missing search capability to other presets in the same deployment.

## Technical Details
- The package is installed as a DeepSeek Harness plugin bundle with dsh plugin --profile web add from a local path or GitHub.
- It operates on profiles composed from @deepseek-ai/dsh-base, which mount the web service, DeepSeek search provider, and model-side web_search tool.
- The plugin targets the tool-web row by identifier, and the base configuration assigns a 60-second budget per search and defaults fetch: false so web_fetch remains disabled.
- After installation, the web process must be restarted before web_search appears in the tool catalog for new sessions.

## Notes
- In the minimal preset, the persona is fixed to a full system prompt, so tool-guidance prompt sections remain hidden even though the web_search schema is listed and works.
- If the composed deployment does not contain the tool-web line, such as a non-base deployment, the loader records a skip warning and the plugin has no effect.
- Web search issues an independent model request and depends on the host search provider and API key configuration.

安装Install

dsh plugin --profile web add github:Enter3211/dsh-web-search-all-modes

Enter3211/dsh-web-search-all-modes 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

上一个 Prev dsh-a2a 下一个 Next dsh-prompt-manager