jipika/dsh-jev-grep ↗★ 0

dsh-jev-grep

通过智能裁决过滤 ripgrep 结果以减少阅读行数 适合在大型项目中进行代码搜索,需要过滤冗余命中以节省 Token 的用户。

套件
dsh-jev-grep
相容性
待驗證
版本
0.1.0
授權
MIT
最近更新
2026年10月2日

安裝

此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 README ↗

配置

~/.dsh/dsh-jev-grep/settings.json(缺省即默认值;也可全走 POST /dsh-jev-grep/settings):

{
  "enabled": true,
  "url": "https://opencode.ai/zen/v1/systemone",  // 任何 systemone 形状端点
  "model": "jev-1.13-free",                        // Zen 免费档;官方用 jev-latest
  "key": "",                                       // 空 → ~/.config/jev/key → env JEV_API_KEY
  "timeoutMs": 20000,
  "minMatchesForNudge": 120,                       // grep 命中行数超它才 nudge
  "maxCandidates": 2000,                           // 单次裁决候选上限
  "tokenBudget": 40000,                            // 每次 API 调用的输入 token 预算
  "concurrency": 4,
  "cutP": 0.7,                                     // noul 默认 cut
  "topRows": 30,                                   // 文本输出最多展示行数
  "nudgeEnabled": true,
  "rgPath": ""                                     // 空 → 自动探测宿主 ripgrep → PATH
}

key 建议落 ~/.config/jev/key(与 jev CLI 共用),别写进 settings.json——后者更可能被同步/备份。settings.json 里的 key 只会在 GET /dsh-jev-grep 回显指纹,绝不回显明文。