Three weeks ago, I was skeptical. Really skeptical. Every time a new SEO acronym lands on Twitter, GEO, E-E-A-T, whatever, my instinct is to ignore it and ship features that matter to actual users. But then I read about /llms.txt and something clicked. This wasn't another marketing repackaging of SEO best practices. This was a developer recognizing that AI models consume content differently than browsers do, and designing for that difference makes genuine sense.
I'd been watching ChatGPT's search capabilities improve, wondering if our site in Islamabad was even visible to it. We run a decent amount of technical content, tutorials, infrastructure guides, debugging posts, the kind of stuff people ask AI about. So on a Friday afternoon, I decided to test it. Two hours later, we had /llms.txt live on production. The referral traffic that followed convinced me this is worth taking seriously.
Why This Matters More Than Another SEO Trend
Here's the core insight that hooked me: search engines used to be passive indexers. They'd crawl your HTML, ignore your JavaScript complexity, and move on. LLMs are different. They're not trying to rank your page or count your links. They're trying to synthesize accurate information from your content while staying within token budgets.
A typical HTML page carries a ton of garbage, tracking pixels, analytics scripts, nested divs, CSS frameworks, cookie banners. All of that burns tokens without adding information value. An LLM reading your site doesn't care about your design. It cares about semantic clarity and efficient token usage. /llms.txt strips away the noise and gives AI models exactly what they need: clean, hierarchical information about what your site does and where the actual content lives.
The proposal is elegant. You provide two files: /llms.txt for concise metadata (what you do, your main categories, featured resources), and optionally /llms-full.txt for sites with deep content libraries that want to expose their full architecture to models with 128k context windows.
The Implementation Was Trivial (But Effective)
I implemented this in Next.js App Router, and honestly, it's one of the simplest production features I've shipped in months. No database gymnastics, no caching complexities. Just a dynamic route handler that generates clean Markdown once daily.
Here's the code that actually changed our referral patterns:
export const dynamic = "force-static";
export const revalidate = 86400; // 24-hour cache
export async function GET() {
const categories = await fetchTopicCategories();
const content = `# Our Site > Technical Knowledge Base
An index of debugging guides, infrastructure patterns, and production battle stories.
## Core Categories
${categories.map(cat => `- [${cat.name}](${siteUrl}/${cat.slug}): ${cat.description}`).join('\n')}
## Featured Tools & Guides
${featuredTools.map(tool => `- [${tool.name}](${siteUrl}/tools/${tool.slug})`).join('\n')}
## Latest Trending Topics
${trendingTopics.slice(0, 20).map(topic => `- ${topic.title}`).join('\n')}
`;
return new Response(content, {
headers: { "Content-Type": "text/plain; charset=utf-8" },
});
}
The key was making it dynamic. A static file decays as your site grows. This version queries your database, stays fresh, and requires zero manual maintenance. Cache it for 24 hours, and you've got an always-current API for AI models.
What I Got Wrong About This
I initially dismissed /llms.txt as performative SEO theater. I was wrong. The difference between this and traditional SEO is that it's developer-first. You're not optimizing for algorithms you don't control. You're explicitly designing a contract between your site and AI systems. That's fundamentally different.
What surprised me was the speed of adoption. Within two weeks, we saw legitimate traffic from ChatGPT Search and Perplexity. These weren't bots burning crawler bandwidth. They were actual users asking questions, getting answers sourced from our content, and clicking through. The referral pattern felt genuine.
My only reservation: this only works if LLMs continue to respect this convention. If they don't, it's theater. But given how quickly OpenAI and Anthropic are moving on agent frameworks, I'm betting they will.
What's Your Site Missing?
If you're running any content that people ask LLMs about, tutorials, documentation, guides, problem-solving resources, you should implement this today. It takes two hours, costs nothing, and might start sending you actual traffic from the search engines that actually matter right now.
The question I'm still sitting with: as AI search becomes the primary discovery mechanism, do we need to rethink how we structure content across the entire web?
Source: This post was inspired by "We Watched ChatGPT Search Index Our Site via /llms.txt, Here's the Architecture, Server Logs, and Real Referral Traffic" by Dev.to. Read the original article