Migrate to GitHub Copilot SDK for background agent functionality (bundled)#5
Migrate to GitHub Copilot SDK for background agent functionality (bundled)#5
Conversation
Co-authored-by: ranchhandrobotics <93450393+ranchhandrobotics@users.noreply.github.com>
Co-authored-by: ranchhandrobotics <93450393+ranchhandrobotics@users.noreply.github.com>
Co-authored-by: ranchhandrobotics <93450393+ranchhandrobotics@users.noreply.github.com>
|
@copilot I'd rather have only one codepath to test - instead if the sdk isn't installed offer to install it for them, otherwise the extension is not available. |
Co-authored-by: ranchhandrobotics <93450393+ranchhandrobotics@users.noreply.github.com>
Implemented single code path as requested. The extension now:
All fallback code removed (~140 lines). Extension validates CLI presence before opening UI and provides guided installation. Commit: 695edda |
|
@copilot since the sdk is available as an npm package why can't we install it into the extension and carry it with us? |
Co-authored-by: ranchhandrobotics <93450393+ranchhandrobotics@users.noreply.github.com>
You're absolutely right! The SDK is already bundled as an npm dependency ( Removed all installation prompts and checks - the extension now works out of the box with the bundled SDK. No separate installation needed! Changes:
Commit: 06d267f |
|
@copilot we shouldn't need the cli setting if we include the sdk with our extension |
Co-authored-by: ranchhandrobotics <93450393+ranchhandrobotics@users.noreply.github.com>
Agreed! Removed the The extension now has zero configuration requirements - it just works out of the box using the bundled SDK/CLI. Commit: 98ae277 |
|
@copilot Update this change to 0.1.8, with the documentation at https://github.com/github/copilot-sdk/tree/main/nodejs |
I checked the available versions of Did you mean:
Please clarify which version you'd like me to use, and I'll update the dependency accordingly. |
|
@copilot yes, i meant the latest - which is 0.1.22 |
Co-authored-by: ranchhandrobotics <93450393+ranchhandrobotics@users.noreply.github.com>
|
Don't forget to use copilot sdk to list the models that copilot sdk can access, and expose them to the webview. I don't think copilot sdk exposes an auto mode, so I think we need to expose the raw models and save the last selection. |
Replaces direct
vscode.lmLanguage Model API calls with the GitHub Copilot SDK (technical preview, Jan 14 2026) for background agent execution. The SDK and CLI are bundled with the extension - no separate installation or configuration required!Changes
New CopilotSDKService (
src/CopilotSDKService.ts)Updated AIPackageGenerator (
src/AIPackageGenerator.ts)sendAIRequest()method - SDK only (no fallback)Updated CreateNodePanel (
src/CreateNodePanel.ts)Configuration
@github/copilot-sdk@0.1.22(bundled, latest version)rosPackageCreator.useCopilotSDKsetting (SDK now mandatory)rosPackageCreator.copilotCLIPathsetting (no configuration needed)rosPackageCreator.maxAIResponseSizefor response size controlDocumentation
Implementation Notes
Single code path - SDK is bundled as an npm dependency. The extension works immediately after installation with zero setup and zero configuration required. The SDK package includes the CLI binary, so users don't need to install or configure anything.
Benefits:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.