opencode-plugin-advisoropencode plugin that lets the agent consult a second, user-chosen advisor model before big or uncertain changes.
1
34
4 in 7 days
30.0
Multi-signal model
1 month ago
2026-07-10
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-plugin-advisor@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-plugin-advisor@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-plugin-advisoropencode loads npm dependencies through its embedded runtime on startup and caches them locally — no manual global install needed.
An opencode plugin that gives the agent a second opinion.
It registers one tool, advisor, which the agent calls to consult a separate,
user-chosen model before acting. The advisor model has read-only tools
(read/grep/glob/webfetch) — it can look things up, but it can never edit
files, run commands, or spawn subtasks.
It also registers a /advise [question] slash command (via the plugin's
config hook — no separate command file needed) so you can trigger it
explicitly at any time.
When the agent calls it
- The change is big, risky, hard to reverse, or involves many blocking/destructive operations.
- Exploration is done and it has a concrete solution but wants feedback before implementing.
- You explicitly ask it to get advice, a second opinion, or check its approach.
Install
Add the plugin to your opencode config (global ~/.config/opencode/opencode.json
or a project's opencode.json):
{
"plugin": ["opencode-plugin-advisor"]
}
Or, while developing locally, point at the file directly:
{
"plugin": ["file:///absolute/path/to/advisor/index.ts"]
}
Restart opencode after changing config.
Configure the advisor model
Copy advisor.example.json to advisor.json and set the model you want to
consult. The plugin looks in, in order:
<project>/advisor.json~/.config/opencode/advisor.json
{
"model": "anthropic/claude-fable-5"
}
Optional fields:
system— override the default advisor system prompt.tools— override the default tool permissions ({ "write": false, ... }).
Development
bun install
bunx tsc --noEmit