Blog

Search for Agents: /.well-known/search and HTTP QUERY

How Cloudflare's Search for Agents works, why we built our own /.well-known/search in Rails with HTTP QUERY, and how CrawlWise 0.4.36 checks it.

Published · 5 min read

On 25 November 2026, Cloudflare announced Search for Agents, a one-toggle feature that indexes a site with Cloudflare AI Search and exposes a Markdown search endpoint at /.well-known/search. They also added it as a check on isitagentready.com.

We liked the protocol enough to ship both sides of it right away: CrawlWise now serves its own /.well-known/search endpoint (over both GET and RFC 10008 HTTP QUERY), and checkset 0.4.36 adds an api.agent-search check so you can test any domain for it.

The problem it solves, in plain language

When a coding or research agent lands on your site today, it usually guesses URLs, reads /sitemap.xml or /llms.txt, and fetches five or ten pages until it finds the paragraph it needed. That wastes tokens for the agent and bandwidth for your server.

Search for Agents gives the site a simple way to say: ask me instead.

  1. Every HTML page advertises the search endpoint in <head>:
<meta name="agent:instructions" content="Use this search API to find relevant content across CrawlWise (guides, free checkers, blog posts, methodology, research and policies) with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown.">
<meta name="agent:endpoint" content="https://crawlwise.dev/.well-known/search?q={query}">
<meta name="agent:method" content="GET">
<meta name="agent:documentation" content="https://crawlwise.dev/blog/search-for-agents-well-known-search">
  1. When an agent requests a page with Accept: text/markdown, the server puts the same four fields into YAML front matter at the top of the Markdown document:
---
agent:
  instructions: "Use this search API to find relevant content across CrawlWise..."
  endpoint: "https://crawlwise.dev/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://crawlwise.dev/blog/search-for-agents-well-known-search"
---
  1. The agent queries /.well-known/search and gets back matching excerpts in text/markdown, each with a relevance score and source URL. The server returns retrieved content, not an LLM-generated answer. The calling agent already has a model and the user’s conversation, so it wants source text rather than another model’s summary.

HTTP QUERY (RFC 10008) in one minute

Long natural-language questions look awkward in a URL query string and end up in access logs. In June 2026, the IETF published RFC 10008, which defines the HTTP QUERY method. Like GET, QUERY is safe and idempotent (it reads data without changing server state). Like POST, it carries the search criteria in the request body.

Cloudflare’s Search for Agents accepts both plain text and JSON bodies over QUERY, and so does CrawlWise:

# Standard GET
curl "https://crawlwise.dev/.well-known/search?q=cloudflare+waf"

# RFC 10008 HTTP QUERY with plain text
curl -X QUERY "https://crawlwise.dev/.well-known/search" \
  --data "how does CrawlWise test WebMCP forms"

# RFC 10008 HTTP QUERY with JSON
curl -X QUERY "https://crawlwise.dev/.well-known/search" \
  -H "Content-Type: application/json" \
  --data '{"q":"llms.txt checker"}'

Why we built our own endpoint instead of flipping the Cloudflare toggle

Cloudflare’s toggle makes sense if you run a large documentation site on Cloudflare and want vector search with zero backend code. For crawlwise.dev, we chose to build /.well-known/search directly in Rails for three practical reasons:

  • Keep ETag intact on HTML. Edge features that inject tags into HTML responses (like Cloudflare’s Email Obfuscation or Automatic HTTPS Rewrites, which we had to turn off earlier) can strip origin ETag headers and break caching checks. Rendering <meta name="agent:*"> directly in our Rails layout keeps origin caching intact.
  • Zero extra infrastructure or DPA changes. CrawlWise already holds its public pages (over 80 guides, blog posts, 12 free checkers, methodology, research reports and legal pages) in memory. Searching that corpus in Ruby takes under 5 ms with no external AI Search quota, no vector database and no new subprocessor to add to our privacy policy or DPA.
  • Strict separation from private reports. Private scan links under /r/ and /sa/ are never part of PublicPage, so an origin index built from PublicPage cannot accidentally crawl or surface a private customer report.

Because Rails 8.1 rejects unknown HTTP verbs before routing, a small Rack middleware (AgentSearchQuery) intercepts QUERY /.well-known/search, caps the body at 4 KiB, parses plain text or {"q": "..."}, and hands the query to the same AgentSearch class used by GET /.well-known/search. Both endpoints return Allow: GET, HEAD, QUERY, OPTIONS and text/markdown.

Checkset 0.4.36 brings the page audit to 59 checks by adding api.agent-search in the api category. Like api.webmcp, api.catalog and api.agent-skills, it carries weight 0 and is marked experimental, so ordinary sites that do not publish an agent search endpoint see na and keep their exact score.

During a scan, CrawlWise checks four things:

  1. HTML <head> for <meta name="agent:endpoint">, agent:instructions, agent:method and agent:documentation.
  2. YAML front matter (agent: block) on the Markdown representation when the page serves one.
  3. A live same-origin GET probe against the advertised endpoint (or /.well-known/search?q=test), verifying HTTP 200 and a text/markdown response instead of an HTML shell or 404.
  4. Whether the endpoint advertises QUERY in its Allow header (checked on GET or an optional OPTIONS request).

If a site advertises agent:endpoint over plain HTTP, omits agent:instructions, returns HTML instead of Markdown, or serves /.well-known/search without advertising it to agents, api.agent-search warns and shows copy-ready HTML and YAML snippets.

You can test your own site with the WebMCP and agent discovery checker, read the full check list on the methodology page, or try curl "https://crawlwise.dev/.well-known/search?q=robots+waf" against CrawlWise itself.

Check your own site

Run a free 25-page preview of the whole-site audit. No account needed.

Start the audit

More from the blog

All posts

Last updated .