opencode-content-filterOpenCode plugin that surfaces provider content-filter finish reasons instead of leaving silent empty turns
0
21
2 in 7 days
24.6
Multi-signal model
2 months ago
2026-06-08
Install and configure
opencode.jsonWrites 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"]
}Writes to ~/.config/opencode/opencode.json — applies to every project.
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-content-filter@0.1.1"]
}If you want to modify the plugin locally, install it into the project and reference the local path.
shell
pnpm add -D opencode-content-filteropencode 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