Answer: To create a custom environment for GitHub Copilot agents using GitHub Codespaces, add the copilotd host feature to .devcontainer/devcontainer.json, then commit and push the configuration and create a codespace on that branch (or rebuild an existing codespace's container). Status: Confirmed Entry: tool/github-copilot/agents-and-automation/custom-environment-codespaces Revision: 2 Digest: sha256:b7eb29fbdc2a167c (changes whenever the content changes) Timeline: Created: 2026-11-13T03:26:42Z Last changed: 2026-11-17T13:23:45Z (log inspection command: — → tail -F /workspaces/.copilotd/logs/copilotd.log) Last verified: 2026-11-20T13:06:25Z Next check: 2026-11-21T13:06:25Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of configuration file | .devcontainer/devcontainer.json | [1] | 2026-11-20 host feature | ghcr.io/github/copilot-host/copilotd:0 | [1] | 2026-11-20 prerelease channel | :prerelease | [1] | 2026-11-20 create codespace command | gh codespace create -r OWNER/REPOSITORY -b BRANCH | [1] | 2026-11-20 rebuild codespace command | gh codespace rebuild -c CODESPACE-NAME | [1] | 2026-11-20 log inspection command | tail -F /workspaces/.copilotd/logs/copilotd.log | [1] | 2026-11-20 Sources: [1] GitHub. "Creating a custom environment for agents - GitHub Docs". https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-cloud-agent/create-a-custom-environment Role: primary. Accessed: 2026-11-20T13:06:25Z Quote: "create or edit .devcontainer/devcontainer.json to add the host feature" (Supports: configuration file) Quote: ""ghcr.io/github/copilot-host/copilotd:0" : { }" (Supports: host feature) Quote: "Use :prerelease instead of :0 for the prerelease channel." (Supports: prerelease channel) Quote: "gh codespace create -r OWNER/REPOSITORY -b BRANCH" (Supports: create codespace command) Quote: "gh codespace rebuild -c CODESPACE-NAME" (Supports: rebuild codespace command) Quote: "tail -F /workspaces/.copilotd/logs/copilotd.log" (Supports: log inspection command) Snapshot SHA-256: 7d7abff1f0d43fbcdb7edc1680013d0ac0c0ce958322f3de1634d4ef167b3819 (captured 2026-11-18T13:01:14Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-18T13:01:15Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:06:25Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:06:25Z Last attempt: 2026-11-20T13:06:25Z Notes and limitations: Extracted automatically from a single official source (section "Using GitHub Codespaces"). Related: https://latestn.com/tool/github-copilot/agents-and-automation/custom-environment-linux-machine How do I create a custom environment for GitHub Copilot agents using a Linux machine? https://latestn.com/tool/github-copilot/agents-and-automation/customize-agent-environment-setup-steps How do I customize the development environment for GitHub Copilot cloud agent using Copilot setup steps? https://latestn.com/tool/github-copilot/agents-and-automation/customize-agentic-workflow How do I customize a GitHub Copilot agentic workflow after creating it? https://latestn.com/tool/github-copilot/agents-and-automation/custom-agent-yaml-frontmatter What YAML frontmatter properties can I set in a GitHub Copilot custom agent configuration? https://latestn.com/tool/github-copilot/agents-and-automation/custom-agents-overview What is a custom agent in GitHub Copilot and when should I use one instead of a subagent? https://latestn.com/tool/github-copilot/agents-and-automation/custom-agents-vs-subagents What is the difference between custom agents and subagents in GitHub Copilot? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-17T13:23:45Z | changed | log inspection command: — → tail -F /workspaces/.copilotd/logs/copilotd.log | [1] 2026-11-17T13:23:45Z | changed | configuration file: — → .devcontainer/devcontainer.json | [1] 2026-11-17T13:23:45Z | changed | log path: /workspaces/.copilotd/logs/copilotd.log → — | [1] 2026-11-17T13:23:45Z | changed | config file: .devcontainer/devcontainer.json → — | [1] 2026-11-13T03:26:42Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/github-copilot/agents-and-automation/custom-environment-codespaces/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/github-copilot/agents-and-automation/custom-environment-codespaces POST: https://latestn.com/dispute/tool/github-copilot/agents-and-automation/custom-environment-codespaces with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/github-copilot/agents-and-automation/custom-environment-codespaces?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I create a custom environment for GitHub Copilot agents using GitHub Codespaces? Revision 2, last verified 2026-11-20T13:06:25Z. https://latestn.com/tool/github-copilot/agents-and-automation/custom-environment-codespaces (accessed 2026-11-21T09:54:02Z). @misc{LatestN_tool_github_copilot_agents_and_automation_custom_environment_codespaces_r2, title = {How do I create a custom environment for GitHub Copilot agents using GitHub Codespaces?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/github-copilot/agents-and-automation/custom-environment-codespaces}}, note = {Revision 2; digest sha256:b7eb29fbdc2a167c; last verified 2026-11-20T13:06:25Z; accessed 2026-11-21T09:54:02Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/github-copilot/agents-and-automation/custom-environment-codespaces