Skip to content

feat: Launch OpenCode sessions from Agent Workbench #34

Description

@afaf-tech

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions