Agents

opencode

Agent Agents @dip497 30 installs

The opencode terminal agent; its models are read from the CLI itself.

hive agents install opencode

Run it in a terminal, or find it in Hivemind under Settings ▸ Plugins.

opencode

Runs opencode, the opencode command-line agent, in a Hivemind terminal tile.

Before you add it

Hivemind installs no code for it: it runs the opencode command you install yourself. Get it from its install page, or run curl -fsSL https://opencode.ai/install | bash.

What it can do in Hivemind

  • Says when a turn ends, so another agent can hand it work and read its reply (hive ctl read, workflows).
  • Starts a new session after a restart.
  • Its permission prompts stay with you, even when another agent started it.

What it asks for

Hivemind shows this before it adds the agent.

  • Runs opencode models to list model values
  • Reports its status and approval prompts to Hivemind through its own hooks, which can also read and type into your other tiles

Launch options

Set them on its page in Settings ▸ Plugins, or with hive plugins set agent:opencode <option> <value>.

Option How it is passed
Approval auto: --auto; yolo: --auto
Model --model <value>

Listed from agent.yaml in this folder; fix it by pull request.

On the canvas

  • Resumes a session: no
  • Reports when a turn ends: yes
  • Can be supervised by another agent: no

This adds opencode to Hivemind. Install opencode itself too, if you don't have it.

Files

From dip497/hivemind-plugins at c417100. Hivemind checks each file's checksum as it downloads, and stops if one changed.

  • agent.yaml09e45936f59d
  • hive-opencode.js665c692aa921
  • hive-opencode.jsonbc58059450a2
  • README.md51fc21e40de1
agent.yaml
# opencode — built-in provider manifest.
# Authoring format for the def half. See packages/hive-agents/src/manifest.ts.
manifestVersion: 2
# Written for the agent host that shipped in this release.
minAppVersion: '2026.9.6'
id: opencode
label: opencode
bin: opencode
aliases:
- open-code
enabled: true
caps:
  promptDelivery: typed
  turnSignal: true
  resume: none
  supervise: human
  blockedDetection: true
icon:
  viewBox: -3 6 30 30
  attrs:
    fill: currentColor
  shapes:
  - path:
      d: M18 30H6V18H18V30Z
      opacity: '0.65'
  - path:
      d: M18 12H6V30H18V12ZM24 36H0V6H24V36Z
# An image whose path is pasted alone is attached: opencode 1.17.12 shows "[Image 1]".
pastedImages: true
options:
- id: mode
  label: Approval
  values:
    auto:
    - --auto
    yolo:
    - --auto
- id: model
  label: Model
  flag: --model
  list:
    args:
    - models
session:
  list:
    args: [session, list, --format, json, --pure]
    idPath: id
    cwdPath: directory
    titlePath: title
    updatedPath: updated
  resume:
    args: [--session, '{id}']
    from:
      tracked: true
# OpenCode merges the file OPENCODE_CONFIG names into the user's own configuration; ours only
# adds the plugin, which reports through the host's SDK.
assets:
- name: hive-opencode.json
  file: hive-opencode.json
- name: hive-opencode.js
  file: hive-opencode.js
launch:
  hcp: true
  env:
    OPENCODE_CONFIG: '{asset:hive-opencode.json}'
install:
  url: https://opencode.ai/docs/
  command: "curl -fsSL https://opencode.ai/install | bash"
detect:
  rules:
  - when:
      any:
      - containsCS: △ Permission required
      - all:
        - contains: esc dismiss
        - any:
          - contains: enter confirm
          - contains: enter submit
          - contains: enter toggle
        - any:
          - containsCS: ↑↓ select
          - containsCS: ⇆ tab
    then: blocked
  - when:
      helper: hasInterruptPattern
    then: working
  default: idle

Hivemind shows you this list and asks before it installs.

  • runs opencode models to list model values
  • reports its status and approval prompts to Hivemind through its own hooks, which can also read and type into your other tiles
VersionCommitListed
1.0.0 c417100 October 20, 2026

Needs Hivemind 2026.9.6 or newer.

HiveHub keeps the version listed last. The ones before it are in the repository's history.

Something wrong with it? Report it.