D
qmd-autosearch
v0.1.0 · 2 天前发布
DSH plugin: auto-supplement QMD semantic search when the model greps/globs a knowledge-base directory
README
qmd-autosearch
自动补搜插件:当模型在知识库目录执行 grep / glob 搜索时,自动补充一次 QMD 语义检索,并把结果注入模型上下文。
DeepSeek Harness 插件(dsh-plugin)。零外部依赖。
功能
grep / glob(顶层调用)即触发,无需显式调用agent.inbox.nextStep,下一个 pre-step 注入模型上下文,不阻塞当前工具调用工作原理
grep/glob 执行完成 → tools/result 钩子
→ 路径在触发范围内(由 QMD status 解析的集合路径)?
→ QMD query(collections 限定 + LLM 重排)
→ 结果排队 agent.inbox.nextStep
→ 下一个 pre-step 注入模型上下文(user 角色 system-reminder 风格)
安装
方式一:npm 安装(发布后可用)
bash
dsh plugin --profile web add qmd-autosearch
方式二:本地路径引用(开发调试)
版本兼容矩阵
| DSH 版本 | 状态 | 说明 |
|---|---|---|
dsh@0.1.0-rc.6 | ❓ 未知 | metadata 缺失 |
dsh@0.1.0 | ❓ 未知 | — |
dsh@0.2.0 | ⚠️ 待验证 | 待实测(API 可能在变) |
dsh@0.3.0+ | ❓ 未知 | 尚未发布 |
💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正
元数据
- License
- MIT
- npm
- qmd-autosearch
- Repo
- git+https://github.com/zhangzhenwen1/qmd-autosearch.git
- Engines
{"node":">=18"}- Weekly DL
- 0
- Monthly DL
- 0
- dsh.bundle
{}