Summary
Add OpenCode as a launchable session type in Lovcode's Agent Workbench, allowing users to start OpenCode TUI/CLI sessions directly from the Lovcode UI.
Motivation
Lovcode's Agent Workbench currently lets users launch:
- Claude Code sessions
- Codex sessions
- Terminal sessions
- General chat sessions
OpenCode is missing. Users who work with OpenCode have to leave Lovcode to start their sessions, breaking the "single command center" experience.
Proposed Feature
- "OpenCode" tile in the Agent Workbench launcher, alongside Claude Code and Codex
- Project context passthrough — when launching from a selected project, set the working directory and pass project context
- Model selection — allow picking from OpenCode's configured providers/models before launch
- Mode toggle — option to launch in TUI mode (default, interactive) or headless mode (
opencode run -p "...")
- Session tracking — launched sessions are tracked so their history can be viewed later in Lovcode
Technical Notes
- TUI launch:
opencode (needs terminal emulator — Lovcode already handles this for Claude Code/Codex)
- Headless launch:
opencode run -p "<prompt>"
- Server mode:
opencode serve --port 4096 (could also support attaching to running servers)
- Project-level config (
opencode.json) could be auto-detected
UI Suggestion
The Agent Workbench tile could show:
- OpenCode icon/logo
- Currently configured default model
- Number of existing sessions for this project
🤖 Generated with Claude Code
Summary
Add OpenCode as a launchable session type in Lovcode's Agent Workbench, allowing users to start OpenCode TUI/CLI sessions directly from the Lovcode UI.
Motivation
Lovcode's Agent Workbench currently lets users launch:
OpenCode is missing. Users who work with OpenCode have to leave Lovcode to start their sessions, breaking the "single command center" experience.
Proposed Feature
opencode run -p "...")Technical Notes
opencode(needs terminal emulator — Lovcode already handles this for Claude Code/Codex)opencode run -p "<prompt>"opencode serve --port 4096(could also support attaching to running servers)opencode.json) could be auto-detectedUI Suggestion
The Agent Workbench tile could show:
🤖 Generated with Claude Code