Skip to content

Releases

v0.2.0

Choose a tag to compare

@PVLPM PVLPM released this 02 Dec 15:19
76ec1c3

0.2.0 lets a Vibe-hosted session use the tools OpenCode already provides. hostTools is on by default: each session gets a private bridge to the host's skill, subagent and the rest, minus the tools Vibe has itself, and a bundled skill tells a model which to reach for. The runtime also stands on its own — the plugin finds vibe-acp without T3 Code, requires 3.2.0 or newer, and answers a missing or old install with a placeholder model that carries the fix.

An OpenCode session on a Vibe model calling bridged host tools, loading the bundled host-tools skill, and running three subagents

Added

  • Host-tool bridge. A bridged call is parked and executed by the native tool inside the running turn, so Vibe receives the real result. A denial returns as an isError tool result, a policy ask on a bridged tool is rejected with the OpenCode permission rule to allow named in the message, and a later result is delivered as a wake, with committed notification ids persisted and never replayed. bridgeBinary chooses the JavaScript runtime that runs the bridge; it defaults to node on PATH, and an explicit value must be an absolute path to an existing file.
  • A bundled vibe-agent-host-tools skill. Registered on OpenCode's skill registry when the plugin activates, served to Vibe through the bridged skill tool, and listed in OpenCode's own skill guidance, so the map is present without writing into a skill folder and it goes away with the plugin. It says which bridged tool to reach for, how to delegate with subagent on a named model, and how to look a model id up through execute after a refusal.
  • A note in the first prompt explaining the bridge. A session's <opencode-system> block opens with one sentence: the tools and skills OpenCode names there load through mcp_opencode_host, and the bundled skill is named once it registered. Without it, a model reads a skill id in that block, finds it in no tool of its own, and concludes the skill does not exist.
  • A TUI entrypoint (exports["./tui"]) meant to show a missing or too-old runtime as a toast at startup.

Changed

  • hostTools is on by default. Absent means automatic: each session advertises whatever tools OpenCode passes the provider, minus the ones Vibe already has (bash, shell, read, write, edit, patch, multiedit, apply_patch, grep, glob, list, webfetch, websearch, task). An explicit array is an allowlist. [] or null is the off switch, and it turns off the bridge alone: the AGENTS.md de-duplication, the 3.2.0 floor and the thought_level lookup apply either way. A host with no JavaScript runtime for the bridge logs hostTools.disabled and keeps working.
  • The runtime is found without T3 Code. binary, then VIBE_ACP_PATH, then the absolute entries of PATH, then uv's tool directory. ~/.t3/tools/mistral-vibe/<version>/<platform> is no longer searched, and the README recommends a user-owned install: uv tool install mistral-vibe.
  • The floor is 3.2.0, and a missing or older runtime no longer takes activation down. The resolved path and version are logged once per activation. Below the floor, or with nothing found, one placeholder model is registered — vibe-agent/vibe-not-installed or vibe-agent/vibe-outdated — and its reply carries uv tool install mistral-vibe, uv tool upgrade mistral-vibe, and the binary / VIBE_ACP_PATH escape hatch.
  • Reasoning levels resolve by their ACP thought_level category instead of the literal thinking id, which Vibe 3.2.0 moved to that category while keeping the id.
  • subagent describes what a first call needs. model is provider/model or provider/model#variant, called at once; agent names a subagent, because a primary agent fails. Only the refusal Model "<provider>/<id>" is not available. earns a model lookup, which runs tools.opencode.models inside execute — the only reachable form of OpenCode's models tool.

Fixed

  • Instructions arrive once. OpenCode renders instruction files into the system prompt and Vibe loads the same files itself, so the project's AGENTS.md reached Vibe twice. Only the blocks Vibe loads are dropped now — AGENTS.md in VIBE_HOME, and AGENTS.md at the session directory when that session reported the directory trusted. Every other file still travels, and a block is removed only where its text is exactly what the file holds now, so the date, the environment and the selected agent's instructions survive.
  • A completed bridged round no longer swallows later messages. Continuation matching scanned the whole prompt, so after one completed round the next user message matched the retired park and was answered abandoned without reaching Vibe. Matching now reads only the request's last role: "tool" message, a steer sent during a parked call resolves the park in the same request, and a second bridged call while one is outstanding is refused with an isError result rather than injected after the first.
  • A background result survives a plugin reload. The pending notification id set is persisted in the session row, and an id leaves it only where an accepted prompt commits it. A restored id is published from the second request after the reload.
  • Discovery leaves no scratch directories behind. They live under opencode-vibe-agent/ and each activation sweeps entries older than 30 minutes. A parent that is a link or belongs to another user is neither entered nor swept, and the test suite runs inside one temp root that removes itself.
  • The version probe no longer freezes the host. vibe-acp --version runs as an asynchronous child instead of a synchronous one, so activation and TUI startup no longer block the event loop for up to the probe's 15 s bound. The outcomes are unchanged.

