GitHub Copilot
When people say “Copilot”, they can mean two different products, and each one reaches the web in its own way. Copilot CLI has a built-in web_fetch tool that runs on the developer’s machine, asks for markdown through content negotiation and pages long documents in 20,000-character windows. It also has a web_search tool served by GitHub’s own MCP server, so searches never touch your site. The Copilot cloud agent runs in a GitHub-hosted sandbox behind a firewall whose default allowlist contains package registries and GitHub hosts but no ordinary documentation or marketing sites, which means a page outside that list is reachable only through web search or an admin’s custom rule. Copilot is closed source, and I couldn’t find its fetch User-Agent, JavaScript behaviour or robots.txt handling documented anywhere.
At a glance
Section titled “At a glance”| Copilot CLI | Copilot cloud agent | |
|---|---|---|
| Fetch tool | web_fetch (since 0.0.374, January 2026) | Bash curl and a built-in Playwright MCP server, inside the sandbox |
| Search tool | web_search via github-mcp-server/web_search | Web search (announced October 2025), provider not named |
| Who issues the request | Developer machine, or the local sandbox proxy | GitHub-hosted sandbox |
| User-Agent | Not documented | Not documented; Playwright likely HeadlessChrome inferred |
| Accept header | Prefers markdown via content negotiation | Not documented |
| JS rendering | Not documented | Yes through Playwright MCP |
| Content conversion | Markdown when the server offers it; conversion details not documented | n/a |
| Size and truncation | 10 MiB body limit, 20,000-character pages with start_index and max_length |
n/a |
| Caching | Not documented | Not documented |
| robots.txt | Not documented | Not documented |
| Permission model | Every URL needs approval unless allowed by flag or settings | Firewall with a recommended allowlist plus admin rules |
How fetching works in Copilot CLI
Section titled “How fetching works in Copilot CLI”Copilot CLI ships as the closed npm package @github/copilot, so everything we know about web_fetch comes from the public changelog and GitHub’s docs. The changelog introduces a “Built in web_fetch tool for fetching web content” in 0.0.374 (2026-01-02), and later entries describe it honouring the local sandbox proxy and the network.allowOutbound setting, which places the request on the developer’s machine documented.
If you read the changelog in order, you can watch the tool harden over 2026 documented:
- 1.0.56 (2026-05-29): prefers markdown via HTTP content negotiation “for cleaner results from documentation sites”.
- 1.0.60 (2026-06-05): blocks loopback, private and cloud-metadata addresses, and stops silently following redirects.
- 1.0.76 (2026-07-29): follows redirects again but asks permission when the target is a different origin; works through mandatory HTTPS proxies.
- 1.0.107: notes truncation when a page is cut at a 10 MiB limit.
- 1.0.109 (2026-11-10): serves pages in windows capped at 20,000 characters, with
start_indexandmax_lengthparameters for paging.
GitHub doesn’t publish the exact Accept string or the User-Agent. We tried a strings dump of the 1.0.119 macOS binary (@github/copilot-darwin-arm64), but it was unreadable because the bundle is compressed, so the UA remains unverified, and Copilot CLI wasn’t part of our Dec 2026 lab run either. Checkly’s content negotiation survey included Copilot among the agents it captured, but if you need the header today, I’d run the logging test below instead of relying on a string from an older build.
For long pages, the 20,000-character window is the number that matters most. A model that reads only the first window of a long reference page sees the top 20,000 characters unless it chooses to page with start_index, so key facts placed early survive best inferred.
How searching works in Copilot CLI
Section titled “How searching works in Copilot CLI”Copilot CLI’s web_search is delivered by the built-in GitHub MCP server and is addressed in custom agent configs as github-mcp-server/web_search (changelog 1.0.100). In repositories hosted only on Azure DevOps, the GitHub MCP server “now exposes only the web_search tool” (1.0.60), which confirms search is a server-side GitHub capability and not a local scraper documented. GitHub doesn’t name the search engine behind it.
In practice, this works the same way as OpenCode’s and Claude Code’s search tools, because a Copilot search doesn’t send a request to your site. Your origin is contacted only if the model then calls web_fetch on a result. Both tools can be disabled with copilot --excluded-tools='web_fetch, web_search' (allowing tools) documented.
URL permissions
Section titled “URL permissions”By default, Copilot CLI treats every URL as something the user has to approve. The rule covers web_fetch and a curated set of network shell commands such as curl and wget, approves http and https separately, and is controlled with --allow-url, --deny-url (deny wins), --allow-all-urls and --allow-all or --yolo, plus persistent allowedUrls and deniedUrls in settings (configure Copilot CLI) documented. That makes Copilot CLI one of the stricter local agents, since a developer who hasn’t pre-approved your domain sees a prompt before the first fetch.
The Copilot cloud agent and its firewall
Section titled “The Copilot cloud agent and its firewall”The Copilot cloud agent (the coding agent that works on issues and opens pull requests) runs in a GitHub-hosted sandbox, and GitHub’s firewall documentation states that “By default, Copilot’s access to the internet is limited by a firewall” documented. The firewall applies to processes started by the agent’s Bash tool and to the built-in Playwright MCP server and its browsers. It doesn’t apply to other MCP servers or to Copilot setup steps, and blocked requests are reported in the pull request body or a comment, along with the blocked address and command.
- Copilot CLI → GitHub MCP server
search query - Copilot CLI → docs.example.com
GET after approval - Cloud agent sandbox → npm, PyPI, crates
allowed - Cloud agent sandbox → docs.example.com
blocked by default
Organisation and repository admins can disable the firewall, turn off the recommended allowlist, or add custom rules as domains (which include subdomains) or as URLs limited by scheme, host and path. GitHub’s own docs are honest about the limits here and warn that “Sophisticated attacks may bypass the firewall”. Web search in the cloud agent was announced on 2025-10-16 for Pro, Pro+, Business and Enterprise, with Business and Enterprise requiring the “Copilot can search the web” policy. The firewall is described as covering Bash and Playwright, not search, so search results probably aren’t filtered by it inferred.
What is on the recommended allowlist (summary of GitHub’s reference)
The allowlist reference groups the default hosts as follows: Azure infrastructure; certificate authority CRL and OCSP hosts (DigiCert, Sectigo, GlobalSign and others); container registries (ghcr.io, Docker Hub, quay.io, mcr.microsoft.com, gcr.io, public.ecr.aws); GitHub content and API hosts (*.githubusercontent.com, codeload.github.com, api.mcp.github.com); Actions artifact storage; and language ecosystems including .NET (nuget.org, dot.net), Dart (pub.dev), Go (go.dev, pkg.go.dev, proxy.golang.org), Haskell, Java (Maven Central, Gradle), Node (registry.npmjs.org, npmjs.com, nodejs.org, deno.land, bun.sh), Perl, PHP (packagist.org), Python (pypi.org, files.pythonhosted.org, Anaconda), Ruby (rubygems.org), Rust (crates.io, static.rust-lang.org), Swift, HashiCorp (registry.terraform.io), JSON Schema (json-schema.org, json.schemastore.org), Playwright browser downloads, and Linux distribution mirrors for Ubuntu, Debian, Fedora, CentOS, Alpine, Arch, SUSE and Red Hat, plus Kubernetes package hosts.
What shows up in your logs
Section titled “What shows up in your logs”| Action | Source | User-Agent | Other signals |
|---|---|---|---|
CLI web_fetch | Developer IP or their sandbox proxy | Not documented | Markdown-preferring Accept; one request per page window is possible if the model pages inferred |
CLI web_search |
None | None | Your site is not contacted |
Cloud agent Bash curl to a non-allowlisted site |
None | None | The request never leaves the sandbox; the PR shows a firewall warning |
| Cloud agent Playwright to an allowlisted host | GitHub-hosted sandbox | Likely HeadlessChrome inferred | Full browser load with sub-resources |
What this means for discoverability
Section titled “What this means for discoverability”For the cloud agent, the hosts that matter are the ones on the allowlist. A library documented only on a vanity domain is invisible to curl inside the sandbox, whereas a README on GitHub or a package page on npm, PyPI, crates.io, pkg.go.dev, NuGet or pub.dev is reachable by default. So putting complete usage docs in the package README and the repository does double duty for Copilot’s cloud agent, and there’s more on that in GitHub as a front door and package registries.
For Copilot CLI, the two levers you control are markdown content negotiation and front-loaded content, since the tool asks for markdown and windows pages at 20,000 characters. Search placement depends on whatever engine sits behind GitHub’s MCP server, and GitHub hasn’t named it. You can compare Copilot with other agents in the matrix and use the test catalog to measure it yourself.
Tests to run against this agent
Section titled “Tests to run against this agent”- CLI fetch headers. Approve a logging endpoint with
--allow-urland ask Copilot CLI to fetch it. Record UA,Accept,Accept-Language,Sec-Fetch-*and the source IP. - Markdown negotiation. Serve different marker phrases for
text/markdownandtext/html. Expected: Copilot CLI quotes the markdown marker. - JS rendering. Serve a page whose phrase is injected by JavaScript. We don’t know what to expect here, but a blank result would show there’s no rendering.
- Windowing. Put a marker after 25,000 characters. Expected: found only if the model pages with
start_index. - robots.txt. Disallow the probe path and watch for a
robots.txtrequest before the page. - Cloud agent firewall. Assign the cloud agent an issue that requires reading a page on your domain. Expected: a firewall warning in the PR, and no request in your logs.
Open questions
Section titled “Open questions”- The Copilot CLI fetch User-Agent, its JavaScript behaviour and its robots.txt behaviour are all undocumented, and test 1 and test 5 would settle the first and last.
- GitHub hasn’t named the search engine behind
github-mcp-server/web_searchor behind cloud agent web search. - This research didn’t cover Copilot inside VS Code and other IDEs, and its fetch path there may differ from the CLI.
Further reading
Section titled “Further reading”- Copilot CLI changelog
- Customizing the Copilot cloud agent firewall
- Copilot allowlist reference
- Copilot coding agent can now search the web
- The Current State of Content Negotiation for AI Agents (Checkly)
Last reviewed 2026-12-02 against Copilot CLI changelog through 1.0.119 and GitHub docs as of that date. This site is re-reviewed monthly; see maintenance.