# Repository Briefing: PVLPM/opencode-vibe-agent
> Source: https://repoforai.com/repo/PVLPM/opencode-vibe-agent (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/PVLPM/opencode-vibe-agent
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: TypeScript
- **License**: MIT
- **Engineering Health**: A (87/100 · Maintenance 35/35 · Adoption 12/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v0.3.0 (2026-12-04) — https://github.com/PVLPM/opencode-vibe-agent/releases
- **Review Snapshot**: 2026-12-04
- **Momentum**: 24 ★ total (+2 24h / +24 7d) · 4 forks
- **When to Use**: Best for: 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. Skip if: You need offline or self-hosted inference, Team-plan support, or a direct provider that leaves the agent loop entirely in OpenCode.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Protocol boundary: `vibe-agent` presents a `LanguageModelV3` provider backed by the official `vibe-acp` process over ACP on stdio.
- Model discovery: a prompt-free probe caches runtime-advertised model IDs and reasoning variants, with a background refresh after six hours.
- Account guard: `_identity/read` and `_account/read` checks require an eligible Vibe credential, a non-Team `chat` plan, and `budget.paygEnabled === false`.
- Tool bridge: per-session MCP access to OpenCode tools filters out Vibe-native equivalents by default; an explicit allowlist narrows access and `[]` disables the bridge.
- Image input: PNG, JPEG, GIF, and WebP, up to eight per prompt and 10 MiB decoded per image; attachments outside the limits are sent as labels.
- Turn steering: v0.3.0 cancels the active turn before delivering the new message in the same Vibe session and process.
```

## Quick Start / Clone
```bash
opencode plugin add opencode-vibe-agent
```
