dsh-gateway-shield: Transport-Layer Guardrails Before Egress

dsh-gateway-shield is a DSH transport-layer plugin maintained by jyuaner. It hooks into the `llm/stream` pipeline and performs provider-tier-aware, fingerprint-based synonym rewriting across four channels—system, messages, tools, and toolHistory—while handling soft-rejection retries. It is provider-agnostic: a single install applies to all models. Current version is 0.6.2, compatible with DSH 0.2.1-rc.1+, Node ≥ 20, and licensed under MIT. Install into your profile via `node install.mjs` or `armor/armor.mjs`; `dsh-purge` can be bundled by default. It is designed to mitigate gateway 400 / 11128 errors and model deflection (refusal) scenarios, and does not replace content policy. Please review the source code and assess permission impact before installing.

Read More