Tools & Capabilities

dsh-console-web-search

shixiliya1/dsh-console-web-search · ★ 0

shixiliya1

DSH web search plugin with a Console Go-safe tool name.

License
MIT
Added
2026-08-23
Maintenance
active
Install kind
github

No manifest check is available; listing does not imply compatibility or security review.

安装

dsh plugin --profile web add github:shixiliya1/dsh-console-web-search

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

For install and environment setup, plus plugin development tutorials, see DSH community docs ↗

README

Source README · body: en · Read Chinese README

Table of contents
  1. How it works
  2. Compatibility
  3. Search credentials
  4. Installation
  5. Install the Console Go Safe preset
  6. Usage
  7. Development
  8. Publishing
  9. License

中文 · English · 日本語

Provides a web-search tool name that Console Go accepts in DeepSeek Harness (DSH).

Console Go rejects a custom function named web_search with:

invalid tools in request: custom function name "web_search" is reserved

This plugin disables the original tool and registers the same DSH search capability as console_web_search. It also includes a Console Go Safe agent preset so the standard preset does not add the reserved web_search tool again.

How it works

Console Go model
  → console_web_search
  → DSH ctx.web
  → configured DSH search provider
  → web sources

The plugin does not proxy model requests, read or save API keys, or install another search engine.

Compatibility

  • DSH dsh-v0.1.3-alpha.1 built from the official source tag
  • Node.js ^22.19.0 || >=24.0.0
  • pnpm 11 for development and packaging

The Console Go Safe preset is rebased on the standard preset in dsh-v0.1.3-alpha.1; it only replaces model-facing web_search with console_web_search.

Search credentials

Model chat and web search are separate paths. Console Go provides model inference, while this plugin still searches through DSH ctx.web.

DSH's default DeepSeek search provider requires a valid DEEPSEEK_API_KEY. Save it through DSH's model and credential settings, or set it in the environment that starts DSH. Never put the key in this repository.

Installation

dsh-v0.1.3-alpha.1 is not published to npm. From an official source checkout of that tag after pnpm install, the release package is prebuilt and requires no build allowlist:

pnpm dsh plugin --profile web add https://github.com/shixiliya1/dsh-console-web-search/releases/download/v0.2.0/dsh-console-web-search-0.2.0.tgz

You can also install the pinned source version from GitHub:

pnpm dsh plugin --profile web add github:shixiliya1/dsh-console-web-search#v0.2.0

A source installation runs this package's prepare build. pnpm 10 and later block this by default. When the first command fails, add the exact package key printed by DSH/pnpm to allowBuilds in that profile's pnpm-workspace.yaml, then rerun the same command.

Replace web with headless to install into a one-shot agent profile. To upgrade, run plugin add again with the newer release URL. To uninstall:

pnpm dsh plugin --profile web remove dsh-console-web-search

Run pnpm dsh from the official dsh-v0.1.3-alpha.1 source checkout.

Install the Console Go Safe preset

After installing the plugin, copy the included safe preset from the package:

$presetSource = Join-Path $env:USERPROFILE '.dsh\profiles\web\node_modules\dsh-console-web-search\preset\console-safe'
$presetTarget = Join-Path $env:USERPROFILE '.dsh\.agent-presets\console-safe'

if (Test-Path -LiteralPath $presetTarget) {
  throw "Preset already exists and was not overwritten: $presetTarget"
}

Copy-Item $presetSource $presetTarget -Recurse

Restart DSH and start a new conversation. The conversation header should show Console Go Safe.

Usage

  1. Start a new conversation in DSH.
  2. Select the Console Go Safe preset.
  3. Select a Console Go model.
  4. For example, enter: Use console_web_search to search for DeepSeek Harness and provide source links.

The model's tool directory should contain console_web_search and should not contain web_search.

Development

pnpm install --frozen-lockfile
pnpm run typecheck
pnpm run build
pnpm pack

The plugin entry point is src/index.ts, the configuration patch is cordis.patch.yml, and the safe preset is in preset/console-safe.

Publishing

See PUBLISHING.md for the complete initial GitHub release flow and commands.

License

MIT