Repository navigation
Rename github-copilot-sdk to copilot-sdk and update to SDK 2.0 - #987
Merged
Merged
Conversation
The GitHub Copilot SDK was rebranded as the Microsoft Copilot SDK in v2.0.0, and github-copilot-sdk is deprecated on PyPI. Move the folder to match the tutorial's new slug, pin microsoft-copilot-sdk==2.0.6 and pydantic==2.14.4, and port all four scripts to the 2.x API (required mode, nested github, permissions, tools, and events options). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Match the tutorial's brand-neutral slug, chosen after Ahrefs showed "copilot sdk" as the strongest current keyphrase. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
brendaweles
approved these changes
Dec 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates the companion code for Copilot SDK: Put a Coding Agent in Your Python Code (Post 2371, unpublished; admin).
Why
On Nov 17, 2026, the GitHub Copilot SDK was rebranded as the Microsoft Copilot SDK and released as v2.0.0 with breaking changes.
github-copilot-sdkis now deprecated on PyPI, and none of the four scripts ran on 2.x as written. The tutorial was updated to the new package and name, and its slug changed fromgithub-copilot-sdktocopilot-sdk.Changes
github-copilot-sdk/→copilot-sdk/, matching the tutorial's new brand-neutral slug (/copilot-sdk/, chosen after an Ahrefs check showed "copilot sdk" as the strongest current keyphrase). Thecopilot-sdk-codeopt-in (ID 1425) already points at the new path.requirements.txt:microsoft-copilot-sdk==2.0.6,pydantic==2.14.4.CopilotClient(github_token=token)→CopilotClient(mode="coding-agent", github={"token": token})on_permission_request=...→permissions={"on_request": ...}tools=[...]→tools={"definitions": [...]}streaming=True→events={"streaming": True}hello_agent.pyandissue_agent.pynow handle aNonereply.Verification
requirements.txtinto a fresh venv and ran all four scripts against Copilot with a fine-grained PAT.hello_agent.py,issue_agent.py, andrefactor_agent.pyworked as the article describes.ci_agent.pygaveFAILand exit 1 forproject/shopping.py,PASSand exit 0 forproject/test_shopping.py, and left the file unchanged when asked to edit it.ci_agent.pysometimes fails closed. The agent asks to read the repo root, the policy rejects it, and the script exits 1 without reviewing. Run from a standalone folder or the zip download, it works as shown.ruff format --check,ruff check(0.14.1), anddircheck.pypass.🤖 Generated with Claude Code