opencouncil
v0.1.0
Published
A multi-model council plugin for OpenCode that runs prompts across multiple LLMs and synthesizes their responses to identify consensus and discrepancies.
Readme
OpenCouncil Plugin for OpenCode
A multi-model council plugin for OpenCode that runs prompts across multiple LLMs and synthesizes their responses to identify consensus and discrepancies.
Installation
Add the plugin to your opencode.json:
{
"plugin": ["opencode-opencouncil"]
}Then restart OpenCode. The plugin will be automatically installed via Bun.
Configuration
Add the configuration to your opencode.json:
{
"plugin": ["opencode-opencouncil"],
"opencouncil": {
"defaultCouncil": "standard",
"councils": {
"standard": {
"members": [
{ "name": "gemini", "model": "google/gemini-2.0-flash", "temperature": 0.2 },
{ "name": "codex", "model": "openai/codex", "temperature": 0.2 },
{ "name": "opus", "model": "anthropic/claude-opus-4", "temperature": 0.2 }
]
}
}
}
}Council Member Options
Each member supports:
name: Identifier for the membermodel: Provider/model ID (format:provider/model)temperature: Sampling temperature (optional)system: Custom system prompt (optional)options: Additional model options (optional)
Usage
Tool: opencouncil.run
Run a prompt through the configured council:
Use tool: opencouncil.run
Prompt: "Explain the benefits of TypeScript"Optional parameters:
council: Specify a council name (defaults todefaultCouncil)
Tool: opencouncil.init
Initialize configuration and optionally create an agent file:
Use tool: opencouncil.init
writeAgentFile: trueThis will:
- Print the configuration block to add to your
opencode.json - If
writeAgentFileis true, create.opencode/agents/opencouncil.md
Agent: @opencouncil
If you ran opencouncil.init with writeAgentFile: true, you can use:
@opencouncil "What are the best practices for error handling?"The agent will automatically call opencouncil.run and summarize the results.
Output Format
The plugin returns:
- Member responses - Individual answers from each model
- Consensus - Claims endorsed by multiple members
- Discrepancies - Claims mentioned by only one member
- Uncertainties - Each member's expressed uncertainties
Troubleshooting
Plugin installation stuck
Clear the cache and restart:
rm -rf ~/.cache/opencodeModel not found
Ensure the model IDs match those available in your OpenCode installation. Use OpenCode's CLI commands to discover available models.
License
MIT
