What is Code?
Code (GitHub Copilot) is an AI coding agent that can autonomously plan, build, and execute development tasks, functioning as a collaborative AI pair programmer. You can set up Agent Analytics to see when Code visits your website.
Overview
| Operated By | GitHub |
| Source | Official Website |
| Expected To Follow Robots.txt | Yes |
| Insights Last Updated | September 25, 2026 |
Do you operate this agent? Contact us to suggest an update.
Category
Expected Behavior
Code typically makes several requests within seconds. A single developer leaves quiet gaps, while overlapping sessions can produce steady traffic. Activity comes in short, targeted sessions rather than broad site-wide crawls.
Code's User Agent
| User Agent | Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Code/1.138.0 Chrome/148.0.7778.280 Electron/42.10.0 Safari/537.36 |
How To Block Code With Robots.txt
Add this rule to your robots.txt file to block Code from accessing your website, or use Automatic Robots.txt to block all AI coding agents at once. You can customize which pages are blocked by swapping out / for a different path.
User-agent: Code # https://knownagents.com/agents/code
Disallow: /
Insights for Code
As of September 25, 2026, this data reflects agent visits measured across thousands of websites using Agent Analytics, combined with daily scans of the top 1000 websites and their robots.txt files.
Robots.txt Blocked Percentage
Country of Origin
Top Visited Website Categories
The types of websites most frequently visited by Code.
Frequently Asked Questions
Should I Block Code?
Allow Code if developers rely on your documentation or technical content. Blocking it can make your product harder to build with but does not affect traditional search rankings. For context, 7% of the top websites we track currently have robots.txt rules for Code.
Does Code Follow Robots.txt Rules?
Yes. Code is expected to follow robots.txt rules, so a disallow rule is the appropriate first step. Automatic Robots.txt can add and maintain that rule, while Agent Analytics lets you verify whether Code respects it.
Does Code Access Private Content?
Not unless a developer explicitly provides credentials. Code otherwise reads only public documentation, references, and code examples.
How Can I Tell if Code Is Visiting My Website?
Agent Analytics tracks Code visits in real time. You can also check your server logs for requests whose user-agent string contains "Code". Look for clustered requests across documentation, API reference, and code example pages. Because Code does not publish a verification method, any client can claim its identity and a log match is only a clue.
Why Is Code Visiting My Website?
A developer is working with a product or technology you document. Code retrieved your documentation, API reference, or examples because they were relevant to the code being written.