Menu

Serve Markdown to AI Agents with Accept Headers
πŸ“°

Serve Markdown to AI Agents with Accept Headers

Hacker NewsΒ·2 months ago
#4PdzRgoT
Reading 0:00
15s threshold

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 with Accept: 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.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.