lovcode icon indicating copy to clipboard operation
lovcode copied to clipboard

feat: Launch OpenCode sessions from Agent Workbench

Open afaf-tech opened this issue 4 months ago • 0 comments

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

afaf-tech avatar Aug 03 '26 02:08 afaf-tech