Skip to content

[FEATURE]:Image preview+ computer use request #56921

Closed

Description

@A-x6

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Two related capabilities that would make opencode much more useful for UI and visual work:

1. Image preview in the TUI

Right now, when an image is attached, pasted, read from disk, or produced by a tool (screenshots, generated assets, diagrams), there is no way to see it inside the terminal. This makes it hard to confirm what the agent is actually looking at or producing.

Requested behavior:

  • Render images inline in the TUI using the best protocol the terminal supports (Kitty graphics protocol, iTerm2 inline images, Sixel), with a graceful fallback to a block/ANSI preview or a "open in external viewer" action
  • Preview for images attached to a prompt, images returned by tools, and images read by the agent
  • A keybind or command to open a full-size preview
  • Auto-detect terminal capabilities, with a config option to enable, disable, or force a protocol

2. Computer use

Add computer use so the agent can see and operate the desktop the way a user would.

Requested behavior:

  • A built-in tool (or an official MCP integration) that can take screenshots, move and click the mouse, type text, press key combinations, and scroll
  • Screenshots fed back to the model as image input, which pairs with the image preview above so the user can watch what the agent sees
  • Permission prompts for every action category, with an allow/deny config in opencode.json
  • An easy way to stop the agent immediately (kill switch / keybind)
  • Optional restriction to a specific app or window region
  • Works on macOS first, with Linux and Windows to follow

Why this matters

  • Lets the agent verify UI changes visually (build the app, screenshot it, fix what looks wrong) without leaving the terminal workflow
  • Enables testing and automating native apps that have no CLI or API
  • Image preview gives the user visibility into what the agent is doing, which is essential for trust when computer use is enabled
    -Other terminal agents already ship partial versions of one or both of these. Image preview is a good standalone first step, and computer use can build on it.

Activity

  1. opencode-agent commented on Oct 19, 2026

    @opencode-agent
    Contributor

    Thanks for the detailed request! You're asking for two things: inline image previews in the TUI (with protocol auto-detection, a full-size viewer and config to choose the protocol), and a built-in computer-use tool (screenshots, mouse and keyboard control, permission for each action, a kill switch and limiting the agent to one window or area).

    On the first part, much of this is already in v2. When image_preview is enabled, the TUI shows images attached to a prompt and images returned by tools inline. There are two settings with that name: one for the previews above the prompt and one for the session transcript. You can also open images in a full-size viewer and use left/right to move between them. Forcing a specific protocol and an "open in external viewer" action aren't there yet.

    Related issues and PRs:

    In the meantime, you can connect an external desktop-control MCP server in your config to get some of the computer-use behaviour.

    Maintainers will consider this request.

  2. A-x6 commented on Oct 19, 2026

    @A-x6
    Author

    @opencode-agent i mean it would be cool if the desktop app or cli have this biult in and this would make opencode be even higher up there with codex and claude code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions