dsh-bagu

Two gates for outbound AI text. (1) Guard: before any text goes out it blocks the shapes anyone could write — padding verbs plus abstract nouns ("optimised the code structure"), hollow adjectives, universal filler, template openers, git commit/PR/review boilerplate, comments that narrate the code. Covers chat, comments, email, commit messages, PR descriptions, reviews, issues, docs and code comments. Passes with OK, blocks with one line naming what to change. (2) Catch memes: when someone drops a slang term the model does not guess or look it up — it already knows. A built-in 6792-entry meme wiki is queried before the model starts thinking, and the entry usage field ("how to answer this") goes straight into context. Matches only exact title/slug/alias hits, never fuzzy, so ordinary chat never triggers it. Bundled SQLite by node:sqlite, zero dependencies. Settings page: guard on/off, strict mode, prompt section toggle, meme wiki toggle, per-turn auto-lookup, a four-step tone slider (reserved / measured / follow the room / unrestrained) that is behavioural rather than a label, AI-completion switch (off by default, uses the session own model so no API key needed), a paste-and-test box, and three thresholds. No model call for any check. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.

Overview

Two gates for outbound AI text. (1) Guard: before any text goes out it blocks the shapes anyone could write — padding verbs plus abstract nouns ("optimised the code structure"), hollow adjectives, universal filler, template openers, git commit/PR/review boilerplate, comments that narrate the code. Covers chat, comments, email, commit messages, PR descriptions, reviews, issues, docs and code comments. Passes with OK, blocks with one line naming what to change. (2) Catch memes: when someone drops a slang term the model does not guess or look it up — it already knows. A built-in 6792-entry meme wiki is queried before the model starts thinking, and the entry usage field ("how to answer this") goes straight into context. Matches only exact title/slug/alias hits, never fuzzy, so ordinary chat never triggers it. Bundled SQLite by node:sqlite, zero dependencies. Settings page: guard on/off, strict mode, prompt section toggle, meme wiki toggle, per-turn auto-lookup, a four-step tone slider (reserved / measured / follow the room / unrestrained) that is behavioural rather than a label, AI-completion switch (off by default, uses the session own model so no API key needed), a paste-and-test box, and three thresholds. No model call for any check. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.

Installation

Install from npm

dsh plugin --profile web add dsh-bagu

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

Install from GitHub

dsh plugin --profile web add github:hongdougao111/dsh-bagu

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.