Known limitations

  • The startup toast does not appear in OpenCode 2.4.3, in the TUI or the GUI app. The placeholder model's reply is the notice.
  • A POSIX host that crashes while its bridge is listening leaves a socket file behind, under the temp directory or the /tmp fallback. It is litter, not a conflict: the next activation binds a different random endpoint, and the leftover is inert once its process is gone.

Upgrading

opencode plugin add opencode-vibe-agent

0.2.0 needs the official vibe-acp runtime 3.2.0 or newer. Upgrade an existing install with uv tool upgrade mistral-vibe; the plugin never downloads it. The bridge needs a JavaScript runtime, node on PATH by default, or the bridgeBinary option pointed at one.

npm publication of 0.2.0 follows maintainer approval of the staged package on npmjs.com.

v0.1.1

Choose a tag to compare

@PVLPM PVLPM released this 30 Nov 03:28

Patch release. One behavioural fix and one test correction; no API, configuration or install change.

Fixed

  • A session whose turn a crash cut no longer stays wedged. When the host dies mid-turn, Vibe reopens that session with the crashed turn still reported as running, and refuses every later prompt with A turn is already running. The plugin now cancels the abandoned turn and sends the identical prompt once more, so the session continues where it was instead of refusing on every turn. Nothing of the refused prompt had been admitted, so no user message is duplicated. A turn you fenced is never resent, and a second refusal is reported unchanged.
  • the POSIX process group no longer samples the instant after the kill. stop confirms that the group was signalled, not that the kernel has finished reaping it, so the assertion now waits for the pid to disappear within a bound. It still fails when the group is never signalled.

Documentation

  • The turn.orphaned diagnostic event joins the VIBE_AGENT_DEBUG=1 event list.
  • The recovery is described in the limitations section, including what it does and does not carry.

Upgrading

Reinstall or restart OpenCode to load the new plugin. A session that was already wedged recovers on its next message; if the crashed turn can no longer be proven against the reopened session, the plugin keeps its safer refusal and asks for a fresh session rather than replaying a prompt that may already have run.

opencode plugin add opencode-vibe-agent

npm publication of 0.1.1 follows maintainer approval on npmjs.com; until that lands, npm latest still resolves to 0.1.0.

v0.1.0

Choose a tag to compare

@PVLPM PVLPM released this 30 Nov 01:57

Mistral Vibe as an OpenCode V2 provider.

The package registers the provider vibe-agent. Each of its models is the official Mistral Vibe runtime
(vibe-acp) driven over the Agent Client Protocol on stdio, authenticated by your own Vibe sign-in — so inference
runs on your Vibe subscription, not on a metered API key.

Install

Requires OpenCode V2 and the official vibe-acp runtime, installed and signed in. Add the plugin to your OpenCode
configuration and restart:

{
  "plugins": ["opencode-vibe-agent@0.1.0"]
}

Then select Vibe Agent in the model menu. Reasoning effort is that model's variants.

What it does

  • Vibe keeps its own agent loop — shell, file operations, search, AGENTS.md project context, skills, MCP servers,
    sessions, compaction and caching. This package supplies the boundary only.
  • One vibe-acp child per OpenCode session, each with its own persistent Vibe session, so parallel agents and
    background workers run concurrently.
  • Every ACP permission request Vibe emits is correlated with its tool call and relayed to OpenCode's own
    permission policy, mapped to OpenCode's native actions. Operations Vibe performs without asking never reach
    OpenCode; the README states that boundary plainly.
  • Models and reasoning effort are discovered from the installed runtime, published as OpenCode models and
    variants. Nothing is hardcoded, and context windows come from Vibe's own model catalogue.
  • Attached images are forwarded as ACP image blocks, for the models the catalogue says can read them.
  • Sessions survive a host reload or a child crash. An interrupted turn ends safely, and the next message restores
    the existing Vibe session when delivery can be established — and refuses rather than replays when it cannot.
  • Credential gate. A Team plan, an API or Mistral Code plan, a non-Vibe credential or an enabled pay-as-you-go
    budget is refused before any prompt is sent.

Known limitations

  • Vibe keeps its own title and compaction, so agents.title and agents.compaction must point at a non-Vibe model.
  • An interrupted stream is not resumed; the turn is not replayed.
  • Vibe is a worker, not an orchestrator: it cannot drive OpenCode subagents.
  • OpenCode does not see operations Vibe performs without asking.
  • Image support is per model, and the per-model answer comes only from Vibe's local catalogue — ACP answers once per
    runtime.
  • Token accounting is limited by what OpenCode's provider interface can carry; see the README.

Links