DeepSeek Harness 插件

dsh-web-search-pool

多 key 多供应商(Tavily + Exa)搜索 provider,为 DeepSeek Harness 的 web capability seam(ctx.web)提供按限流负载均衡(英文原文)

跳到安装方式

来源信息

GitHub 仓库
DreamRift/dsh-web-search-pool
最近更新
2026年8月18日
分类
文档与渲染
GitHub stars
3
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/DreamRift/dsh-web-search-pool
插件名:dsh-web-search-pool
作者:DreamRift

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

dsh-web-search-pool

!Version !License: MIT !DSH Version: rc.7

DeepSeek Harness 的 多供应商搜索负载均衡插件。将多个 Tavily 和 Exa API keys 组织成智能池,自动按限流调度并故障切换。

✨ Features

  • 🔑 Multi-key Pool: 支持多个 Tavily + Exa keys,统一管理
  • ⚖️ Smart Load Balancing: 基于 RPM(每分钟的请求数)加权轮询调度
  • 🔄 Automatic Fallback: 429 rate limit、额度耗尽、网络错误时自动切换到下一个 key
  • 📊 Usage Dashboard: Settings 页卡片实时查看已用额度、总限额、刷新按钮
  • 🔒 Secure: API keys 通过 DSH credentials service 保存,不写入配置文件
  • 🎯 Exa Anonymous Free Tier: 内置免费匿名层(1 req/sec),有 key 走 REST 提配额
  • 🏗️ Native Bundle (rc.7): DeepSeek Harness 官方式原生 Bundle 集成

📦 Installation

# Build distribution package
npm pack

# Install to your profile
dsh plugin --profile web add ./dsh-web-search-pool-0.1.0-rc.7.tgz

Prerequisites

  • DeepSeek Harness 0.1.0-rc.7 or higher
  • 🔐 At least one search provider API key (Tavily / Exa)

⚙️ Configuration

After installation, configure via DSH Settings UI:

1. Open DeepSeek HarnessSettingsPlugins 2. Find "搜索 Key 池" card and expand it 3. Add your Tavily/Exa keys with: - Environment Variable Name (e.g., TAVILY_API_KEY_1) - Rate Limit (RPM): requests per minute - Remark: friendly name (optional) 4. Click Save - secrets are stored securely via credentials

> 🔐 All API keys are stored in DS H's credential system, never in plain-text configs.

🛠️ Usage

Once configured, the plugin automatically becomes your default web_search tool. No manual selection needed!

The provider will:

  • Select optimal key based on current quota and load
  • Switch providers (Tavily ↔ Exa) on failure
  • Respect rate limits and quotas across all keys
  • Return structured errors without exposing sensitive data

🧪 Testing

# Run test suite
npm run test

# Syntax check
node --check src/**/*.js scripts/*.mjs

# Pack integrity check
npm pack --dry-run

📄 Documentation

  • [Installation Guide](docs/挂载指南.md) - Quick setup for rc.7
  • [Upgrade & Rollback Guide](docs/升级与回滚指南.md) - Migrate from v0.2.x, troubleshooting
  • [Development History & Specs](docs/superpowers/) - Design decisions and specifications
  • [Architecture Overview](AI搜索Key池负载均衡 - 开发计划.md) - Technical architecture and trade-offs

🔧 Troubleshooting

IssueCauseSolution
No settings cardLegacy rc.6 slot registrationUpdate to use key: web-search-pool, restart DSH
Still using official searchBundle patch not loadedReinstall tarball, verify searchProvider: search-pool
Usage refresh failsInvalid credentials or quota exhaustedCheck credentials config, wait for quota recovery

See [Upgrade Guide](docs/升级与回滚指南.md#故障排查) for complete table.

🏗️ Architecture

See technical design docs:

  • [Bundle Contract Specification](docs/superpowers/specs/2026-08-18-native-bundle-rc7-design.md)
  • [Key Pool & Scheduler Logic](src/core/)
  • [RC7 Migration Report](v0.1.0-rc.7-升级实施计划.md)

🔐 Security

This plugin follows Zero Trust for credentials:

  • No hardcoded secrets or API keys
  • Keys only stored via DSH credentials service
  • Never logged or exposed in responses
  • Public anonymous mode available (Exa free tier)

📜 License

MIT License - see LICENSE file

🤝 Contributing

Issues and PRs welcome! Please follow existing patterns:

  • Core logic in src/core/ (DSH-independent)
  • Provider implementation in src/dsh/ (Host half)
  • Client UI in src/dsh/client.js (Web half)
  • Tests parallel production coverage (TDD)

See [Development Guidelines](docs/开发事故复盘与规范.md) for best practices.

---

Built for DeepSeek Harness community · Part of native ecosystem