gongyijie85/dsh-agent-frugality ↗★ 0
dsh-agent-frugality
DSH 对抗多智能体三层失效的防御插件:读取台账去重度量(read-ledger)、免疫压缩规则区+完成机械门禁(immutable-core+completion-gate)、低成本审查lane(role-router)。零外部依赖,注入即用。
安装
此插件尚未提供可验证的 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) |