Enter3211/dsh-web-search-all-modes
所有 dsh 对话模式支持联网搜索,极简模式可用。Web search for all dsh conversation modes, minimal included.
编辑导读Editor's Brief
## 核心特性
- 该插件会为未包含宿主 web_search 工具的 agent 预设恢复该工具,包括默认仅包含 bash 和 str_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
dsh-web-search-all-modes
简体中文 · English
一个 DeepSeek Harness 插件(bundle),为所有未内置 web_search 工具的 agent 预设恢复该工具——尤其是极简模式,该模式默认只带 bash 与 str_replace_editor 两个工具。
为什么需要它
dsh-base 会为每个 profile 挂载 Web 服务、DeepSeek 搜索 provider 以及模型侧的 web_search 工具。而 dsh-web-app 界面会禁用这条宿主工具,改为让每个会话从 agent 预设中自行组合工具:
| 预设 | web_search |
|---|---|
| 标准(standard) | ✅ 预设自带 |
| 代码(code / PTC) | ✅ 预设自带 |
| 创造(cordis) | ✅ 预设自带 |
| 极简(minimal) | ❌ 无 |
本插件把宿主的 tool-web 行重新打开。自带 web_search 的预设不受影响(作用域内的注册会遮蔽全局注册,不会重复);没有该工具的预设——极简模式,或任何本地编写时省略了 tool-web 的预设——会立即获得该工具。
安装
本地源码安装:
dsh plugin --profile web add ./dsh-web-search-all-modes
从 GitHub 安装(无构建脚本,无需 pnpm build 授权提示):
dsh plugin --profile web add github:Enter3211/dsh-web-search-all-modes
安装后重启 Web 进程。之后在极简模式(或任意模式)新建会话,即可在工具目录中看到 web_search。
环境要求
- profile 基于
@deepseek-ai/dsh-base组合而成(所有官方 profile 均满足)。 - 与标准模式相同的搜索凭据——
DEEPSEEK_API_KEY,由宿主的web-search-deepseekprovider 解析。 - Web 搜索会发起一次独立的模型请求;基础行给每次搜索分配 60 秒预算,并默认
fetch: false(web_fetch保持关闭),与标准模式预设级配置一致。
注意事项
- 极简预设把 persona 固定为完整系统提示词,因此工具引导提示段在该模式下保持隐藏;但
web_search的工具 schema 仍会出现在目录中并正常工作。 - 补丁按 id 定位
tool-web行。若组合中不存在该行(非 base 部署),加载器会记录一条跳过警告,插件整体不生效(no-op)。
许可证
MIT
amruthpillai/reactive-resume
tt-a1i/archify
zhu1090093659/dsh-web-ui
strukto-ai/mirage
liustack/modlens
omdsh-dev/DSH-better-sidebar
ccch1mneyyy/dsh-TUI