OpenCode
What an OpenCode session looks like in Chat View, where messages update in place as they stream.
OpenCode's messages come from its local server through moshi-hook. Parts of a message keep changing while it streams, so Chat View updates them in place.
At a glance
| In OpenCode | In Chat View |
|---|---|
| Image attached to a prompt | Preview above your message |
| Tool result with image attachments, such as an MCP screenshot | Preview on the tool card |
| Edits and patches | File cards with changes |
bash | Command and output |
!command you type | Your command with its output |
todowrite | Checklist |
question | Question card |
| Reasoning | Thinking blocks |
| Failed tool | Error state with OpenCode's message |
Images
Images in prompts and in tool results both show. Tap any image for the full-screen viewer, where you can zoom and share it. An image bigger than a thumbnail loads from your host only when it is shown.
Plans and questions
Questions and plan menus can be answered from the card when Moshi can verify the form on screen. Approvals go through OpenCode itself.
Subagents
With moshi-hook 0.4.59 or later, the host reports each task as a subagent with its description, agent type and model. Where your Moshi app doesn't show OpenCode subagent tabs yet, the task appears as a tool card in the main chat.
Not shown
Compaction summaries, synthetic text and step boundaries are left out.
Related docs
- Chat View — how Chat View works for every agent, with the full support table.
- Hooks — install
moshi-hookand the agent's hooks. - OpenCode guide — set up and use OpenCode with Moshi.