Skip to content
Guides

Why ChatGPT cites your GitHub README instead of your homepage

6 min read

You ran a prompt in ChatGPT asking how to integrate your software, expecting a link to your main homepage or documentation sub-domain. Instead, the footnoted citation points to a repository on GitHub.

This happens constantly across developer tools, B2B SaaS platforms, and open-source projects. It is not an error by the model, nor is it a random glitch. It is the direct result of how live answer crawlers interact with heavy web frontends compared to lightweight text repositories.

The Technical Asymmetry Between Homepages and Repositories

When ChatGPT answers a prompt using real-time search, it dispatches an answer crawler to fetch, extract, and parse content from web pages. This retrieval process happens in milliseconds before the model synthesizes its final response.

Most modern SaaS homepages are built on complex front-end frameworks like React, Next.js, or Webflow. They rely on client-side rendering, deferred script loading, and interactive animation libraries. When a fast-moving web crawler requests your homepage, it often receives a minimal HTML shell containing empty container tags and script references. If the crawler does not execute JavaScript or times out before rendering finishes, it extracts almost zero useful text.

GitHub repositories behave differently. A GitHub README page returns rendered Markdown embedded directly in the initial HTML response. If an answer crawler requests the raw file URL, it receives unadorned, hyper-dense technical text with no layout shifts, no popups, and zero script dependencies.

Language model pipelines favor sources with high information density per token. A README file contains clear installation commands, environment variables, code snippets, and feature descriptions arranged in sequential headers. Your marketing homepage contains sparse hero copy, floating testimonials, high-level value propositions, and broken text blocks spread across styled containers. Faced with a choice between an empty or visually fragmented homepage and a text-dense README, the retrieval system selects the source that directly answers the user query.

Answer Crawlers Versus Training Crawlers

To fix this issue, you must first understand how AI agents access your site. Blocking or allowing crawlers in your robots.txt file is useless if you confuse training crawlers with answer crawlers.

Training crawlers collect data to build future model weights. Answer crawlers fetch live web pages to generate immediate citations during a user search session. Blocking a training crawler prevents your historical site data from training next year's model, but it does not stop ChatGPT from citing your URL today. Blocking an answer crawler stops citations immediately.

Our crawler index from August 8, 2026, tracked a panel of 54,082 domains, of which 33,670 served a readable robots.txt file. Across those 33,670 readable domains, 5,497 blocked at least one AI crawler, and 2,576 specifically blocked at least one answer crawler.

The breakdown across individual agents out of 33,670 readable domains reveals where site owners focus their blocks:

  • GPTBot (training): 5,080 of 33,670 domains
  • ClaudeBot (training): 4,603 of 33,670 domains
  • Google-Extended (training): 4,275 of 33,670 domains
  • PerplexityBot (search): 2,147 of 33,670 domains
  • ChatGPT-User (search): 2,074 of 33,670 domains
  • OAI-SearchBot (search): 1,579 of 33,670 domains
  • Perplexity-User (search): 1,402 of 33,670 domains
  • Claude-SearchBot (search): 1,400 of 33,670 domains
  • Claude-User (search): 1,384 of 33,670 domains
  • Googlebot (other): 610 of 33,670 domains

In our census of 4,226 active Y Combinator companies conducted on August 7, 2026, 3,755 domains served readable robots.txt files, and 253 blocked at least one AI crawler.

If your marketing site blocks ChatGPT-User or OAI-SearchBot while your GitHub repository remains open, ChatGPT has no choice. It cannot fetch your main domain during search execution, so it falls back to the open GitHub repository.

How to Audit Which Domain ChatGPT Prefers

You cannot evaluate citation behavior by typing a single query into ChatGPT once. Large language models are non-deterministic: the same prompt submitted twice can yield different search decisions, different retrieved URLs, and different citation links.

To audit whether ChatGPT systematically prefers your GitHub README over your primary domain, follow a structured prompt testing sequence:

  1. Draft five query variants covering core installation and setup workflows. For example: "How do I deploy [Brand Name] in production?", "Step by step guide to configure [Brand Name]", or "[Brand Name] core features list".
  2. Submit each query across multiple separate sessions.
  3. Record every cited URL in the output footnotes.
  4. Categorize each URL by host domain: primary commercial domain, documentation sub-domain, or external host such as github.com.

If your commercial domain appears in 1 out of 5 runs while GitHub appears in 4 out of 5 runs, your site suffers from an extraction penalty.

When we measure citation frequencies at Standing, we cover five engines: ChatGPT, Perplexity, Gemini, Claude, and Google AI Overviews. Because single queries yield noisy results, our methodology executes a fixed basket of prompts five times per question per engine. We calculate the result with a Wilson interval rather than an ungrounded point figure.

A result expressed as 20, plus or minus 12, tells you that your primary domain surfaces only occasionally, whereas a score of 80, plus or minus 9, confirms stable domain authority. Competitors run each prompt once, which is why none of them publishes a confidence band.

What Not to Buy and How to Fix the Source

When founders discover that ChatGPT cites their GitHub page instead of their commercial domain, they often turn to quick fixes sold by agency vendors. Most of these products do not work.

Do not buy services promising schema markup optimization for LLMs. Do not waste engineering cycles deploying llms.txt files. We have no evidence standing behind the claim that llms.txt or structured schema markup improves citation frequency in answer engines, and our published research indicates that answer crawlers routinely ignore these files in favor of standard HTML text parsing.

To shift citation authority from GitHub back to your main website, fix the underlying rendering mechanics:

Serve Server-Side Rendered HTML

Ensure your homepage and documentation pages render full text content on the initial HTTP request. Test your pages by disabling JavaScript in your browser or running a fetch request using curl. If your core product copy, feature breakdowns, and installation commands disappear when JavaScript is stripped, answer crawlers like ChatGPT-User cannot parse them effectively.

Match Information Density

GitHub README files win citations because they contain high signal-to-noise ratios. They put installation commands, parameters, code snippets, and setup instructions directly under clear Markdown headers. If your homepage replaces technical specifics with vague marketing copy like "Empower your workflow with next-generation AI," the model will cite the README when users ask functional questions. Put precise technical explanations on your public documentation pages and main domain.

Verify Crawler Accessibility

Inspect your web server configurations and web application firewalls. Security layers like Cloudflare or AWS WAF frequently flag fast-moving search bots like OAI-SearchBot or Claude-SearchBot as malicious scraping traffic, returning a 403 Forbidden status code while letting standard desktop browsers through. GitHub never blocks these crawlers, giving your repository an immediate availability advantage.

Monitoring these dynamics across multiple web properties requires systematic tracking over time. Standing provides automated tracking across engines, offering a Track tier at $100 per month for 3 domains, an Optimize tier at $300 per month for 5 domains with custom prompt configurations, and an Agency tier at $500 per month for 50 domains with monthly re-scanning.

If your GitHub repository is currently outranking your homepage in ChatGPT citations, do not treat it as an algorithm penalty. Treat it as a delivery failure: your GitHub repository is handing plain text directly to the crawler, while your homepage is handing it an empty JavaScript bundle. Fix the delivery pipeline, keep your crawlers unblocked, and the citations will follow the content.

See where you actually stand

Run a free check on your domain. Five AI surfaces, the real buying questions, about a minute. No signup.

Run a free check

Keep reading