hongdougao111/dsh-bagu: A gate before AI speaks to the outside
hongdougao111/dsh-bagu is a DSH plugin positioned as a "gate before AI speaks to the outside": AI-generated text intended for public viewing, such as chat logs, comments, emails, commits, PRs, documentation, and code comments, undergoes a local regex check before being sent. If passed, it returns OK; if failed, it is rejected with a suggested direction for modification. The judgment does not call a model; the fixed overhead is 85 characters (31 for the system prompt, 54 for the tool description). The rules are divided into three layers: General (empty rhetoric/empty adjectives/filler phrases), Clichés (template sentences/platitudes/academic tone), and Scenarios (Git and code comments). Real-world tests in the README show: 68 real human posts from Tieba, 50 comments from Bilibili, 36 from all domains, 51 original human quotes, and 28 real Git commits were blocked zero times (false positives). Rote AI responses (35 items) were blocked 100%, and 6 out of 10 adversarial bypass attempts were blocked. The explicitly recorded known boundaries include synonym replacement, English sentence structures, profanity masking, and removing grouping markers. It supports three modes: default gate, report, and ask. For text under 60 characters, it uses absolute counting; for text over 300 characters, the same signal must appear at least twice to count. It includes an optional meme library (disabled by default) and four settings pages. Install with `dsh plugin --profile web add dsh-bagu`, then restart dsh.
Read More