Skip to content

Copilot Bridge for OpenCode

Your team already wrote Copilot instructions, prompt files and agents. This plugin lets OpenCode use them as they are. No copying, no second set of files to keep in sync.

Teams often mix tools: some people use OpenCode, others use Copilot in VS Code. Shared repos fill up with .github/copilot-instructions.md, prompt files and custom agents, and copying them into OpenCode’s format means keeping two sets of files that drift apart.

So the plugin just reads the Copilot files and hands them to OpenCode in memory. Nothing gets written to disk, and if someone changes a prompt file, OpenCode sees it without a restart.

opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugins": ["@mucsi96/opencode-copilot-bridge"]
}

That’s the whole setup.

Instructions

copilot-instructions.md goes into every request. Scoped *.instructions.md files kick in when the session first touches a file matching applyTo.

Prompt files → commands

review.prompt.md becomes /review. ${input:...} placeholders, linked files and the agent field all work.

Custom agents

*.agent.md (and old *.chatmode.md) files turn into OpenCode agents, with their tools list mapped to permissions.

Skills

.github/skills/*/SKILL.md shows up as OpenCode skills.

MCP servers

Servers from .vscode/mcp.json and ~/.copilot/mcp-config.json, including ${env:...} and ${input:...} variables.

Your personal setup too

Stuff in ~/.copilot/ is loaded as well. If a project file has the same name, the project wins.

📁
Copilot files
.github/ · ~/.copilot/
🌉
copilot-bridge
reads & translates
⚡
OpenCode
in memory, nothing written

More detail on the how it works page.