---
title: "Cloudflare Search for Agents: a test on /.well-known/search"
description: "Cloudflare Search for Agents exposes site search to AI agents. I tested 20 questions: response size, position of the answer chunk and how scores behave."
url: https://maltra.it/en/blog/cloudflare-search-for-agents/
canonical: https://maltra.it/en/blog/cloudflare-search-for-agents/
author: Marco Maltraversi
author_url: https://maltra.it/
date: 2026-11-27
updated: 2026-11-27
language: en
---

# Cloudflare Search for Agents: a test on /.well-known/search

On 25 November Cloudflare launched **Search for Agents**: a dashboard toggle that indexes a site, builds an internal search engine and exposes it to AI agents at a fixed address, `/.well-known/search`. The agent no longer has to download ten HTML pages to find one fact: it asks the site a question and gets the relevant passages back in Markdown.

For SEO and GEO this is a change of perspective. Until now we worked to be picked by indexes we do not control: Google’s, Bing’s, OpenAI’s. Here the index is ours, it runs on our domain and it decides which paragraphs reach the model’s context. I queried the endpoint that is already live on Cloudflare’s developer docs with 10 questions, in English and in Italian, to see what an agent actually receives.

In short

- Search for Agents builds a hybrid index (keywords plus vectors) of the site and makes it searchable at `/.well-known/search`, with GET or with the new HTTP QUERY method. It returns Markdown chunks, not answers.
- Discovery relies on four `agent:*` meta tags injected into every page: a Cloudflare convention, not a registered standard.
- In my test the full response had a median size of 51 KB, less than the HTML page (132 KB) but more than the same page in Markdown (11 KB). The chunk with the answer came first in 4 cases out of 10 and in the top three in 6 out of 10 (English questions).
- The first result was often a chunk holding only the title and meta description, and scores are relative: even a question about carbonara gets a result scored 1.000.

// contents

1. What Search for Agents is
2. How it works, step by step
3. The test
4. What changes for SEO and GEO
5. Mistakes to avoid
6. My opinion
7. FAQ

## What Search for Agents is

Search for Agents is a beta feature available on every Cloudflare plan, including Free with limits. You turn it on from the domain’s Overview page, under Quick Actions. Cloudflare then creates an **AI Search** instance named `search-for-agents-<ZONE_ID>`, crawls the site, splits it into chunks, computes the embeddings and publishes a search endpoint under the customer’s own domain.

The key sentence is the one Cloudflare uses to describe the endpoint: it returns retrieved content, **not a generated answer**. The agent already has its own model and conversation; what it needs are the right passages from the site, not another model’s summary. It is the “R” of a RAG pipeline offered as a service, with the site as the only source.

It sits next to **Markdown for Agents**, launched earlier, which converts a single HTML page to Markdown when the client sends `Accept: text/markdown`. Search for Agents works on the whole site instead. Compared with `llms.txt`, which is a hand-curated list of pages, there is no editorial selection here: the search engine decides.

## How it works, step by step

### 1. Discovery: four meta tags

An agent has to know the endpoint exists. Cloudflare advertises it by adding four meta tags to the `<head>` of every HTML response: `agent:instructions` (a natural-language instruction telling agents to use search instead of crawling pages), `agent:endpoint` (the URL with a `{query}` placeholder), `agent:method` and `agent:documentation`. If Markdown for Agents is also on, the same fields appear in the YAML front matter of the Markdown version.

The `/.well-known/` prefix is defined by RFC 8615, but `search` is not in the IANA Well-Known URIs registry (I checked today; the registry was last updated on 26 October 2026). The `agent:*` names do not belong to any public specification either. It works because agents read the page text and follow the instruction, not because a standard exists.

### 2. Indexing: crawl, chunks, embeddings

With the default settings the crawler uses discover mode: it reads sitemaps and follows internal links up to five hops and up to 100,000 pages, respecting robots.txt, with cache and sync every 24 hours. Text is split into **1,024-token chunks with 10% overlap** and turned into vectors with `@cf/qwen/qwen3-embedding-0.6b`. The embedding model and the data source are chosen at creation time and cannot be changed afterwards.

