The AI SDK harness layer now supports GitHub Copilot through the official @ai-sdk/harness-github-copilot adapter. The harness layer lets your application run different coding agents through the same HarnessAgent interface, so you can switch agents without changing your application code.
Pass githubCopilot to HarnessAgent:
Under the hood, the adapter uses @ai-sdk/harness-acp to connect GitHub Copilot to HarnessAgent through the Agent Client Protocol (ACP).
Supported harnesses now include, in addition to GitHub Copilot, Claude Code, Cline, Codex, Cursor, Deep Agents, fx, Grok Build, OpenCode, and Pi, with more coming soon.
Read the GitHub Copilot harness documentation to get started.