
ALT Is hex2txt still needed? No, not really! ExDoc and HexDocs natively provide more features than hex2txt: ExDoc now generates llms.txt by default. As of ExDoc v0.40.0 (January 2026), ExDoc generates an llms.txt file and outputs documentation in Markdown format. (The new "Copy Markdown" button on every page is a nice quality of life improvement, too!) HexDocs serves these Markdown files. For packages built with ExDoc v0.40.0 and above, you can fetch https://hexdocs.pm/<package>/llms.txt (e.g. https://hexdocs.pm/phoenix_live_view/llms.txt ), or append .md to any docs page (e.g. https://hexdocs.pm/ecto/Ecto.md) to get the raw Markdown. You can also pull the same artifacts offline with mix hex.docs fetch <package>. Furthermore, the wider ecosystem provides additional tooling that is designed to be used natively with coding harnesses. For example, check out the usage_rules library and MCP servers like Tidewave and HexDocs MCP. The new HexDocs search engine is also really handy. ...snip...







