opencode-auto-reviewerOpenCode plugin that acts as a supervisor to detect conceptual loops
2
331
近 7 天 4
35.6
生态多维模型
2 个月前
2026-06-07
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-auto-reviewer@0.1.0"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-auto-reviewer@0.1.0"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D opencode-auto-revieweropencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
OpenCode plugin that acts as a supervisor to detect conceptual loops
Installation
npm install opencode-auto-reviewer
Features
- Acts as an LLM-powered supervisor observing the agent trajectory.
- Detects conceptual rabbit holes where the agent is stuck but technically not in an exact loop.
- Provides hints, warnings, and critical interventions to nudge the agent back on track.
- Forces strategy changes when approaches fail to converge.
Usage
This is a plugin for OpenCode.
You can easily enable this plugin globally by adding it to your opencode.json (or opencode.jsonc) configuration file under the plugins array.
{
"plugins": [
"opencode-auto-reviewer"
]
}
Once added to your configuration, OpenCode will automatically load and activate the plugin whenever it starts.
Alternatively, if you are configuring OpenCode programmatically via the SDK, you can register it like this:
import { configureAgent } from '@opencode-ai/sdk';
import plugin from 'opencode-auto-reviewer';
const agent = configureAgent({
plugins: [
plugin({
// Provide configuration options here
})
]
});