Cultivate the web
for AI.

AI agents visit your website and get 16,000 tokens of HTML noise. AgentXP gives them 800 tokens of clean markdown instead.
One line of middleware detects agents, strips chrome, expands hidden content, resolves URLs, and serves structured markdown. Humans see nothing different. Open source, MIT licensed.
import { withAgentXP } from '@reaganhsu/agentxp-next'
export default withAgentXP()What your site gets
Agent detection
Identifies 20+ AI crawlers by User-Agent. Also responds to explicit Accept: text/markdown requests from any agent.
Markdown pipeline
Expands hidden content, extracts the page body, converts to clean markdown, and truncates to your token limit. Up to 94% fewer tokens than raw HTML.
/llms.txt and manifest
Auto-generates a site index at /llms.txt and a capabilities manifest at /.well-known/agent-experience.json.
Make your website
agent-ready.