### 3. Retrieval: hybrid, no reranking

Search is hybrid: a keyword component and a vector component, merged with **Reciprocal Rank Fusion**. RRF does not add scores up, it combines positions: a chunk that ranks third for keywords and second for semantic similarity beats a chunk that is first in only one of the two lists. By default the endpoint returns up to 10 chunks with a 0.4 threshold and a 48-hour cache for similar queries. Reranking with a dedicated model and query rewriting are off, but can be enabled.

### 4. The call: GET or QUERY

The agent can call `/.well-known/search?q=...` with GET or use the **QUERY** method defined in RFC 10008, published in June 2026: a request that is safe and idempotent like GET but carries the question in the body, as plain text or JSON. The response is a Markdown document with one block per chunk, the source path and a score. Access stays under the WAF, Bot Management and AI Crawl Control rules already set on the domain.

## The test

**Goal.** Measure what an agent gets from a live endpoint: how much text, in what order, how reliably, and what happens when the question is in Italian and the site is in English.

**Method.** On 27 November 2026 I used Cloudflare’s developer documentation, which had the feature on before the announcement and carries the `agent:*` meta tags in its HTML. I wrote 10 questions with a precise answer in the docs (limits of Artifacts, Workers, KV, D1, R2, Turnstile, Markdown for Agents, AI Search), each in an English and an Italian version: 20 GET requests from the browser. For every question I first checked the string holding the answer in the source page (for example “64 MiB” for the Artifacts push limit, “7 days” and “30 days” for D1) and then looked for the position of the first chunk containing it. I also measured the size of the response and of the page holding the answer, in HTML and in Markdown. Finally I tried QUERY, POST, an empty request and two off-topic questions.

Cloudflare’s docs instance does not use the default settings: every response contained **50 chunks** (not 10), and chunks follow the sections of the page, each one preceded by the page title, the section name and the page front matter. The results describe this configuration, not the one you get by flipping the toggle and changing nothing.

### How much text reaches the agent

Compared with HTML there is a saving: 51 KB against 132 KB at the median. But in **20 requests out of 20** the full response was heavier than the Markdown version of the right page, which has a median of 11 KB. The gain only appears if the agent stops at the first chunks: the first 10 weigh 9 KB at the median. In other words, search saves tokens when the agent does not know which page to open, not when it already does.

### Where the answer sits

| Measure | English (10) | Italian (10) |
| --- | --- | --- |
| Answer in the first chunk | 4 | 4 |
| Answer in the first 3 chunks | 6 | 5 |
| Answer in the first 10 chunks | 8 | 9 |
| Median position of the answer | 3 | 4 |
| First chunk with only title and meta description | 6 | 7 |
| Same page first in both languages | 7 questions out of 10 |
| Chunks shared in the top 10 (mean) | 7.9 out of 10 |
| Response time | 586 to 990 ms |

Three findings matter for anyone who writes content.

1. **The summary chunk often wins.** In 6 questions out of 10 (English) the first result was a chunk under 300 bytes holding only the page title and meta description. It matches the question very well, both lexically and semantically, but it almost never contains the fact. Turnstile is the exception: its description already mentions the `siteverify` endpoint.
2. **Empty chunks exist.** For “how do I enable Markdown for Agents” the second result was the “How to enable” section: the chunk held only the section heading, because the instructions live in its subsections. A highly relevant heading with no text under it takes a position and carries no information.
3. **Semantic false friends.** For “Does R2 charge for egress bandwidth?” the first result was a pricing FAQ for another product (Basin SQL) with “R2 egress fees” in its heading. The first chunk with the right answer came third, and it was the R2 section of the Workers pricing page.

Italian queries worked better than I expected: the docs are English-only, yet the same page came first in 7 cases out of 10 and on average 7.9 of the top 10 chunks were shared. The vector side makes up for keyword search, which finds little with an Italian question. The worst case was the question on the default chunk size: the answer sat at position 12 in English and 23 in Italian, because the figure lives on the Search for Agents page, not on the chunking page.

