mikeng-io/agent-skills/bridge-opencode
- community
Checking that the SKILL.md file is still in the repository.
Reference adapter for OpenCode — model-agnostic multi-provider bridge. Read by any orchestrating skill via the Read tool. Covers pre-flight checks with interactive advisory, HTTP API server path (preferred), CLI run path as fallback, correct flags and model format embedded. Usable by deep-council, deep-review, deep-audit, or any future skill that needs multi-model review.
Install
npx vskill@latest install mikeng-io/agent-skills/bridge-opencodeSKILL.md
Bridge: OpenCode Multi-Model Adapter
This file is a REFERENCE DOCUMENT. Any orchestrating skill reads it via the Read tool and embeds its instructions directly into Task agent prompts. It is not invoked as a standalone skill — it is a reusable set of instructions for OpenCode dispatch.
Input schema, agent prompt template, output schema, verdict logic, artifact format, and status semantics are defined in `bridge-commons/SKILL.md`. This file covers OpenCode-specific connection detection, timeout multiplier, and execution paths.
Bridge Identity
Why OpenCode?
OpenCode is provider-agnostic — it routes to whichever AI providers are configured (Anthropic, OpenAI, Google, GLM, Qwen, etc.). Running it as a bridge lets the calling skill get a second opinion from a different model family than the one currently executing the skill.
Trade-off: 1.5× timeout multiplier applies because model calls go through OpenCode's routing layer.
Step 1: Pre-Flight — Connection Detection
MUST read `bridge-commons/tool-discovery.md` first to understand the discovery protocol.
Step 1.0: Discover Execution Context
Before checking connection paths, discover what dispatch methods are available in the CURRENT execution context. This bridge runs inside multiple executors (Claude Code, OpenCode, Codex CLI, Gemini CLI, others).
Primary detection: Tool availability (most reliable)
If OpenCode native dispatch is available:
→ Use native dispatch (Step 3N). This is the preferred path.
If NOT running inside OpenCode, proceed to Check A.
Check A: HTTP API Server Running?
If responds (any HTTP code) → use HTTP API path (Step 3A). Server is already running.
Check C: CLI Installed?
If found → proceed to Check D.
If not found → no connection available — go to Step 2 (Advisory).
Check D: Provider Authenticated? (CLI path only)
If output shows at least one authenticated provider → proceed to CLI path.
If no providers configured → go to Step 2 (Advisory) with reason: no_provider_configured.
Step 2: Advisory — Halt and Present Options
Do not skip silently. Surface the appropriate message and wait for a choice.
Advisory: Not Installed
Return status: HALTED, halt_reason: cli_not_found.
Advisory: No Provider Configured
Return status: HALTED, halt_reason: no_provider_configured.
Non-Interactive Environments
Return status: HALTED with the full advisory in halt_message. Never silently skip.
Step 3: Read Multi-Model Configuration
Before estimating timeout, check bridge settings for a models array. This is a suite-owned config file — separate from OpenCode's own ~/.config/opencode/ config — that tells the bridge which models to use for multi-model dispatch.
Extract bridges.opencode.models:
Why multi-model matters: Each model has different training data, biases, and reasoning patterns. With 3 models configured, bridge-opencode becomes its own mini-council — 3 independent perspectives before findings even reach the cross-bridge synthesis layer.
Timeout Estimation
Use bridge-commons base timeout table and intensity multiplier, then apply the OpenCode-specific multiplier:
OpenCode internally dispatches to one or more providers — each provider call adds latency.
Step 3: Dispatch — Single-Model vs Multi-Model
Multi-Model Dispatch (when models has 2+ entries)
Spawn one parallel execution per configured model. All models receive the identical bridge_input — independence is the point.
Via HTTP API (preferred when server running):
Via CLI (fallback):
If any model invocation times out or errors → mark it as skipped in instances_completed and continue with remaining results. Never block on a single model failure.
Post-dispatch: Mini-Synthesis within bridge-opencode
After all model invocations complete, run a mini-synthesis before returning to deep-council:
- Deduplication: Findings with >70% description overlap across models → merge (inherit highest severity, list contributing models as
confirmed_by_models) - Model-confirmed: Merged findings are elevated (
intra_bridge_model_confirmed: true) - Single-model findings: Retained with model attribution
- Verdict: Apply bridge-commons verdict logic to the merged finding set
This mini-synthesis is the intra-bridge equivalent of deep-council's cross-bridge Stage B — but lighter (no full DA challenge round, just deduplication and model-agreement detection).
Single-Model Dispatch (when models is empty/missing or has 1 entry)
Proceed to Step 3A or 3B with the single configured model (or OpenCode's default if none specified).
Step 3N: Execute via Native Dispatch (Preferred)
Use this path when running INSIDE OpenCode and the task tool is accessible.
This is the preferred dispatch path because:
- No subprocess overhead (direct agent invocation)
- Session continuity maintained automatically
- Can spawn parallel subagents for multi-domain review
- Lower latency than HTTP API or CLI
Single-Domain Dispatch
For single-domain or single-model review, invoke the appropriate subagent:
Multi-Domain Parallel Dispatch
When bridge_input.domains has 2+ domains, spawn one subagent per domain in parallel:
Multi-Model Parallel Dispatch
When .bridge-settings.json has bridges.opencode.models with 2+ entries, spawn one subagent per model:
Post-Analysis Protocol via Native Dispatch
For standard and thorough intensity, the post-analysis protocol runs within OpenCode:
Round 2 (Challenge Round):
Session continuity: The calling orchestrator (deep-council or other) maintains state between rounds and injects context packets.
Output from Native Dispatch
Return the standard bridge-commons output schema with:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/bridge-opencode/SKILL.md
Popularity
- Repository stars
- 6
- 7-day trend score
- 10
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 2 Apr 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mikeng-io/agent-skills/bridge-opencode)