OpenCode
Open-source terminal coding agent that talks to ~any model (75+ providers). Per-agent models, real permission controls, headless runs, and MCP tools. ~174k stars, MIT.
Alternatives
5 workflows use OpenCode
OpenCode: a read-only Plan pass that cannot touch your files
Separate think from touch: lock the plan agent to read-only (edit + bash deny) so it proposes before it edits, then Tab into build to execute.
OpenCode: a model-routed team, cheap to plan, strong to build
Give each agent its own model so planning and review run on a cheap model and only the build runs on your best one.
OpenCode: a reviewer subagent gated to exactly the git commands you allow
Define a Markdown agent whose bash access is scoped per command (git diff and grep yes, everything else no) and that can never write.
OpenCode: run it headless in scripts and CI, with JSON output
Use opencode run non-interactively with --format json and a read-only agent so a pipeline gets machine-readable events and can never edit or execute.
OpenCode: add an MCP tool, then lock it to one agent
Plug in an MCP server (live docs via Context7) but disable it globally and switch it on only for the one agent that needs it, so it does not burn tokens every turn.