惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Martin Fowler
Martin Fowler
有赞技术团队
有赞技术团队
博客园_首页
H
Help Net Security
GbyAI
GbyAI
aimingoo的专栏
aimingoo的专栏
V
Visual Studio Blog
The Cloudflare Blog
腾讯CDC
Jina AI
Jina AI
Last Week in AI
Last Week in AI
月光博客
月光博客
博客园 - 叶小钗
Google DeepMind News
Google DeepMind News
B
Blog RSS Feed
Blog — PlanetScale
Blog — PlanetScale
人人都是产品经理
人人都是产品经理
Engineering at Meta
Engineering at Meta
Y
Y Combinator Blog
Hugging Face - Blog
Hugging Face - Blog
博客园 - 聂微东
爱范儿
爱范儿
N
Netflix TechBlog - Medium
F
Fortinet All Blogs

Mintlify Blog

22 UX improvements to the web editor Introducing the Mintlify Help Center Starter Kit Introducing the collaborative editor built for teams and agents Workflows, rebuilt Is your documentation agent-ready? Mintlify raises $45M Series B led by Andreessen Horowitz and Salesforce Ventures 5 things you didn't know you could do in the Mintlify web editor The improved Mintlify CLI Docs on autopilot: From zero to self-maintaining with Mintlify The state of agent traffic in documentation (March 2026) How we built a virtual filesystem for our Assistant We Replaced Our Internal Wiki With a Slack Bot. You Should Too. 8 ways teams use Mintlify to keep docs updated automatically Documentation is your AI interface What three years of watching AI in production taught us Bridging two JSX runtimes: How we solved Astro's React children problem AI agents are shipping faster than anyone can document Knowledge management systems for technical teams Workflows: Automate documentation maintenance Mintlify acquires Helicone to redefine AI knowledge infrastructure Why more product managers are switching to Mintlify Auto-generating documentation sites from GitHub repos Your docs, your frontend, our content engine Take control of your documentation system Almost half your docs traffic is AI, time to understand the agent experience @mintlify for better docs, faster Mintlify for Enterprise Real llms.txt examples from leading tech companies (and what they got right) Mintlify + Claude Opus 4.6: Powering AI-native knowledge management Declaring Clankruptcy: An experiment in agent orchestration
Improved agent experience with llms.txt and content negot...
Peri Langlois · 2026-01-29 · via Mintlify Blog

Agents don’t browse the web the way humans do. They don’t need layout, styling, client side JavaScript, or decorative markup. For an agent, anything beyond plain Markdown is noise that consumes additional tokens and increases cost.

Content negotiation is the mechanism that lets a server return different representations of the same resource depending on who is asking. Browsers might ask for HTML. Agents can ask for Markdown. Both can be served from the same URL, without duplicating content or maintaining parallel sites.

Mintlify uses content negotiation to automatically make documentation 30x more efficient, leading to better discoverability for agents, and 30x reduction in token usage.

Turn your company’s knowledge into agent-ready context with Mintlify.

When an agent requests a documentation page, its goal is to extract meaning, not presentation. HTML responses include tags, attributes, styles, and often scripts that add no semantic value for a model. All of that still counts toward context tokens.

When a request includes an Accept: text/markdown header, Mintlify serves clean Markdown instead of HTML, ensuring agents receive only what they need.

llms.txt instruction at the top of every page

Mintlify prepends a dedicated llms.txt index blockquote to all Markdown pages. Previously, this instruction was appended to the bottom of the page. By moving it to the top, agents see guidance immediately, before the rest of the content.

This matters because coding agents like Claude Code and Cursor often truncate or summarize long pages to preserve their own context window. An instruction buried at the bottom of a page is likely to be dropped before the agent ever processes it. Placing guidance at the top ensures it's seen in practice, not just in theory.

For example, when an agent fetches a Mintlify docs page with Accept: text/markdown, the response body begins with:

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.example.com/llms.txt
> Use this file to discover all available pages before exploring further.

The instruction appears before the page body and, when present, before any OpenAPI blocks. It does not change how titles, descriptions, or OpenAPI output are rendered. Human facing documentation remains exactly the same.

Mintlify includes Link and X-Llms-Txt headers on all page responses at the middleware level, including both HTML and Markdown variants. For example:

Link: </llms.txt>; rel="llms-txt", </llms-full.txt>; rel="llms-full-txt"
X-Llms-Txt: /llms.txt

The Link header uses standard rel semantics to advertise both the llms.txt index and the full llms-full.txt file, allowing agents to discover the documentation index directly from headers without inspecting the response body. The X-Llms-Txt header provides a simpler, single-value alternative for tooling that doesn't parse Link headers.

These headers are included on responses in localhost, single tenant, and production environments, whether the request explicitly accepts Markdown or not. This means an agent can discover the llms.txt index from any page without needing to know about it in advance.

Markdown responses also include an X-Robots-Tag: noindex, nofollow header, ensuring search engines don't index the Markdown variant while agents can still access it freely.

With content negotiation, documentation authors do not need to choose between humans and agents. The same URL can serve styled HTML to browsers and clean Markdown to models.

Mintlify handles the negotiation, the headers, and the llms.txt integration so teams do not have to build or maintain separate pipelines.

The result is documentation that is cheaper for agents to consume, easier for models to understand, and unchanged for humans reading it in the browser.

Ensure AI agents can reason over accurate documentation with Mintlify.