Making your site visible to LLMs and AI agents: 6 techniques that work, 8 that don't
Six techniques for making a site readable to LLMs and AI agents, re-ranked using six months of server logs from evilmartians.com. The logs reveal two kinds of AI reader. Coding agents like Claude Code request Markdown via `Accept: text/markdown`, which drew more than half of agent reads. Chat assistants like ChatGPT-User fetch plain HTML and asked for Markdown on under 1% of requests. The recommended order is a robots.txt audit with a Content-Signal line, clean server-rendered semantic HTML, `.md` routes (roughly 80% fewer tokens than HTML), `<link>`/Link headers, and content negotiation, with llms.txt last because almost no AI tool reads it; hidden hint divs drew zero follows.
Related posts
- Agents grew up, so did our docs
Neon mediumAdept
Neon made its docs agent-readable through a build-time MDX-to-Markdown converter (~1,400 files, ~30 custom React components flattened), `.md` URL rewrites, and middleware that serves Markdown based on User-Agent and `Accept: text/markdown`. Each page also gets breadcrumb and related-docs context. A scan of 250+ doc sites found that 53% serve Markdown via `.md`, 41% honor content negotiation, 93% publish llms.txt, and only 9% return content-type-aware 404s. The lessons: serve Markdown from canonical URLs from the start, structure llms.txt hierarchically (~200 entries plus sub-indexes instead of 1,000+ flat links), detect HTTP clients like axios and got as agents, and add agent traffic analytics early.
- How AI Assistants Can Decode GitHub Repos for UI Writers
Docker mediumAdeptAn LLM agent can reliably flag user-facing copy changes in a branch when it is given narrow tools and expert hints about what "user-facing" means. GitHub Copilot's repo chat could not even count open PRs. A first prompt that gave the model bash and raw git diff also failed: diffs were huge, important files were buried and extra tools invited hallucination. The working two-step flow first lists only likely UI files (using --files-only and --no-pager with an alpine/git container) and saves the list. It then diffs just those files against main with --no-color --minimal, guided by frontend-engineer hints about JSX text nodes, notifications, toasts and Error constructors. This produced an accurate list of copy changes on a real Docker PR.
- What do LLMs think when you don't tell them what to think about?
Together AI easyNovicePrompting LLMs with minimal, topic-neutral seeds ("Actually," "Let's think step by step," or just ".") and no chat template reveals stable, family-specific topical priors. GPT-OSS defaults to programming (27.1%) and math (24.6%), much of it advanced (68.2%). Llama leans literary, DeepSeek over-produces religious content, and Qwen generates multiple-choice exam questions. Degenerate outputs are also systematic: GPT-OSS repeats code-block delimiters, Qwen emits emojis and Chinese text, and Llama sometimes outputs real personal social media URLs. These patterns hold across prompts, embedding models and labelers, so unconstrained generation can serve as a fingerprinting and privacy-auditing signal that standard benchmarks miss.
- Using an AI Assistant to Read Tool Documentation
Docker mediumAdeptLLM agents can learn unfamiliar command-line tools by reading their documentation and reacting to Unix error signals. Each tool is packaged as a minimal Docker image exposed through two OpenAI-style tool definitions: one runs the command, the other reads its man page. Failures surface through exit codes and stderr, which the model uses to retry, and GPT-4, Llama 3.1 and Mistral responded to those errors differently. Across roughly 90 tools, only about 60% had man pages, so the fallback chain was man, --help, -h, then bad arguments to capture stderr. Long man pages were chunked by their standard sections for RAG, with priority given to argument descriptions and usage examples.
- From OpenAI to Open LLMs with Messages API on Hugging Face
Hugging Face mediumAdeptText Generation Inference 1.4.0 adds a Messages API compatible with OpenAI's Chat Completion API, so open LLMs on Inference Endpoints can be called from existing OpenAI client code by changing the base URL and token. The guide deploys Nous-Hermes-2-Mixtral-8x7B-DPO via huggingface_hub with TGI token-limit settings and then calls it from the OpenAI Python and JavaScript clients. It also plugs the endpoint into LangChain (ChatOpenAI) and LlamaIndex (OpenAILike) RAG pipelines. Limitations: no function calling, only models with a chat_template, and a subset of parameters (stream, max_tokens, temperature, top_p, seed, logprobs, frequency_penalty).