HuanLinOTO/dsh-plugin-better-glob ↗★ 1
@huanlin/dsh-plugin-better-glob
Shadow-replaces the built-in glob tool: auto-excludes bottomless directories (node_modules, dist, build, .venv, ...) and requires an explicit include whitelist to search inside them.
AI 分析
优化文件检索效率并节省 Token。适合在大型项目(含大量依赖或构建产物)中工作,需要避免 Agent 误入无关目录检索的用户。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:HuanLinOTO/dsh-plugin-better-globドキュメント
README 全文を読む ↗配置
| 字段 | 默认 | 说明 |
|---|---|---|
excludeDirs | 上表 | 排除目录名(裸名,不允许分隔符),整体替换默认清单 |
sampleOverCapGlobResults | false | 超帽页是否按顶层条目抽样(同内置开关) |
globMaxResults | 100 | 单次内联保留路径数,超出部分 spill |
globMetaMaxBytes | 65536 | 卡片 meta 字节预算 |
rawOutputMaxBytes | 20000000 | 单次解析的 rg stdout 上限 |
graceMs / stderrMaxBytes / timeoutMs | 3000 / 65536 / 30000 | 同内置语义 |