Skip to content
    ↑↓ select↵ openesc close
    English中文
    Adamkadaban

    Content Filter

    v0.1.1Model Providers
    opencode-content-filter

    OpenCode plugin that surfaces provider content-filter finish reasons instead of leaving silent empty turns

    GitHub stars

    0

    Monthly installs

    21

    2 in 7 days

    Composite scoreSCORE

    24.6

    Multi-signal model

    Last commit

    2 months ago

    2026-06-08

    Install and configure

    opencode.json

    Writes to this project's opencode.json — applies to this repository only.

    opencode.json

    {
      "$schema": "https://opencode.ai/config.json",
      "plugin": ["opencode-content-filter@0.1.1"]
    }

    opencode loads npm dependencies through its embedded runtime on startup and caches them locally — no manual global install needed.

    OpenCode plugin that makes provider content-filter finishes visible instead of leaving an apparently silent empty assistant turn.

    Install

    opencode plugin opencode-content-filter -g
    

    This installs the package globally and updates your opencode.json and tui.json automatically.

    Or manually:

    npm install -g opencode-content-filter
    

    Then add "opencode-content-filter" to the plugin array in both opencode.json and tui.json.

    For opencode.json:

    {
      "$schema": "https://opencode.ai/config.json",
      "plugin": ["opencode-content-filter"]
    }
    

    For tui.json:

    {
      "$schema": "https://opencode.ai/tui.json",
      "plugin": ["opencode-content-filter"]
    }
    

    Usage

    The plugin watches assistant messages for finish: "content-filter" without visible text.

    In the TUI, it shows an error toast naming the model that was blocked.

    In opencode run ..., it writes a clear warning to stderr and sets a non-zero exit code.

    Limitations

    The plugin reports content-filter finishes but cannot mutate persisted assistant message.error. For SDK and persistent transcript behavior, OpenCode core should still surface content-filter finish reasons as errors.

    License

    MIT