diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md new file mode 100644 index 000000000000..381533e006b0 --- /dev/null +++ b/.github/copilot-instructions.md @@ -0,0 +1,100 @@ +# Copilot instructions — OpenCode monorepo + +Purpose: concise, repo-specific guidance for Copilot/automation sessions. + +--- + +## Quick setup & prerequisites + +- Requires Bun 1.3+ (repo packageManager: `bun@...`). +- From repo root: + - `bun install` — install workspace deps + - `bun dev` — start default dev server (runs `packages/opencode` by default) + - `bun run typecheck` — turbo typecheck across workspace +- Note: tests are intentionally guarded at repo root (root `test` prints an error). Run tests from the package that owns them (see examples below). + +## Build / test / lint (examples) + +- General + - Build a standalone OpenCode binary: `./packages/opencode/script/build.ts --single` + - Run a package script from repo root: `bun run --cwd packages/