13 points · by maledorak · 1y ago · 10 comments
The solution converts HTML into a compressed format that preserves the complete DOM structure. This means your LLM agents can still generate accurate XPath/CSS selectors, click buttons, fill forms, and follow links - just at 1/10th of the token cost.
It works by converting HTML into Emmet notation - a concise abbreviation syntax widely used in web development. LLMs understand this syntax just as well as HTML due to its presence in training data.