Code & Repo Automation · Terminal CLI harness

Multi-Provider Terminal Coding with LSP Diagnostics

OpenCode provides an interactive terminal user interface (TUI) with built-in Language Server Protocol (LSP) diagnostics, allowing developers to switch LLM providers mid-session for code edits.

Evidence DocumentedAgent OpenCodeHarness Terminal CLI harnessAdded 21 Nov 2026

What This Workflow Does

OpenCode provides an interactive terminal user interface (TUI) with built-in Language Server Protocol (LSP) diagnostics, allowing developers to switch LLM providers mid-session for code edits.

Written for Engineers & technical founders. Goal: Code & Repo Automation.

Agent, Harness & Requirements

The workflow runs on OpenCode inside a Terminal CLI harness. The agent runs in your shell, reads the working directory, and executes commands you approve.

  • Go or prebuilt binary
  • API key for OpenAI
  • Anthropic
  • Google
  • or local Ollama

How It Works

  1. Install OpenCode CLI
  2. Run `opencode` inside project directory
  3. Select model provider
  4. Issue refactoring task and review LSP-verified diffs.

Command or prompt pattern

"Inspect LSP type errors across the workspace and refactor the API client types to resolve all warnings."

Evidence & Source

Documented The provider's own documentation describes this workflow, its requirements, and its setup steps. Zyvibe checked the linked source on 2026-11-21 and has not reproduced the workflow.

OpenCode — Open Source Terminal AI Coding Agent

Official documentation · checked 21 Nov 2026

Open the source

Limitations

  • Plugin ecosystem is smaller than IDE extensions
  • terminal UI requires modern terminal emulator support.

This record describes what the source states. It is not a review, a benchmark, or a recommendation. If the tool has changed since the check date, report it.