dsh-brake: DSH Agent Session Infinite Loop Detection and Braking
dsh-brake is a DSH plugin (admin-security) maintained by Mlte0907. It monitors tool execution and injection contexts to detect repeated monotonic calls, fixed-sequence loops, and repetitive text blocks. By default, it injects a plugin notice before the next model request; an optional deny mode rejects guard-protected calls that are identical and exceed a specific threshold. Installation requires using `pnpm add` with the local package in the profile directory and configuring bundles and YAML files. It is suitable for controlling loops and padding during long-running agent executions; however, users should be aware of README limitations, such as the inability to identify near-duplicates or deny sequence loops.
Read More