HuanLinOTO/dsh-plugin-better-glob1

@huanlin/dsh-plugin-better-glob

DSH 内置 glob 工具的影子替代插件,自动排除 node_modules、dist 等深层目录,支持白名单搜索。

AI 分析

优化文件检索效率并节省 Token。适合在大型项目(含大量依赖或构建产物)中工作,需要避免 Agent 误入无关目录检索的用户。

包名
@huanlin/dsh-plugin-better-glob
版本
0.1.0
许可证
MIT
最近更新
2026年8月30日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:HuanLinOTO/dsh-plugin-better-glob

配置

字段默认说明
excludeDirs上表排除目录名(裸名,不允许分隔符),整体替换默认清单
sampleOverCapGlobResultsfalse超帽页是否按顶层条目抽样(同内置开关)
globMaxResults100单次内联保留路径数,超出部分 spill
globMetaMaxBytes65536卡片 meta 字节预算
rawOutputMaxBytes20000000单次解析的 rg stdout 上限
graceMs / stderrMaxBytes / timeoutMs3000 / 65536 / 30000同内置语义