Skip to content

How it works

Every time OpenCode starts:

πŸ”
Find
project + home
πŸ₯‡
Dedupe
project beats home
πŸ›‘οΈ
Respect
your config beats both
✨
Ready
all loaded

So if you already have an agent called reviewer, a Copilot agent with the same name won’t replace it. Your own config always wins.

General instructions ride along with every request. Scoped ones (with applyTo) wait until they’re actually relevant:

  1. πŸ™‹
    You ask
    β€œfix the login form” β€” copilot-instructions.md is already attached.
  2. ✏️
    The model edits a file
    It touches src/ui/Login.tsx.
  3. 🎯
    A match!
    react.instructions.md has applyTo: "src/ui/**", so it joins the session from the next request on.

A big repo with a dozen instruction files doesn’t stuff all of them into every prompt. Files without applyTo are skipped, because in Copilot you attach those by hand anyway.

With watch on (the default), save a prompt file and the new version is used the next time you run the command. No restart.

Copilot agents list the tools they may use; OpenCode uses permissions. The plugin translates one into the other, and anything not listed is denied:

reviewer.agent.md
OpenCode permissions
search/codebaseβœ… grep, glob, readweb/fetchβœ… webfetchgithub/*βœ… GitHub MCP tools(not listed)β›” everything else

If a tool name has no OpenCode equivalent, you get a warning in the log and the agent works without it.