← 返回列表
D

dsh-tool-search

v0.1.3 · 3 天前发布

Tool search & slimming for DeepSeek Harness: Hermes-style progressive disclosure — search, describe, and call long-tail tools on demand while keeping core tools eager

deepseek-harnessdshdsh-plugintool-searchtool-slimminghermessemantic-searchrerankplugin

README

dsh-tool-search

DeepSeek Harness(DSH)的工具搜索与瘦身插件:Hermes 风格渐进式披露。当工具目录变大(挂了多个 MCP 服务或插件工具)时,每个工具的 JSON schema 都会在每一轮注入模型上下文——大量 token 花在本次任务根本用不到的工具上。本插件把长尾工具折叠到三个桥接工具后面,让模型通过配置的 rerank 模型按需搜索、加载和调用。

  • 核心工具永远直通——文件/终端/必备工具始终直接可见。

  • 桥接工具——tool_search / tool_describe / tool_call 替代被折叠的 schema。

  • 分级披露——目录越大,模型可见清单自动越精简。

  • 对话式配置——随包技能 tool-slimmer-setup 通过对话帮你分组,并引导配置 rerank 模型。

  • 全局或按项目——分组/匹配器存在 ~/.dsh/dsh-tool-search.json(全局)或 <workspace>/.dsh/dsh-tool-search.json(按项目),由你选择。
  • 安装

    sh
    dsh plugin --profile web add dsh-tool-search

    工作原理

    灵感来自 Hermes Agent 的 Tool Search。每一轮,插件的 system-prompt/assemble 监听器计算档位并

    查看完整 README →

    版本兼容矩阵

    DSH 版本状态说明
    dsh@0.1.0-rc.6 ✅ 兼容 cordis patch ✅
    dsh@0.1.0 ✅ 兼容 标准 patch ✅
    dsh@0.2.0 ⚠️ 待验证 待实测(API 可能在变)
    dsh@0.3.0+ ❓ 未知 尚未发布

    💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正

    元数据

    License
    MIT
    npm
    dsh-tool-search
    Repo
    git+https://github.com/Letter2025/dsh-tool-search.git
    Engines
    {}
    Weekly DL
    0
    Monthly DL
    0
    dsh.bundle
    {"bundle":{"patch":"./cordis.patch.yml"}}