slurGitHub

/slur for OpenCode

slur generator for OpenCode

Install a local insult and slur generator as a OpenCode custom slash command and plugin. Every standalone /slur token produces a random one-to-five-term combination.

how it works

The plugin rewrites every standalone /slur token before OpenCode submits the prompt, so the model receives the expanded text in place.

adapter
OpenCode custom command and JavaScript prompt plugin
runtime
local Rust binary
default Unix path
~/.config/opencode/commands/slur.md and plugin/slur.js
invoke
/slur anywhere in a prompt
network
none while generating

install

  1. macOS / Linux
    curl -fsSL https://raw.githubusercontent.com/darhebkf/slur/main/scripts/install.sh | bash -s -- opencode
  2. Windows PowerShell
    irm https://raw.githubusercontent.com/darhebkf/slur/main/scripts/install.ps1 | iex
    slur setup opencode
  3. reload

    Restart OpenCode after setup so it loads the command and plugin.

use /slur

You /slur your work needs another pass, you /slur.

Each token expands independently. Use slur block "word" to hide a term, slur add "phrase" to add one, and slur off to disable output.

questions

Is /slur a cloud service?
No. Generation and filtering happen on your machine.
Does it send prompts or telemetry?
No. The generator makes no network requests while producing text.
Can I block words?
Yes. The block list is local, case-insensitive, and editable from the CLI.