Repository navigation
v0.3.0 — first public release
First public release of opencode-discuss: a two-model discussion mode for OpenCode 2.2.5.
Pick two models, give them a topic, and watch them discuss it in a colour-coded live panel inside the OpenCode terminal UI. Step in, change the topic or stop the run, then hand the result to the Plan or Build agent.
Highlights
- Live panel with side-coloured, labelled replies that stream in word by word. It opens by itself when a discussion starts.
- Slash commands for everything:
/discuss,/discuss-models,/discuss-model-a,/discuss-model-b,/discuss-settings,/discuss-start,/discuss-stop,/discuss-interject,/discuss-topic,/discuss-restart,/discuss-handoff. Models can be chosen by typing them, and a previous pair is offered in a new session. - Three modes: cooperative, critical and debate.
- Explicit consent. Starting always asks for confirmation, from the commands and from chat, even if a permission rule says
allow. - Preflight. The saved pair and the output cap are checked against OpenCode's model list before anything is spent.
- Accounting. The panel and the handoff show requests against the plan, and the input, output and reasoning tokens and cost OpenCode reported, or
unknown. - Stop that stops.
/discuss-stopinterrupts the run within milliseconds; a stuck dialogue process is killed after 5 seconds, together with its children. - One-time handoff to Plan or Build with a preview and a confirmation; it is never sent twice, even after a restart.
- Journals for the TUI and the server (
tui.jsonl,server.jsonl) that never contain topic text.
Verified
Checked live on OpenCode 2.2.5 (Windows): full discussions through the server bridge, streaming panel, start from chat and from commands with the confirmation, refusal, stop at a turn boundary, usage accounting, handoff to Plan and Build, and the consent hook against a configured allow. 170 unit tests, the Python bridge tests and two isolated smoke tests pass.
Not verified live: interrupting a reply in the middle (covered by unit tests) and the 5-second kill of a stuck process.
Install
This is a plugin package, not an npm release. Build it and add it to your OpenCode configuration; see Install in the README.
bun install
bun run buildNotes
- Every discussion calls two paid models, and the orchestrating chat's own calls are extra. Read Limits.
- Only OpenCode 2.2.5 is supported.
- Documentation: README, architecture, contributing.