gongyijie85/dsh-agent-frugality ↗★ 0
dsh-agent-frugality
DSH 对抗多智能体三层失效的防御插件:读取台账去重度量、免疫压缩规则区+完成机械门禁、低成本审查通道
AI 分析
核心用途是防御多智能体协同中的重复读取、死循环和高成本审查失效。适合需要控制 Token 消耗、对智能体完成状态进行强制验证和去重优化的用户。
安装
此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗
说明文档
阅读完整 README ↗Configuration (env vars — full table in docs/SPEC.md §6)
| Variable | Default | Meaning |
|---|---|---|
DSH_FRUGALITY_DEDUP | 0 | 1 = replace 2nd+ identical read with a summary |
DSH_FRUGALITY_GATE | 1 | 0 = disable completion gate |
DSH_FRUGALITY_GATE_MAX | 2 | max gate objections (anti-loop) |
DSH_FRUGALITY_VERIFY | empty | default verify command (npm test; exit 0 = pass) |
DSH_FRUGALITY_ALLOW_ARG_VERIFY | 0 | 1 = accept tool-arg verify (default ignored — anti-RCE, SPEC §7.1) |
DSH_FRUGALITY_REVIEW_MODEL | auto | review model id; auto = CHEAP family |
DSH_FRUGALITY_RULES | builtin | rules file (≤8KB) |
DSH_FRUGALITY_LEDGER_CAP | 30 | read-cache sheet max entries |
DSH_FRUGALITY_WORKDIR | cwd | gate verify command cwd |
DSH_FRUGALITY_READ_PATTERNS | builtin | extra read-tool substrings (comma-separated) |