Configure Copilot agent environment to match devcontainer#236
Merged
Conversation
Co-authored-by: friggeri <106686+friggeri@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Customize Copilot Coding Agent development environment
Configure Copilot agent environment to match devcontainer
Jan 27, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the Copilot Coding Agent’s pre-run GitHub Actions setup workflow to provision the repo’s multi-language toolchain and install SDK dependencies up front, aligning the agent environment more closely with the devcontainer and existing CI workflows.
Changes:
- Adds PR trigger and expands
copilot-setup-stepsto install Node, Python+uv, Go, and .NET toolchains. - Installs additional tooling (
just,gh-aw) and pre-installs dependencies across SDKs and test harness. - Enables npm caching (and uv caching via
setup-uv) and adds a verification step for installed tools.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
friggeri
reviewed
Jan 27, 2026
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
friggeri
approved these changes
Jan 27, 2026
jmoseley
approved these changes
Jan 28, 2026
|
Sent from my iPhoneBegin forwarded message:From: Noorul Islam K M ***@***.***>Date: January 29, 2026 at 8:09:42 AM ESTTo: github/copilot-sdk ***@***.***>Cc: Subscribed ***@***.***>Subject: Re: [github/copilot-sdk] docs: Update Python cookbook examples (PR #127)Reply-To: github/copilot-sdk ***@***.***>noorul left a comment (github/copilot-sdk#127)
Is there a reason for moving away from kwargs to dict?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
This was referenced Jan 30, 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.
The Copilot Coding Agent's ephemeral environment lacked the multi-language toolchain and dependencies required by this SDK repository, forcing the agent to discover and install them through trial and error during each session.
Changes
Updated
.github/workflows/copilot-setup-steps.ymlto pre-configure the agent environment:The configuration mirrors the devcontainer.json and aligns with existing CI/CD workflows.
Original prompt
Here's the documentation to customize the Copilot Coding Agent environment for a repo, you need to do this to match the devcontainer.json as much as possible:
In your
copilot-setup-steps.ymlfile, you can only customize the following settings of thecopilot-setup-stepsjob. If you try to customize other settings, your changes will be ignored.steps(see above)permissions(see above)runs-on(see below)servicessnapshottimeout-minutes(maximum value:59)For more information on these options, see Workflow syntax for GitHub Actions.
Any value that is set for the
fetch-depthoption of theactions/checkoutaction will be overridden to allow the agent to rollback commits upon request, while mitigating security risks. For more informati...💡 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.