Skip to content

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
  • 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/ and agents/ folders, copilot-instructions.md and mcp-config.json under ~/.copilot/ are read too. Set COPILOT_HOME to 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 reads AGENTS.md, copilot-instructions.md and .github/copilot-instructions.md (added to every request) and instructions/ and .github/instructions/ (with applyTo).

Run them like any command: /review focus on security.

  • ${input:name} is filled from name=value arguments 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.
  • The agent’s body is added on top of OpenCode’s default prompt, it doesn’t replace it.
  • tools becomes permissions. Built-in names (search/codebase, editFiles, runInTerminal, web/fetch, …) and MCP tools (github/*, github/get_issue) are mapped.
  • agents limits which subagents it may call.
  • user-invocable: false makes it a subagent only. disable-model-invocation: true makes it a primary agent only.
  • model works as written. Copilot’s display names become GitHub Copilot models in OpenCode: GPT-6 Luna turns into github-copilot/gpt-6-luna and Claude Sonnet 4.5 (copilot) into github-copilot/claude-sonnet-4.5. Names already written as provider/model are used as they are. Use the models option when a name doesn’t translate, and modelProvider to use another provider.
  • todo maps to OpenCode’s todo list.

${env:NAME}, ${workspaceFolder} and ${userHome} are filled in. For ${input:...}, see MCP secrets.

  • 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.