Repository navigation
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.
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
isErrortool 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.bridgeBinarychooses the JavaScript runtime that runs the bridge; it defaults tonodeonPATH, and an explicit value must be an absolute path to an existing file. - A bundled
vibe-agent-host-toolsskill. Registered on OpenCode's skill registry when the plugin activates, served to Vibe through the bridgedskilltool, 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 withsubagenton a named model, and how to look a model id up throughexecuteafter 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 throughmcp_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
hostToolsis 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.[]ornullis the off switch, and it turns off the bridge alone: theAGENTS.mdde-duplication, the 3.2.0 floor and thethought_levellookup apply either way. A host with no JavaScript runtime for the bridge logshostTools.disabledand keeps working.- The runtime is found without T3 Code.
binary, thenVIBE_ACP_PATH, then the absolute entries ofPATH, 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-installedorvibe-agent/vibe-outdated— and its reply carriesuv tool install mistral-vibe,uv tool upgrade mistral-vibe, and thebinary/VIBE_ACP_PATHescape hatch. - Reasoning levels resolve by their ACP
thought_levelcategory instead of the literalthinkingid, which Vibe 3.2.0 moved to that category while keeping the id. subagentdescribes what a first call needs.modelisprovider/modelorprovider/model#variant, called at once;agentnames a subagent, because a primary agent fails. Only the refusalModel "<provider>/<id>" is not available.earns a model lookup, which runstools.opencode.modelsinsideexecute— the only reachable form of OpenCode'smodelstool.
Fixed
- Instructions arrive once. OpenCode renders instruction files into the system prompt and Vibe loads the same files itself, so the project's
AGENTS.mdreached Vibe twice. Only the blocks Vibe loads are dropped now —AGENTS.mdinVIBE_HOME, andAGENTS.mdat 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
abandonedwithout reaching Vibe. Matching now reads only the request's lastrole: "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 anisErrorresult 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 --versionruns 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
/tmpfallback. 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-agent0.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.
