Replies: 8 comments 8 replies
-
|
For the record I made this PR because I wanted to build a mcp on top of it, but Matt ended up using kapa ai. So +1 for removing it |
Beta Was this translation helpful? Give feedback.
-
|
I've had success with it and the MCP tied together. Helps prevent any weird hallucinations |
Beta Was this translation helpful? Give feedback.
-
|
I've had success with it, but the biggest win for me is being able to copy docs as markdown (hence my enthusiasm for this delucis/starlight-llms-txt#32) you can see it in action on the Expo docs |
Beta Was this translation helpful? Give feedback.
-
|
I agree. I think the best replacement would be markdown versions of pages. We could then replace llms.txt with a static file that just links to the top level nav items |
Beta Was this translation helpful? Give feedback.
-
|
Thanks @ArmandPhilippot for bringing this to my attention and inviting feedback. I'm evidently part of the small minority that uses Astro's llms.txt endpoints, and I appreciate the request for input before discontinuing them. I think Astro should do whatever's in its best interest. I agree that it doesn't make sense to retain the build task in its current form when comparing the cost to utilization. That said, I'll discuss some considerations that may be relevant to this decision, share how I use llms.txt, and propose what I think would be closer to an ideal solution. Two Different Use CasesThe referenced articles evaluate llms.txt against a specific purpose: SEO and crawler visibility. The authors—Semrush, Daydream, and Ahrefs—are SEO-focused companies assessing whether llms.txt influences LLM training crawlers or improves "AI rankings". Consistent with their findings, it does appear that no major LLM provider has confirmed they use llms.txt files. However, there's a distinct second use case: RAG for LLM-assisted code generation. This is what Astro's own docs describe:
The conclusions "llms.txt files are not used by AI tools" and "provide no value" apply to crawler/training use cases. They don't address whether the files are useful for developers grounding their coding agents in current documentation. Comparing the AlternativesOne way or another, LLMs need current context to generate correct code. The current alternatives to llms.txt are:
For developer documentation—which is almost always authored in markdown—the current ecosystem often looks like: llms.txt short-circuits this unnecessary round-trip. How I use llms.txtI use llms.txt to provide local, authoritative context for LLM code generation. My workflow:
Here's the script I use for steps 1 and 2. The result is a set of semantically organized, token-efficient "chunks" that can be progressively disclosed as needed. For example: This approach aligns with the Agent Skills protocol: contextually relevant files organized in folders, accessed on demand. This approach has concrete benefits:
Why Usage Is LowI suspect low adoption stems from two factors:
These services are convenient, but they introduce dependencies, network latency, and security considerations that some of us prefer to avoid. For open-source projects especially, having documentation RAG depend on closed-source MCP servers feels like a step backward. Optimizing Build Times23 seconds does seem long for what's essentially MDX → Markdown. Does the Starlight plugin inherit overhead from the Astro build pipeline? This might include module resolution, AST parsing, schema validation, component rendering, and similar processes. Have you considered a dedicated script that just strips JSX tags and copies the markdown content directly? If parallelized across files you could probably achieve sub-second builds while preserving the same output. Closer to an Ideal SolutionI wouldn't say that llms.txt in its current form is the solution. What makes the most sense to me at this point is author-published LLM-optimized docs as a package. I recently encountered an example of this in the form of Effect best-practices documentation: Effect Solutions
This is a really cool idea. But given the simplicity and wide adoption of Agent Skills, I think it makes more sense to have a standardized skill for doc retrieval that all documentation authors can adhere to. This could look something like: Developers locally install what they need just like we do with source code. I welcome any feedback on this. In SummaryIf the maintenance burden and build time aren't justifiable for <0.1% of traffic, I completely understand the decision. If the endpoints are discontinued, I'll likely create a script similar to the one I shared to source the MDX docs directly from GitHub. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
LOL. Looks like Astro has compute on tap now. Congrats! 🎉 |
Beta Was this translation helpful? Give feedback.
-
|
I revisited our numbers and worked out that our I’d like to push for us to merge #13538 removing the resource. Thanks to everyone here who provided helpful feedback and apologies in advance to anyone who was relying on this. We will likely still revisit better AI support in the future, for example to add Markdown content for each individual page as suggested above. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In #11439 (April, 2025) we added the https://github.com/delucis/starlight-llms-txt plugin to build
llms.txtand associated files because we considered this to be a potentially helpful resource, as proposed for adoption by https://llmstxt.org/.I’m not sure this has panned out. Looking at data we have for the last 7 days, requests for files like this made up <0.1% of our traffic. There’s still no clear indication that major AI tools actually uses
llms.txtfiles or that they have any value.123 This is born out also by our attempts to gather any kind of feedback about it. Even people who were in favour of adding llms.txt to our docs weren’t able to provide much feedback that it was helpful and we don’t really have evidence of anyone using it.Looking at some recent build logs, generating these files took ~23 seconds. That’s not a huge absolute number, but it’s still 10% of that build’s total, so significant. Even over a relatively quiet month like December, it likely accounted for ~2.5 hours of CI time (and we build both on GitHub Actions and Netlify, so that is duplicated across those.)
There is also maintenance overhead. We should in theory be keeping our custom llms.txt configuration in mind as we add content to the documentation site to make sure content is correctly categorised. I don’t think we currently do particularly, which speaks to our doubts about the value of the files.4 The other side of the maintenance is maintaining the Starlight plugin at all. I keep it ticking over primarily because we’re using it in docs, but would happily deprecate it or hand it off to another maintainer if we were no longer using it here.
In summary:
Given the above, I’d like to propose we remove the plugin that generates llms.txt and update the “Building Astro sites with AI tools” page to reflect that.
That said, I’m open to hearing why these files are useful and are providing value. We just need some evidence for that.
Footnotes
Tushar Pol, “What Is LLMs.txt & Should You Use It?”, Semrush Blog (November 26, 2025) ↩
Ryan Law, “What Is llms.txt, and Should You Care About It?”, ahrefs blog (April 22, 2025) ↩
“The Case Against llms.txt: Why the Hype Outpaces the Reality”, daydream blog (June 5, 2025) ↩
https://github.com/withastro/docs/issues/13007 ↩
Beta Was this translation helpful? Give feedback.
All reactions