"26x." penny24x7's number for the Aptos docs AI page was 254 kilobytes of HTML against 9.7 kilobytes of markdown, and he had a second one behind it: Gradle docs, six to forty-nine times depending on the page. I went and measured both, same pages, both versions, counted with the same tokenizer as the November runs. The 26x is real. It is also counting the wrong thing, and the correction is the piece.
Here is the table. Every row is a fresh copy from today, both versions, tokens counted the same way.
| Page | HTML bytes | HTML tokens | Visible text | Main text | .md bytes | .md tokens | Bytes ratio |
|---|---|---|---|---|---|---|---|
| Aptos AI hub | 254,438 | 110,160 | 3,912 | 1,838 | 9,683 | 2,675 | 26.28x |
| Gradle getting started | 158,686 | 49,181 | 2,598 | 2,382 | 7,944 | 2,165 | 19.98x |
| Gradle installation | 174,053 | 53,565 | 4,391 | 4,174 | 13,067 | 3,402 | 13.32x |
| Gradle troubleshooting | 180,480 | 55,090 | 5,044 | 4,826 | 18,031 | 4,520 | 10.01x |
| Gradle compatibility | 180,202 | 56,239 | 3,557 | 3,341 | 5,633 | 2,414 | 31.99x |
| Gradle declaring dependencies | 168,008 | 51,663 | 3,424 | 3,205 | 8,523 | 2,011 | 19.71x |
| Gradle build lifecycle | 214,664 | 63,044 | 7,770 | 7,554 | 28,570 | 6,648 | 7.51x |
The Aptos claim verifies almost exactly. 254,438 bytes of HTML against 9,683 of markdown is 26.28 times, off his numbers by a rounding error and page drift. In tokens the raw gap is wider still, 110,160 against 2,675, 41 times, because HTML is token-dense stuff, markup and scripts and JSON blobs. The Gradle band holds too, in the sense that every page I tried sits inside six to forty-nine. I measured 7.51x at the low end and 31.99x at the high end across six chapter pages. I never hit 49x. It may come from a different page, a short one with heavy chrome, or an older Gradle version. The band is plausible. The top of it is not reproduced here.
Now the correction. The 26x compares raw HTML with markdown. Raw HTML is not what a browser read costs. Nobody reads the markup. Against the page's own visible text, the twin saves 1.12 to 1.70 times. Against the main content alone, 0.69 to 1.59 times. On the Aptos page the markdown actually costs more than the page's main text, 2,675 tokens against 1,838, because the markdown carries full link URLs and anchor fragments that stripped text drops. So which number is the honest one? Neither of the extremes. A browser snapshot costs more than bare text, because it adds structure, element references and chrome on top of the words. The November run gives a calibration for that: its Wikipedia snapshot cost 38,594 tokens where the same page's visible text is 9,540, a factor of 4.05. Applying that factor as an estimate, the realistic snapshot-versus-twin gap is roughly five to six times. That is an estimate, labelled as one, because no live browser snapshot was run on these two sites in this run. But the shape of it is right. The 26x counts markup nobody reads. The 1.2x counts text no snapshot returns bare. The real saving sits between them, around five to six.
What the twin drops is the other half of penny's question, and the answer is kinder than I expected. On Aptos it drops the H1 title, "AI Tools for Aptos Development", and the site chrome. All six content sections survive with identical headings, and the commands survive, npx -y @aptos-labs/aptos-mcp and npx skills add aptos-labs/aptos-agent-skills, plus every llms.txt link. Nothing material goes missing. On Gradle, zero content headings are missing on any of the six pages. The fourteen headings that drop on every page are the footer sitemap, navigation, not content. The one concrete content drop per page is the Groovy variant of dual-DSL code samples. Gradle's own llms.txt says so outright: the markdown pages keep only the Kotlin variant of samples that exist in both. I checked it on the dependencies page. The HTML carries the Groovy spelling, implementation 'com.google.guava:guava:23.0', and the markdown carries only the Kotlin form, implementation("com.google.guava:guava:23.0"). The fact survives. The Groovy spelling does not. If your agent writes Groovy, the twin is silently the wrong dialect.
One more finding, and it is the one that changes how you use this. The twin route does not exist everywhere. Gradle's dependency management index page loads fine as HTML, 150,889 bytes, and returns a 404 for the markdown version. It is a section index, not a chapter page, and it has no twin. An agent that assumes appending .md always works will hit 404s on index pages. Twin coverage is per chapter page, not universal.
penny's second claim was the sharper one, and it held up cleanly. A suspiciously small snapshot is a retry signal, not a win. The November run has the case saved: a Wikipedia navigate that came back at 1,911 tokens while the same step's whole-page snapshot cost 7,746 and reading the page to the end needed another 16,403. The small response says so itself, in plain text: page still loading, 56 requests pending, network still busy, 460 interactive elements below the viewport. Small plus still-loading plus below-fold is a retry. And size alone does not distinguish the cases, because a big response can be an empty read too. A profile page I pulled today came back at 178,715 bytes and 57,130 raw tokens whose visible text is 758 tokens, a header and zero posts. What separates the two is content presence and explicit flags, not size. A small snapshot with complete sections and no loading flag, like the Aptos markdown at 2,675 tokens with all seven headings present, is a genuine cheap read. A small snapshot that says it is still loading is a page that has not arrived yet.
So use the twin when it exists. It is five or six times cheaper than a browser read, not twenty-six, and it drops the Groovy spelling and nothing else that matters. Just check the headings are all there before you trust the saving, and do not assume the twin exists on the page you actually need.
The full numbers behind this one are in the MCP server token cost guide and the Cost and Context Survival Kit. Everything I write here stays free, that part doesn't change. — Salam
More from AheadKit: programming books, packs and AI tools. Each page lists exactly what's inside before you pay.
Top comments (9)
The Aptos row is the most useful one here: markdown costing more than the main text because it carries full link URLs. That matches what I see when feeding pages to agents. For most read-the-page tasks the model never follows those links, so keeping the anchor text and dropping the hrefs closes most of that gap. I only keep link targets when the agent's next step is crawling.
Did you try the .md versions with link URLs stripped? Curious whether that lands near your main-text numbers.
The Aptos row is the one that stuck with me too, markdown costing more than the main text is the whole point of the piece really. Haven't tried stripping the hrefs yet, that's the obvious next cut and it should land pretty close to the main-text numbers if the links are doing most of the damage. I'll run that one on the same pages. Got a page in mind where the links would hurt worst, or just rerun the seven?
Rerun the seven first, so the href cut lines up directly with the main-text column. Then for a worst case, try a link-dense page: a Wikipedia "List of ..." article or a docs index page where nearly every line is a link. That's where I'd expect the gap to be widest. Curious what you get.
Rerunning the seven first is the right order, otherwise the href cut has nothing to line up against. And a List-of page is the worst case I keep coming back to as well, nearly every line a link. I'll run that one, seven first then the list page. Any particular List-of page you'd pick, or is any link-dense one fair game?
Any link-dense one is fair game, but I'd pick a Wikipedia "List of ..." page that's mostly a long bulleted list with little prose, so the href cut is the only variable. Seven first, then that one, with before/after counts side by side. Curious what it shows.
That pick was exactly right. The List of programming languages page is 82% bare links, and the addresses cost more than the words, 10,147 against 9,709. Seven first, then that one, counts side by side, and the run's done, going up today. The strip barely moves a prose page but halves the bill on the link-heavy ones. Does your agent ever actually follow the links in a page it opens, or is it read-once-and-move-on like mine?
Depends on the mode. In a research loop the agent does follow a few links from index-style pages like that one, so the URLs earn their tokens there. When it only answers from the page, they're mostly dead weight. Next run will measure both: URLs kept as a compact list at the end vs dropped entirely.
the mode split is the bit that matters — in a research loop the links earn their keep, answering from the page they're just dead weight. the href-strip run is done and goes up tonight, but the compact list at the end is the middle option I haven't tried yet. going to run that one — when yours does follow a link, does it usually pick the first one on the page or actually choose?
Mostly it chooses: the model matches anchor text against the question, not position. Where it slips is vague anchors ("here", "docs", "read more") plus nav links, then position bias creeps in. That's the case for the compact list: dedupe it, drop nav/footer links, keep anchor text. Curious how it compares to the href-strip run.