What gets loaded
| Copilot file | In OpenCode |
|---|---|
.github/copilot-instructions.md, ~/.copilot/copilot-instructions.md |
added to every request |
.github/instructions/**/*.instructions.md with applyTo |
added once the session reads or edits a matching file |
.github/prompts/*.prompt.md |
slash commands |
.github/skills/*/SKILL.md |
skills |
.github/agents/*.agent.md, .github/chatmodes/*.chatmode.md |
agents |
.vscode/mcp.json, .mcp.json, .github/mcp.json, ~/.copilot/mcp-config.json |
MCP servers |
Where it looks
Section titled “Where it looks”- The project, up to the Git root. If you start OpenCode in a subfolder (say
packages/app), the plugin reads the files above from that folder and every parent up to the repository root. The nearest one wins when two define the same agent, prompt, skill or MCP server. - Your Copilot home. The
instructions/,prompts/,skills/andagents/folders,copilot-instructions.mdandmcp-config.jsonunder~/.copilot/are read too. SetCOPILOT_HOMEto use another folder. COPILOT_SKILLS_DIRS: extra skill folders, separated by commas.COPILOT_CUSTOM_INSTRUCTIONS_DIRS: extra instruction folders, separated by commas. From each one the plugin readsAGENTS.md,copilot-instructions.mdand.github/copilot-instructions.md(added to every request) andinstructions/and.github/instructions/(withapplyTo).
Prompt files
Section titled “Prompt files”Run them like any command: /review focus on security.
${input:name}is filled fromname=valuearguments first, then from plain words in order. Whatever’s left over goes at the end of the prompt.- If an input has no value, the model sees its placeholder (
${input:name:component name}becomes<component name>) and can ask you for it. ${workspaceFolder}and${workspaceFolderBasename}work.- Files the prompt links to, like
[guide](../../docs/guide.md), are attached. - If the prompt sets
agent, the session switches to that agent first.
Agents
Section titled “Agents”- The agent’s body is added on top of OpenCode’s default prompt, it doesn’t replace it.
toolsbecomes permissions. Built-in names (search/codebase,editFiles,runInTerminal,web/fetch, …) and MCP tools (github/*,github/get_issue) are mapped.agentslimits which subagents it may call.user-invocable: falsemakes it a subagent only.disable-model-invocation: truemakes it a primary agent only.modelworks as written. Copilot’s display names become GitHub Copilot models in OpenCode:GPT-6 Lunaturns intogithub-copilot/gpt-6-lunaandClaude Sonnet 4.5 (copilot)intogithub-copilot/claude-sonnet-4.5. Names already written asprovider/modelare used as they are. Use themodelsoption when a name doesn’t translate, andmodelProviderto use another provider.todomaps to OpenCode’s todo list.
MCP servers
Section titled “MCP servers”${env:NAME}, ${workspaceFolder} and ${userHome} are filled in. For ${input:...}, see
MCP secrets.
Not supported (yet)
Section titled “Not supported (yet)”- Instruction files without
applyTo. Copilot only uses them when you attach them manually, and OpenCode has no equivalent. - Interactive input prompts for MCP servers.
Missing something you use? Open an issue.