OpenCode
The open source AI coding agent for the terminal, model- and provider-agnostic.
Description
Terminal-native open-source coding agent with a dual-agent model: a build agent with full development access and a plan agent for read-only exploration, switchable via Tab, plus a general subagent for complex search and multistep tasks. Broad model-provider support, LSP integration and a beta desktop app. One of the most-starred open-source coding agents.
Solution
ReAct-style tool loop with a mode switch: the plan agent explores read-only; on switch the build agent edits files and runs commands. A general subagent handles isolated multistep search tasks.
Primary use cases
- terminal-native agentic coding across many model providers
- read-only planning then full-access execution
- delegating complex search/multistep work to a subagent
Open the full interactive page →
Diagram, neighbourhood map, code examples, related patterns and full provenance.