Back to the blog

One Toggle Made My Whole Site Searchable by AI Agents

Published Nov 26, 2026Updated Nov 26, 2026Dishant Sharma6 min read

One Toggle Made My Whole Site Searchable by AI Agents

The question was "What is the maximum push size for Cloudflare Artifacts?" I typed it into a url bar, not a chat box.

curl --get "https://developers.cloudflare.com/.well-known/search" \
  --data-urlencode "q=What is the maximum push size for Cloudflare Artifacts?"
Enter fullscreen mode Exit fullscreen mode

One request came back with the answer sitting in the first result. 64 MiB per push. No crawling. No sitemap. No guessing which of eleven doc pages had the number buried in a table.

That is Cloudflare's new Search for Agents, and it is the least dramatic launch I have seen this year. I mean that as a compliment, mostly.

Here is the strange part. Two people posted it to Hacker News on the same day. One got 5 points, the other got 3.

Both had zero comments. A feature that changes how agents read the web landed with the noise level of a status page update.

Maybe that is because the pitch is boring on purpose. No demo video. No benchmark chart. Just a toggle.

What the toggle actually does

You go to your domain in the Cloudflare dashboard, find Quick Actions, and flip Search for Agents on. That is the whole setup.

Behind it, Cloudflare creates an AI Search instance named search-for-agents-<ZONE_ID> in your account's default namespace. Then it crawls your site and builds an index. The instance is a normal AI Search instance, so you can open it later and change settings.

The defaults matter, because they decide what your results look like:

Setting Default
Crawl discover, sitemaps plus links
Page limit 100,000
Crawl depth 5 hops
Sync every 24 hours
Search mode hybrid, vector plus keyword
Chunks returned 10
Reranking off

Reranking off is the one I keep staring at. It means ranking is mostly embedding distance and keyword overlap.

For a docs site with clean page titles that works fine. For a blog with 400 posts that all mention "agents," it will hand back whatever is closest in vector space and call it a day.

You can turn reranking on. But the default tells you who this was built for.

The part that makes agents find it

An endpoint nobody knows about is a dead endpoint. Cloudflare solves that by injecting four meta tags into the <head> of every page on the zone.

<meta name="agent:endpoint" content="https://example.com/.well-known/search?q={query}">
<meta name="agent:method" content="GET">
Enter fullscreen mode Exit fullscreen mode

If you also have Markdown for Agents on, the same block arrives as YAML front matter when an agent sends Accept: text/markdown. I saw this in the wild. When I fetched the Cloudflare blog post for research, my extractor picked up that YAML block before it picked up the headline.

That is a small thing that matters a lot. The agent needs no plugin, no registry, and no config file. It reads the page it was already fetching and learns the site has a search box.

The other half is HTTP QUERY. It is a real method now, RFC 10008, published in June 2026, and one of its coauthors is Cloudflare's James Snell. curl and undici already ship it.

You can send a plain text body or JSON to /.well-known/search and get results without stuffing a long question into a query string. A GET with a urlencoded question works too. QUERY is just the version that does not make you feel dirty.

Why an agent prefers this over crawling

Here is the split most people get wrong. Search for Agents does not answer questions. It retrieves content.

The endpoint returns Markdown chunks with a score and a file path attached. No summary, no "according to the docs," no invented confidence. Your agent's own model reads the chunks and does the thinking.

That is the correct division of labor. An agent already has a model and a conversation with a user. What it lacks is your site's actual text.

The token math explains the rest. Cloudflare measured its own Markdown for Agents post at 16,180 tokens as HTML and 3,150 as Markdown. An 80% cut. Every crawl an agent skips is money and latency it does not spend.

And crawling is not just expensive. It is unreliable.

Sites change layout. Nav menus eat context. A crawler hits a page that renders client side and gets an empty div.

Search hits an index you control. Crawling hits whatever your site happens to look like that day.

There is also a cost angle nobody mentions. Agents reuse the endpoint inside one session. The Cloudflare team saw this on their own docs: the agent finds the search API on the homepage, then calls it again and again as the conversation moves.

That is a good outcome for the agent and a billable one for you. Ingestion, index storage, and queries all run through AI Search pricing, tied to your Workers plan.


Small tangent. I have a soft spot for the .well-known folder, and it is turning into a junk drawer.

It started as a clean idea. One predictable place for security.txt, apple-app-site-association, and a few other files that need a fixed home. Now it holds half the identity plumbing on the internet. Every time a protocol needs a discovery path, it gets squatted there.

Adding /.well-known/search to that pile feels inevitable and slightly sad. Every site will eventually have a well-known directory with forty files in it, and nobody will know what half of them do. The web keeps solving coordination problems by adding more doors to the same hallway.

What developers actually get out of it

The first time i looked at this, i assumed it was SEO bait with an AI sticker on it. Then i thought about the docs sites i maintain.

Every one of them has the same problem. The answer exists. It is on page four of a how-to, inside a table, under a heading that does not match how anyone asks the question. Search boxes on docs sites are famously bad because someone has to tune them.

Search for Agents skips the tuning step. Hybrid vector plus keyword search over your own pages, with the chunk size and match threshold already set to something sane. 1,024 token chunks, 10% overlap, a 0.4 match floor.

And the output is Markdown with the file path attached. That path is the citation. When your agent quotes a doc, it can say which file the quote came from without you building anything.

That is the developer win. Not a new API to learn. A directory that already exists on your domain, filled with your own content, in a format a model can read.

The real talk

Most people do not need this.

If your site is twelve pages and a contact form, an agent can read the whole thing in one fetch. Search adds a meter and an index for no gain.

If your docs are fine and your traffic is small, wait. This is beta. Reranking is off.

Pricing runs through AI Search, which bills ingestion, storage, and queries. A free toggle that quietly enrolls you in a usage-based product is a decision, not a switch.

And there is a tension Cloudflare does not lead with. You can enable Search for Agents and still block those same bots with AI Crawl Control and the WAF. The docs mention it almost in passing. Your endpoint respects your bot rules.

So the index gets built, the crawler gets a 403 at the front door, and you have paid to index content for an agent you are refusing to serve. Decide which side you are on before you flip it.

One last thing

I keep coming back to the 64 MiB answer. Not the number. The shape of the interaction.

I asked a docs site a question and got three paragraphs and a source path. That is what I wanted from search engines for twenty years and never got, because they were busy selling ads against ten blue links.

Agents do not click. They read, decide, move on. Whatever you think of that, it is a cleaner contract than the one we have now.

More articles