dsh-funnel
工具输出精简插件:在工具结果进入模型上下文前进行过滤,保留错误/警告行及首尾,完整文本溢出至磁盘并提供指针。
AI 分析
核心用途是缩减上下文占用、加快推理响应。适合频繁运行产生大量文本输出工具(如 bash、抓取)的 Agent 任务。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:YuanyuanMa03/dsh-funnel说明文档
阅读完整 README ↗Configuration
All fields optional; set them under the plugin entry in your profile:
- id: dsh-funnel
name: 'dsh-funnel'
config:
maxChars: 4000 # results at or below this length pass through untouched
keepHead: 15 # lines kept verbatim from the head
keepTail: 25 # lines kept verbatim from the tail (errors usually live here)
keepPatterns: [error, warn, fail, fatal, exception, assert, denied, panic]
maxLineChars: 1000 # single oversized lines (minified/JSON) are capped
spill: true # write the full text to disk and reference it
tools: # per-tool overrides
web_fetch: { maxChars: 2000 }