Get Moshi
chat · opencode

OpenCode

What an OpenCode session looks like in Chat View, where messages update in place as they stream.

updated 4 days ago2 min readpage 39 / 59

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 OpenCodeIn Chat View
Image attached to a promptPreview above your message
Tool result with image attachments, such as an MCP screenshotPreview on the tool card
Edits and patchesFile cards with changes
bashCommand and output
!command you typeYour command with its output
todowriteChecklist
questionQuestion card
ReasoningThinking blocks
Failed toolError 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.

  • Chat View — how Chat View works for every agent, with the full support table.
  • Hooks — install moshi-hook and the agent's hooks.
  • OpenCode guide — set up and use OpenCode with Moshi.