### Scores and off-topic questions

The first result always scores 1.000: values are normalised against the best item in the list, so they tell you the order, not the relevance. I asked for “ricetta della carbonara con guanciale” (a carbonara recipe) and for a meaningless string: both requests returned 50 chunks, the first one scored 1.000 (a page of examples for an AI model and the card of an image model). I repeated the carbonara test on the endpoint dejan.ai built on its own: there too the first result scored 1.000. An agent that trusts the score has no way to tell that the site does not contain the answer.

### HTTP methods

QUERY with a plain-text body and with a JSON body returned exactly the same 50 chunks as GET. POST returns 405 (“Only GET, HEAD, and QUERY are supported.”) and a request without `q` returns 400. The `accept-query` header lists the accepted formats: `text/plain` and `application/json`.

### Limits of the test

The test covers a single site, highly structured and in English, with a non-default configuration. Ten questions are a small sample. Whether a chunk contains the answer was checked by searching for precise strings already verified in the source pages, not by a human judging each chunk. I measured bytes, not tokens. Timings come from a single browser in Italy. I have no data on how many agents actually use the endpoint or on how they choose between search and pages.

## What changes for SEO and GEO, step by step

If the site runs on Cloudflare, the feature is one click away. Before clicking, this is the work worth doing.

1. **Decide what gets indexed.** The index starts from sitemaps and internal links: linked staging environments, private PDFs, account pages or duplicate archives end up in search if they are reachable. Cloudflare’s own docs say to index only content you intend to make publicly searchable.
2. **Write meta descriptions that contain the fact.** Title and description become a chunk of their own that often ranks first. A promotional description (“discover everything about…”) wastes the best position. A description that holds the fact (“The Free plan includes 100,000 requests per day”) already answers.
3. **Make every section self-contained.** Each chunk is read on its own. Every H2 needs text right under it, should name the product or topic without relying on “as mentioned above”, and should not be a mere container for subsections.
4. **Check how tables come out.** In the example Cloudflare published, the Artifacts limits table reaches the agent as run-on text, with cells glued together and no separators. The numbers are there, the structure is not. For critical data, add a sentence next to the table that repeats it.
5. **Review WAF and bot rules.** Requests to the endpoint go through the same rules as the rest of the site. A rule that is too strict blocks agents; one that is too loose lets anyone query the index without limits, and queries cost money.
6. **Run your own test.** Prepare 20 real customer questions, in every language of the site, and write down the position of the chunk with the answer. It is the same method used here and takes about an hour.
7. **Read the query logs.** Every call carries the `q` parameter: these are the questions agents ask your site on behalf of users. No AI visibility tool gives you that data for your own domain today.

If the site is not on Cloudflare, like maltra.it (which returns 404 on `/.well-known/search`), the pattern can be rebuilt: your own search index, an endpoint that returns Markdown, the four meta tags. Dejan.ai did it and its endpoint responds. The cost is development and maintenance; the benefit depends on how many agents will actually use the convention.

## Mistakes to avoid

- **Assuming it improves visibility in ChatGPT or AI Overviews.** Google, OpenAI and Perplexity have said nothing about using these meta tags. The example Cloudflare shows involves a coding agent (OpenCode) working on documentation.
- **Using the score as a relevance measure.** It is relative: the first result is always 1.000, even when the site has nothing to do with the question.
- **Switching it on and forgetting it.** Embeddings and data source cannot be changed after creation. Ingestion, storage and queries follow AI Search pricing beyond the included allowance.
- **Mixing up the layers.** Sitemaps, llms.txt, Markdown for Agents and Search for Agents solve different problems: the list of URLs, editorial selection, the format of a single page, search across the whole site. None replaces the others.
- **Leaving pages that are only headings and links.** Empty index and category pages produce chunks with very relevant titles and no content, and they take the top positions.

