gongyijie85/dsh-agent-frugality0

dsh-agent-frugality

DSH 对抗多智能体三层失效的防御插件:读取台账去重度量(read-ledger)、免疫压缩规则区+完成机械门禁(immutable-core+completion-gate)、低成本审查lane(role-router)。零外部依赖,注入即用。

AI Analysis

核心用途是防御多智能体协同中的重复读取、死循环和高成本审查失效。适合需要控制 Token 消耗、对智能体完成状态进行强制验证和去重优化的用户。

Package
dsh-agent-frugality
Version
0.1.0
License
MIT
Last updated
Aug 29, 2026

Install

This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗

Configuration (env vars — full table in docs/SPEC.md §6)

VariableDefaultMeaning
DSH_FRUGALITY_DEDUP01 = replace 2nd+ identical read with a summary
DSH_FRUGALITY_GATE10 = disable completion gate
DSH_FRUGALITY_GATE_MAX2max gate objections (anti-loop)
DSH_FRUGALITY_VERIFYemptydefault verify command (npm test; exit 0 = pass)
DSH_FRUGALITY_ALLOW_ARG_VERIFY01 = accept tool-arg verify (default ignored — anti-RCE, SPEC §7.1)
DSH_FRUGALITY_REVIEW_MODELautoreview model id; auto = CHEAP family
DSH_FRUGALITY_RULESbuiltinrules file (≤8KB)
DSH_FRUGALITY_LEDGER_CAP30read-cache sheet max entries
DSH_FRUGALITY_WORKDIRcwdgate verify command cwd
DSH_FRUGALITY_READ_PATTERNSbuiltinextra read-tool substrings (comma-separated)