Skip to content
HN On Hacker News ↗

Serve Markdown to AI Agents with Accept Headers

▲ 176 points 108 comments by tilt 2w ago HN discussion ↗

Pangram verdict · v3.3

We believe that this entire text is AI.

100 %

AI likelihood · overall

AI
0% human-written 100% AI-generated
SEGMENTS · HUMAN 0 of 1
SEGMENTS · AI 1 of 1
WORD COUNT 220
PEAK AI % 100% · §1
Analyzed
Aug 26
backend: pangram/v3.3
Segments scanned
1 windows
avg 220 words each
Distribution
0 / 100%
human / AI fraction
Verdict
AI
Pangram v3.3

Article text · 220 words · 1 segments analyzed

Human AI-generated
§1 AI · 100%

Serve Markdown to AI agents with content negotiation Your site already has the content. Serving a Markdown variant lets agent AI clients skip nav/scripts/layout markup and read the content directly. 01 — Tokens A fraction of the bytes. Markdown drops nav, styles, scripts, and layout wrappers. Agents spend context on your prose, not your DOM. 02 — Retrieval Higher signal-to-noise. No ads, related-content rails, or modal overlays muddying the text a RAG pipeline has to embed. 03 — Latency Faster first token. Less to fetch, less to parse, less to stuff into the context window before the model starts thinking. How AI-ready is your URL? Serves Markdown for Accept: text/markdown Sets Vary: Accept Rejects unsupported types with 406 Honors q-values Hit a URL withAccept: text/markdown. We make the request from our edge. See what the origin actually returns. Where to next. Quick start The smallest working setup Three steps. One server, two responses. Guides Fundamentals & correctness Vary, q-values, 406, caching, and the Cloudflare zero-config shortcut. Recipes Copy-paste configs Nginx, Caddy, WordPress, Discourse, Laravel, Rails, Cloudflare Workers, Next.js, Astro, Apache, SvelteKit, Nuxt/Nitro, Express, Go, Django. Status AI agent support matrix Which AI agents send Accept: text/markdown when their browse or fetch tools hit a URL. Reference Standards & sources RFC 9110, RFC 7763, the text/markdown media type, and adjacent specs.