## My opinion

Search for Agents is the most interesting technical news of the week for GEO, and not because of any promise of traffic. It is interesting because it brings part of the work in-house. For the first time the system deciding which paragraph reaches the model sits on our own domain, with settings we can read and logs we can analyse. Optimising for retrieval stops being guesswork about closed systems and becomes measurable engineering: chunks, descriptions, section structure, position tests.

The most concrete value today is not being found by agents: it is knowing what they ask.

That said, it is a bet on adoption. Discovery relies on non-standard meta tags, the path is not registered and no major AI engine has said it uses it. On a company blog with a hundred posts I would not turn it on yet. I would turn it on for technical documentation, knowledge bases, catalogues with many product pages and support sites, where coding agents and business assistants already need to search inside the site.

One precise criticism for Cloudflare: an endpoint built for agents should be able to say “I have nothing”. With normalised scores and no visible threshold in the response, an agent gets fifty chunks about carbonara from a technical documentation site. Exposing the raw score, or returning an empty list below the threshold, would make the system more honest and more useful for the agents that rely on it.

Want to know which pages of your site actually reach the context of AI models, and what agents receive when they ask a question?

See the SEO and GEO audit →

## FAQ

### What is /.well-known/search?

It is the address where Cloudflare’s Search for Agents exposes a site’s internal search to AI agents. It accepts a question via GET or the HTTP QUERY method and returns the most relevant passages in Markdown, with source and score, without generating an answer.

### Does Search for Agents increase citations in ChatGPT or Google?

There is no evidence. Neither Google nor OpenAI has said it reads the agent meta tags or uses this endpoint. Today it mainly serves agents that browse a site during a task, such as coding assistants.

### How is it different from llms.txt and Markdown for Agents?

llms.txt is a hand-picked list of pages. Markdown for Agents converts a single requested page to Markdown. Search for Agents searches the whole site and returns only the passages relevant to the question.

### How much does it cost?

The feature is available on every plan, but usage follows AI Search pricing: content ingestion, index storage and queries, with an included allowance. Tighter limits apply on the Free plan.

### Can I use it without Cloudflare?

Yes, by rebuilding the pattern: your own search index, an endpoint that returns Markdown and the four meta tags in the head. It remains a Cloudflare convention, so it only pays off if the site already gets traffic from agents.

Further reading: [how I work on GEO and visibility in AI answers](https://maltra.it/en/generative-engine-optimization/), [where AI Mode sources come from, a test on organic results](https://maltra.it/en/blog/ai-mode-sources-organic-results/) and [the test on AI training opt-out in robots.txt](https://maltra.it/en/blog/robots-txt-ai-training-opt-out/).

## Sources

1. [Cloudflare Blog, “Introducing Search for Agents”, 25 November 2026](https://blog.cloudflare.com/search-for-agents)
2. [Cloudflare Docs, “Search for Agents”](https://developers.cloudflare.com/ai-search/how-to/search-for-agents/)
3. [Cloudflare Docs, “Markdown for Agents”](https://developers.cloudflare.com/fundamentals/reference/markdown-for-agents/)
4. [Cloudflare Docs, AI Search, “Chunking”](https://developers.cloudflare.com/ai-search/configuration/indexing/chunking/)
5. [IETF, RFC 10008, “The HTTP QUERY Method”, June 2026](https://www.rfc-editor.org/rfc/rfc10008.html)
6. [IETF, RFC 8615, “Well-Known Uniform Resource Identifiers (URIs)”](https://www.rfc-editor.org/rfc/rfc8615.html)
7. [IANA, Well-Known URIs registry](https://www.iana.org/assignments/well-known-uris/well-known-uris.xhtml)

---

Source: [Cloudflare Search for Agents: a test on /.well-known/search](https://maltra.it/en/blog/cloudflare-search-for-agents/) by Marco Maltraversi, SEO and GEO consultant. Reuse is welcome with attribution and a link to the original page. Contact: marco@yourdigitalweb.com
