Clean context matters more than a better prompt

Posted on Nov 28, 2026 · updated Dec 2, 2026 · 2 min read

Unless you are living under a rock, everyone and their mother has implemented or is partially implementing prompt-driven documentation. As you experiment, you are constantly reworking system prompts so your AI outputs get better. Through these exercises, what I learnt was that most of the time the prompt is fine, but hardly any effort has been spent cleaning up data, which means feeding the model bloated nav bars, cookie banners, and broken PDF tables.

Five open-source projects that clean up context

Which tools can turn messy websites and documentation into clean context? These are the five I keep coming back to:

  1. AnswerDotAI/llms-txt (proposed by Jeremy Howard at Answer.AI): Introduces the /llms.txt standard. The file sits at the root of your site’s directory and hands your core Markdown docs to AI agents without the noisy HTML. As a starter exercise, map out what your top 10 product or docs pages would look like inside one root llms.txt index.

  2. agent-ecosystem/afdocs (created by Dachary Carey): Absolutely brilliant open-source CLI built for Agent Experience (AX). AX is how well AI coding agents can fetch and read your docs without hitting truncation limits enforced by the model. It runs 28 automated checks across llms.txt discovery, Markdown availability, and page size. Try running afdocs against your production docs URL and see what it discovers.

  3. microsoft/markitdown (Microsoft): If you author content for regulated industries and much of your information lives in Word docs, PDFs, Excel sheets, and slide decks, this Python utility converts these to structured Markdown.

  4. jina-ai/reader (Jina AI): I discovered Jina AI recently when I was trying to get a stripped-down Markdown version of a web page. Prepend r.jina.ai/ to any live URL and you get a stripped-down version. I would recommend you do this exercise to understand how an AI scraper would read your pages.

  5. mendableai/firecrawl (Caleb Peffer, Nick Camara, and Eric Ciarla, YC S22): Many modern sites load content with JavaScript in the browser, so basic AI scrapers just hit an empty page. Firecrawl crawls entire JavaScript-heavy sites into clean Markdown or structured JSON.

Where to start

If you must try something out of this list, let it be Dachary’s afdocs CLI on your docs site, just to see how much clutter a model has to wade through.

Sources