Skip to content

Add AI agent detection and automatic markdown rewrites#309

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

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

@bensabic
Copy link
Copy Markdown
Contributor

Thanks for this @molebox!

Once the same changes are made to this PR, that were flagged in some of the other repos, then I'd be happy to merge this.

In the meantime, I'll move the PR to drafts.

@bensabic bensabic marked this pull request as draft March 30, 2026 10:43
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.

2 participants