dsh-dialog-fence: Dialog Behavior Guardrail Preserving Prefix Cache

dsh-dialog-fence is a DSH plugin maintained by ILoveHAKU that manages both general and session-specific rules via a single fence.json. By injecting runtime context snapshots, it avoids modifying the system prompt, eliminates redundant token consumption when rules remain unchanged, and coexists with billion-context compression. It supports both DSH Desktop and the dsh CLI, providing a settings page, a session fence overlay, and a /fence slash command. Installation via the official plugin installer (add with a local absolute path) is recommended; rule modifications take effect on the next turn. Please verify the source code and license prior to use.

Read More