Skip to content

Methodology

I think the most useful mental shift here is that measuring coding agents is closer to running an evaluation than to reading an analytics dashboard. Agent behaviour varies from run to run, most paths leave no trace on your server, and the requests that do arrive often carry no identity. So a sound method needs three things: a canary that only one path can reach, a nonce that proves the content was used and not merely fetched, and repeated trials so a single lucky or unlucky run doesn’t decide the result.

The measurement loopYou set upHarness runsYou observeCanary URL/probe/<path>-<id>Nonce phraseonly on that pageSeed one channelsitemap, README, MCP…Agent × prompt × Nheadless, clean HOMEServer logfetched? by whom?Agent answernonce present? used?Tool tracewhich tool, which query
The measurement loopYou set upHarness runsYou observeCanary URL/probe/<path>-<id>Nonce phraseonly on that pageSeed one channelsitemap, README, MCP…Agent × prompt × Nheadless, clean HOMEServer logfetched? by whom?Agent answernonce present? used?Tool tracewhich tool, which query
Each trial runs in a clean environment so earlier fetches, caches and memory cannot leak into the next one.

A canary is a URL that exists nowhere except the one channel you’re testing. You publish /probe/readme-7f3a only in your npm README, /probe/llms-91c2 only in llms.txt, /probe/sitemap-c044 only in the sitemap, and so on. The first request for each URL tells you that channel was read, by whom, and how long it took. Canary pages should be unlinked from your navigation and carry X-Robots-Tag: noindex if you don’t want them polluting your own index (for search-index tests, though, you have to leave them indexable).

This site runs an endpoint like that. Every request to /probe/<token> is logged with its headers, IP and country, and the response contains a phrase unique to the token, served as markdown if the request asks for text/markdown and as HTML otherwise. The source is a short serverless function, linked from the lab page.

A server hit proves a fetch, but it doesn’t prove the agent read the content, because summarisers drop text and models ignore what they fetched. So put a nonsense phrase on the canary page (ours is canary-<token>-orchid-lantern) and ask the agent a question only that page answers. If the phrase shows up in the answer, the content made it all the way through the fetch pipeline. If the server logged a hit but the answer lacks the phrase, something between the fetch and the model dropped it.

The same prompt can lead one run to search, another to fetch, and a third to answer from memory. That’s why we run each agent-and-prompt combination at least five times, report the share of runs that fetched and the share that used the nonce, and keep the full transcripts. If an agent scores zero across every run, read the transcripts before you conclude anything, because a zero is more often a broken harness (no network in the sandbox, an untrusted-folder prompt, a missing login) than a real behaviour. In our own first run, three of six agents failed for harness reasons before producing any signal at all.

Each trial should start without leftover state. In practice that means a fresh working directory and, where the agent supports it, a fresh home directory, so that caches (Claude Code keeps fetched pages for 15 minutes), memory files and earlier tool approvals don’t carry over. It also means a new canary token per trial, so a vendor-side cache can’t answer for you.

A test that only checks whether an agent fetches your page will reward an agent that fetches everything. So include prompts where fetching your page would be the wrong choice, such as a question about a competitor or a generic language feature, and check that your content doesn’t appear. This keeps the optimisation honest, and it catches pages that hijack unrelated answers.

These are the invocations we used, and each one runs a single prompt and exits. Check each agent’s own flags for the version you’re running, because they change frequently.

Terminal window
claude -p "$PROMPT" --allowedTools WebFetch # Claude Code, fetch only
claude -p "$PROMPT" --allowedTools "Bash(curl:*)" # Claude Code, shell only
codex exec --skip-git-repo-check "$PROMPT" # Codex, default sandbox (no network)
codex exec --skip-git-repo-check -s workspace-write \
-c sandbox_workspace_write.network_access=true "$PROMPT"
codex exec --skip-git-repo-check -c web_search=live "$PROMPT"
gemini --skip-trust -y -p "$PROMPT" # Gemini CLI
opencode run -m opencode/big-pickle "$PROMPT" # OpenCode (free Zen model)
pi -p "$PROMPT" # Pi
cursor-agent -p --force "$PROMPT" # Cursor (needs login)

For every trial we record the agent and its exact version, the model, the prompt, the trial number, every server hit (time, IP, user agent, Accept, other headers), whether the nonce appeared in the answer, the tool calls from the agent’s trace (tool name, arguments, search query), and the wall-clock duration. If I had to keep only one field, it would be the search query in the trace, because it shows how the agent described your topic, as discussed in how agents write queries.

Last reviewed 2026-12-02. This site is re-reviewed monthly; see maintenance.