# pub.dev with an AI agent: 2 tasks measured

> 2 real tasks on pub.dev, each in a fresh Claude Code session: Playwright MCP used 167K tokens on average, Dejo 230K the first time and 79K on every run after. Steps, calls and right answers per tool.

Canonical: https://dejo.run/sites/pub-dev

> For AI agents: the index of this site is https://dejo.run/llms.txt, and every page is also served as markdown (add .md to its address, or send Accept: text/markdown).

pub.dev is the package site for Dart and Flutter. Claude Code (Claude Sonnet 5) did these tasks there in brand-new sessions. Playwright MCP used 167K tokens per task on average; Dejo 230K the first time and 79K on every run after.

## Tasks

1. "find the Dart package mustache_recase, open its Changelog tab and tell me what changed in version 2.0.1"
2. "find the Dart package mustache_recase, open its Versions tab and tell me the minimum Dart SDK listed for version 2.0.3"

## Tokens and calls per task

| task | Dejo, first run | Dejo, every run after | Playwright MCP | Playwright CLI |
|---|---|---|---|---|
| 1 | 252K | 79K, 1 call(s) | 164K, 2 calls | 214K, 3 calls |
| 2 | 208K | 79K, 1 call(s) | 170K, 2 calls | 214K, 3 calls |

## Learned and replayed with Dejo on 2026-11-13

Steps Dejo saved:

1. go https://pub.dev/
2. fill ref "e20" (by name)
3. press Enter
4. click link "mustache_recase" (by name)
5. click button "Changelog" (by name)
6. answer (by position)

Replay: 6 steps in 2.0 s, answer "Removed Generator+ dep".

## A new task once Dejo knows the site

"find the Dart package mustache_recase, open its Versions tab and tell me the minimum Dart SDK listed for version 2.0.3": 183K tokens with an empty memory, 234K after Dejo learned a different task on pub.dev.

## FAQ

### How many tokens does an AI agent use on pub.dev?

In our test, Claude Code with Playwright MCP used 167K tokens per task on pub.dev on average. Dejo used 230K the first time and 79K on every run after, 53% fewer than Playwright MCP once the task was learned.

### Can Claude Code automate pub.dev?

Yes. In fresh Claude Code sessions on 2 tasks there, Dejo answered 2 of 2 right, Playwright MCP 2 and Playwright CLI 2. With Dejo, a task done once is replayed later without the model reading the pages again.

### Does a new task on pub.dev get cheaper once Dejo knows the site?

In our site-memory test, a new task there used 183K tokens with an empty memory and 234K after Dejo had learned a different task on the same site (4 turns against 5).

## Related

- [Dejo: browser automation MCP that remembers websites](https://dejo.run/)
- [Dejo MCP server setup: install in a minute](https://dejo.run/docs)
