Skip to content

Add AI agent detection and automatic markdown rewrites#309

Open
molebox wants to merge 1 commit intomainfrom
add-agent-rewrites
Open

Add AI agent detection and automatic markdown rewrites#309
molebox wants to merge 1 commit intomainfrom
add-agent-rewrites

Conversation

@molebox
Copy link
Copy Markdown
Contributor

@molebox molebox commented Mar 27, 2026

Summary

  • Adds multi-signal AI agent detection (UA patterns, RFC 9421 Signature-Agent header, browser fingerprint heuristic)
  • When an AI agent requests /docs/*, the proxy transparently rewrites to the markdown route
  • Extends md-tracking with agent-rewrite request type and detectionMethod for accuracy monitoring

Ported from the geistdocs template default. See vercel/geistdocs#56.

🤖 Generated with Claude Code

When AI agents (Claude, ChatGPT, Cursor, etc.) request docs pages,
the proxy now detects them and transparently rewrites to the markdown
route — matching the geistdocs template default.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Mar 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
chat Ready Ready Preview, Open in v0 Mar 27, 2026 1:38pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant