---
title: "Agents grew up, so did our docs"
description: "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`."
url: "https://swe.quest/articles/agents-grew-up-so-did-our-docs-8f2f020fba109d69"
canonical: "https://neon.com/blog/agents-grew-up-so-did-our-docs"
source: "Neon"
published: "2026-04-23"
difficulty: "medium"
kind: "Case study"
reading_minutes: 8
tags: ["documentation","ai-agents","llms"]
---

# Agents grew up, so did our docs

A post on [Neon](https://swe.quest/sources/neon.md), published 2026-04-23, 8 min read, Case study. Original: [https://neon.com/blog/agents-grew-up-so-did-our-docs](https://neon.com/blog/agents-grew-up-so-did-our-docs)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Documentation](https://swe.quest/tags/documentation.md) (Engineering practices)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)

## Prerequisites

- MDX
- HTTP content negotiation
- web middleware

## Keywords

Neon, llms.txt, MDX, Markdown, Mintlify, afdocs, Claude Code, Cursor

## Related posts

- [Auto-generating MCP Servers from OpenAPI Schemas: Yay or Nay?](https://swe.quest/articles/auto-generating-mcp-servers-from-openapi-schemas-yay-or-nay-ddbbf7dc3df515f6.md): Neon · 2025-05-01 · Easy · 4 min read · AI agents, API design, LLMs
  Auto-generating an MCP server as a 1:1 mapping of an OpenAPI spec works poorly.
- [How AI Assistants Can Decode GitHub Repos for UI Writers](https://swe.quest/articles/how-ai-assistants-can-decode-github-repos-for-ui-writers-bed232efc1e6b9e6.md): Docker · 2024-12-16 · Medium · 9 min read · AI agents, LLMs, Code review, Frontend
  An 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.
- [Our Claude Code Cheatsheet](https://swe.quest/articles/our-claude-code-cheatsheet-ac83fd2d04af578f.md): Neon · 2025-10-14 · Medium · 9 min read · AI for coding, AI agents, Developer productivity
  A Neon engineer's working cheatsheet for Claude Code covers Plan Mode, parallel task agents for multi-lens code review, and context management with /clear, /compact, /context and @file references.
- [Agent Skills in 2026](https://swe.quest/articles/agent-skills-in-2026-5af883e143d09f0c.md): Neon · 2026-01-22 · Medium · 5 min read · AI agents, AI for coding, Developer tools, PostgreSQL
  Neon is launching neondatabase/agent-skills, a single \`using-neon\` skill installable via \`npx skills add\`, built on the Agent Skills spec that originated with Anthropic and became portable across Claude Code, Cursor, VS Code and others once Vercel's \`npx skills\` CLI solved distribution.
- [How We Made Our Docs Test Themselves](https://swe.quest/articles/how-we-made-our-docs-test-themselves-5eac8e20fa6945ec.md): LangChain · 2026-10-13 · Medium · 4 min read · Documentation, AI agents, Testing, CI/CD
  LangChain made its documentation code samples testable by delegating the migration to the Deep Agents CLI using a reusable skill file.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
