GitHub as the front door
If you build a developer tool, the GitHub repository is the page coding agents read most reliably. Agents reach it through several routes that don’t depend on any search engine: the model knows github.com/owner/repo from training data, the package registry’s repository field points there, agents shell out to gh or curl raw.githubusercontent.com, and doc indexes such as Context7, DeepWiki, GitMCP and Firecrawl’s Developer Index build their content from repositories. None of those requests reaches your own servers, which means a repo can be the main source an agent uses for your product while your analytics show nothing at all.
How agents reach a repository
Section titled “How agents reach a repository”Several agents go further and treat GitHub specially in their code. Gemini CLI’s web_fetch rewrites github.com/.../blob/... URLs to their raw form in its fallback path, and its Gemini-3 tool description tells the model that “GitHub ‘blob’ URLs are automatically converted to raw versions” (web-fetch.ts) verified in code. Crush’s fetch tool description tells the model to use the gh CLI for GitHub URLs when it is installed, and Crush ships a sourcegraph tool that searches code across public GitHub repositories (fetch.md.tpl) verified in code. Pi’s popular pi-web-access package clones GitHub repositories as one of its content extractors verified in code. In Codex’s cloud environments, the “Common dependencies” network preset allows github.com and githubusercontent.com but not arbitrary docs domains, so a repo is reachable where your docs site may not be documented.
What an agent reads, in order
Section titled “What an agent reads, in order”An agent rarely reads a whole repository, so what matters is what it sees first. The fields below are listed roughly in the order a gh repo view or a README fetch presents them.
| Field | Where agents see it | What to put there |
|---|---|---|
| Repository description | gh repo view header, api.github.com/repos/o/r, search result snippets, Context7 and DeepWiki listings |
One literal sentence: what it is, for which stack, and the install command if it fits (“Rate limiter middleware for Express and Redis. npm i x”) |
| README first 20-40 lines | gh repo view prints the README; raw.githubusercontent.com/.../README.md; registry READMEs copy it |
Name, one-sentence purpose, install command, minimal working example, link to full docs |
| Topics | api.github.com and GitHub search; documented as the repo classification mechanism (GitHub docs) |
Category and framework terms an agent would search: rate-limiting, express, redis |
| Homepage URL | Repo sidebar and API | A docs URL that serves HTML without JavaScript, or Markdown; see docs sites |
docs/ folder and llms.txt |
Context7 indexes Markdown and other doc formats from the repo; GitMCP reads llms.txt, llms-full.txt and the README (gitmcp.io) |
Task-oriented Markdown pages with code examples |
AGENTS.md |
Read by agents working inside a consumer’s repo, not when discovering yours (agents.md) | Usage rules for agents that vendor or extend your code |
| Issues, PRs, discussions | Firecrawl’s Developer Index includes issues and PRs among more than 70M developer documents (changelog) | Answered, searchable error messages |
Of all of these, the README head matters most, and the reason is truncation. Many fetch tools cap or summarise content: Crush’s plain fetch reads at most 100 KB of raw bytes, and Claude Code’s WebFetch passes the converted page through a small summarising model (Shilkov) documented. So badges, banners and long tables of contents push the install command down and spend that budget on noise inferred.
Raw URLs and why they work well
Section titled “Raw URLs and why they work well”raw.githubusercontent.com serves files as text/plain with no JavaScript, no cookie banner and no bot challenge, which is close to ideal input for an agent fetch tool inferred. That makes Markdown in a repo one of the most dependable ways to give an agent clean text, even for agents such as Codex and Gemini CLI that don’t request Markdown through Accept headers (Checkly). If your docs site is built from Markdown in the same repo, linking to the source file of each page from the README gives agents a fallback that a CDN rule can’t break.
DeepWiki and generated wikis
Section titled “DeepWiki and generated wikis”DeepWiki, from Cognition, generates a browsable wiki and an MCP endpoint for any public repo submitted at deepwiki.com. A .devin/wiki.json file at the repo root steers what it generates through repo_notes and a list of pages, with limits of 30 pages and 100 notes on the free tier (Devin docs) documented. The catch is that the generated pages are written by a model reading your source, so they can describe internal functions as if they were public API. Reviewing the generated wiki for your repo, and pinning the important pages in wiki.json, is cheap insurance (details are on doc MCPs).
Stars and training data
Section titled “Stars and training data”Stars don’t appear to affect any agent’s retrieval directly, since none of the search or fetch tools we read in Codex, Gemini CLI, OpenCode, Crush or Pi sorts or filters by stars inferred. Their effect is indirect: popular repositories are linked, forked, discussed and copied far more often, so they appear in more pre-training text, and models recall them more readily and with more accurate APIs inferred. Context7 also refreshes libraries more often as their popularity grows (Context7 docs) documented. The decline of Stack Overflow, whose annual question count fell from about 1.34M in 2022 to roughly 109k in 2025 (devclass), means newer libraries have less Q&A text in training corpora, which shifts weight onto the repository itself and onto live retrieval.
Checklist
Section titled “Checklist”- Description: one literal sentence with the category and stack.
- README line 1-5: name, purpose, install command; first code block is a complete minimal example that runs.
- Topics: 5-10 category and framework terms.
- Homepage: docs URL that renders without JavaScript.
docs/in Markdown, plusllms.txtat the repo root if you maintain one.- Add the repo to Context7 and DeepWiki and check what they generate.
- Put the current major version and its install command near the top, so agents with stale training data see the correction early.
Open questions
Section titled “Open questions”- How often each agent prefers
ghover a web fetch when both are available. This varies with the model and the user’s installed tools, and we’d need transcript sampling to answer it. - Whether GitHub’s own Copilot features read topics or description as ranking signals for Copilot’s repository suggestions.
- How quickly a README change propagates into Context7, DeepWiki and Firecrawl’s index without a manual refresh.
Further reading
Section titled “Further reading”- GitHub docs: classifying a repository with topics
- DeepWiki configuration with
.devin/wiki.json - GitMCP
- Firecrawl Developer Index launch
- Pragmatic Engineer: Stack Overflow is almost dead
Last reviewed 2026-12-02 against Gemini CLI 0.46.0, Crush 9bce86a and pi-web-access 0.48.0. This site is re-reviewed monthly; see maintenance.