Research review / tooling

Cloudflare Puts a Search Endpoint on Every Zone for Agents to Find

On November 25 Cloudflare shipped Search for Agents: one dashboard toggle creates an AI Search index for a zone and exposes it at /.well-known/search, advertised in every page head. It returns Markdown passages rather than a generated answer, and it supports the new HTTP QUERY method.

By Sandeep Belgavi · Published 2026-11-26

On November 25, 2026, Cloudflare published Introducing Search for Agents, by Celso Martinho, Gabriel Massadas and Nelson Duarte. The feature is small to describe and large in consequence: flip one toggle on a zone, and Cloudflare creates an AI Search instance for that site, crawls and indexes it, and exposes a search endpoint under the site’s own domain. It is available on all plans, including Free, with limits.

What the toggle actually creates

Three pieces ship together. The first is the index: an AI Search instance created with default settings, which an operator can later reconfigure for reranking or caching. The second is the endpoint, at /.well-known/search?q={query} on the zone’s own hostname, which means requests pass through that zone’s bot management, AI Crawl Control and WAF configuration rather than arriving at some third-party search host.

The third piece is discovery, and it is the part worth reading twice. Cloudflare injects metadata into the head of every HTML response on the zone:

<meta name="agent:instructions" content="Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown.">
<meta name="agent:endpoint" content="https://example.com/.well-known/search?q={query}">
<meta name="agent:method" content="GET">
<meta name="agent:documentation" content="https://developers.cloudflare.com/ai-search/how-to/search-for-agents/">

Sites that also run Cloudflare Markdown for Agents get the same four fields as YAML front matter when an agent requests a page with Accept: text/markdown. The post reports that Cloudflare enabled the feature on its own developer documentation before the announcement and observed agents discovering and reusing the endpoint within a session, including an OpenCode session that answered a question about Artifacts push limits from the search results.

Two design choices that carry weight

The endpoint returns retrieved content in Markdown, not a generated answer. Cloudflare’s reasoning is direct: "The agent already has an AI model and a conversation with the user; all it needs is the relevant information from your site, not another AI model’s attempt to answer on its behalf." That keeps the site out of the business of being wrong on its behalf, and it keeps the provenance chain intact, because what comes back is attributable passages with scores and paths.

Search for Agents also supports the HTTP QUERY method natively, with a plain-text or JSON body. QUERY is an IETF Proposed Standard, RFC 10008, published in June 2026 and coauthored by Cloudflare’s own James Snell; the post notes that curl and undici have adopted it and browser vendors are discussing it. A safe, idempotent method that carries a body is a better fit for search than stuffing long natural-language questions into a query string.

The implication, including the uncomfortable one

Analysis: this is a cost shift before it is a capability shift. An agent that crawls twelve pages to answer one question pays twelve fetches of tokens and latency; an agent that asks once pays one. Pushing that primitive to a CDN default, free tier included, is how a protocol-shaped change actually reaches the long tail of small sites that were never going to build retrieval infrastructure.

The uncomfortable part is agent:instructions. The field is a natural-language directive, served by the site, read by a visiting agent, and in the general case the site is not a party the agent trusts. Cloudflare populates it with fixed text, which is the right call. But the pattern it establishes, that an agent should read and act on instructions embedded in a page head, is the prompt-injection surface in its purest form: a channel whose content is attacker-controllable on any site an attacker can publish to. Agent builders consuming these fields should treat agent:endpoint and agent:method as data to validate against the zone being fetched, and agent:instructions as untrusted prose to be ignored rather than obeyed. The useful half of this standard is the four well-known locations; the dangerous half is the free-text field.

Original exercise, not executed: Dinky maintains the public help centre for Belgavi's Book Store and wants to know whether a search endpoint beats crawling for the store’s own documentation. Dinky writes 25 questions with known answers from the returns policy and the CASE-series handling notes, then runs the same agent twice, once with page fetching only and once with the search endpoint enabled, counting correct answers, fetches per question and total tokens. Dinky then repeats the search run with agent:instructions rewritten to something adversarial, to confirm the agent ignores it.

Sources accessed November 26, 2026. Views are my own and do not represent any employer, past or present.

Sources and evidence

Cloudflare Search for Agents creates an AI Search index per zone behind one toggle and exposes it at /.well-known/search, advertised through agent: meta tags and supporting HTTP QUERY (RFC 10008). It returns Markdown passages rather than a generated answer. The agent:instructions field is a natural-language directive served by the site, so agent builders should validate the endpoint fields and ignore the free-text one.