PVLPM/opencode-vibe-agent
An ACP provider that brings Mistral Vibe’s native agent loop to OpenCode V2.
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Tracked from daily D1 telemetry snapshots. Hover any data point for exact daily star counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
This TypeScript extension registers vibe-agent as an OpenCode V2 provider using the AI SDK LanguageModelV3 interface. Its package dependencies are @agentclientprotocol/sdk, @opencode/plugin, and effect. Rather than forwarding individual model requests, it drives the official vibe-acp executable over ACP on stdio, keeping one child process and one persistent Vibe session per OpenCode session.
OpenCode owns the user-facing session, model selection, and approval policy. Vibe retains its agent loop, native tools, project context, MCP servers, compaction, and caching. The plugin manages the process and ACP session, relays permission requests Vibe emits, and maps usage into OpenCode. An optional private MCP bridge exposes selected host tools; skills/vibe-agent-host-tools/SKILL.md guides their use. That bridge does not replace Vibe’s native tool loop.
Key Capabilities & Differentiators
Models and reasoning variants come from the installed runtime. A throwaway child probes them in an empty directory without sending a prompt; results are cached and refreshed in the background after six hours. Agent configuration and CLI selection accept provider/model#variant, but the top-level model setting discards the variant. Context window sizes come from Vibe’s local catalogue because ACP does not publish them.
The image path checks runtime image capability against per-model catalogue metadata. It forwards PNG, JPEG, GIF, and WebP as ACP image blocks, with a limit of eight per prompt and 10 MiB decoded per image; attachments outside the limits become labels. In v0.3.0, OpenCode can cancel a running turn and send a new message in the same Vibe session and process. Vibe plans appear in OpenCode’s todo panel, and retry notices surface in the waiting turn.
Trade-offs & Limitations
Compared with running Vibe directly, this adds OpenCode’s interface, agent routing, and approval handling at the cost of an extra integration boundary. Compared with a direct OpenCode model provider, it preserves Vibe’s agent behavior but ties model availability and reasoning options to the installed runtime. The plugin relays the ACP permission requests Vibe emits; it does not supply a separate tool policy. The host-tool bridge is on by default, so use an explicit allowlist or disable it if Vibe does not need those host capabilities.
Default prestart shifts runtime startup ahead of the first message but keeps a warmed process resident; concurrent sessions still add child processes. Billing protection favors refusal over fallback: the gate checks identity and account state before the first prompt and again after an effective model change. It rejects Team plans and refuses to send a prompt unless pay-as-you-go is explicitly off. Quota enforcement remains Vibe’s responsibility, so a successful account check does not imply remaining allowance.
Hardware & Deployment Guide
Install with opencode plugin add opencode-vibe-agent and restart OpenCode; append @0.3.0 to pin the release. The host needs OpenCode V2 and Bun. Install or upgrade the official vibe-acp separately to 3.2.0 or newer, for example via uv tool install mistral-vibe, then run vibe --setup and disable pay-as-you-go billing. The plugin never downloads the runtime. A missing or outdated runtime exposes a diagnostic placeholder model; do not rely on the startup toast in OpenCode 2.4.3.
The plugin and its child processes run locally, but inference uses Vibe’s backend. The host-tool bridge defaults to node on PATH and can be disabled independently; Windows process containment requires bun:ffi and fails closed without it. The release history moves from interrupted-session recovery in v0.1.1, to the host-tool bridge in v0.2.0, to turn steering and plan and retry visibility in v0.3.0.
vibe-agent presents a LanguageModelV3 provider backed by the official vibe-acp process over ACP on stdio._identity/read and _account/read checks require an eligible Vibe credential, a non-Team chat plan, and budget.paygEnabled === false.[] disables the bridge.Individual developers on OpenCode V2 who want to use an eligible Vibe subscription while keeping Vibe’s native agent loop and OpenCode’s interface and approval flow.
You need offline or self-hosted inference, Team-plan support, or a direct provider that leaves the agent loop entirely in OpenCode.
Quick Start & Installation
opencode plugin add opencode-vibe-agent
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/PVLPM/opencode-vibe-agent.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about opencode-vibe-agent
Which process actually runs the agent loop?
vibe-agent. The plugin keeps a persistent Vibe session in a vibe-acp child for that OpenCode session. Vibe runs the agent loop; the plugin relays ACP approval requests and maps usage back to OpenCode.Do I need a GPU, and how should I size the host?
vibe-acp child per session, the optional per-session host-tool bridge, and the default warm process. Measure memory and startup overhead at your expected session concurrency rather than budgeting by model size.Does the MIT license let us self-host the full stack or deploy it on a Team plan?
When is this preferable to standalone Vibe or a direct OpenCode provider?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy