JustHTML: a Python HTML5 parser built with coding agents that passes html5lib tests
A developer spent his off-hours using Copilot agent mode with several models to build a dependency-free HTML5 parser, and wrote up every stage, including a full restart.
The problem
HTML5 parsing is notoriously complex. A large public conformance suite gave the agents a clear measure of progress, which made a mostly agent-written parser realistic.
How they did it
- Connect the html5lib-tests suite at the start and use its pass rate as the goal.
- Iterate with the agent, then restart from scratch by porting logic from html5ever.
- Profile, delete unused code found through coverage analysis, and harden the parser with fuzzing.
Results as reported by the author's blog
- JustHTML is about 3,000 lines of Python with 8,500+ tests passing.
- It passes 100% of the html5lib test suite.
- It passed 3 million generated webpages without any crashes.
These figures are as reported by the author's blog in Friendly Bit (Emil Stenström) ↗ (Dec 3, 2025). AgentGid did not measure or independently verify them.
This suits a solo developer or small team that is comfortable in Python and already has a strong public test suite to aim at; the case is rated advanced, and it took a full restart plus profiling and fuzzing. Watch the credit budget: Copilot's Pro plan ($10/mo) includes 1,500 monthly AI Credits, and long agent-mode iterations draw on them. Zed (Free + $10/mo, open source) lets you use your own API keys or external agents.
The agent used here
Similar use cases
How three Java Champions use GitHub Copilot for migration, testing and app building
Three experienced Java developers describe how they use GitHub Copilot in IDEs and agent workflows for feature work, a slide-deck migration, UI test reproduction and small apps. T…
As reported by the GitHub Blog (developer quotes): Vlad Mihalcea built an Optimizer event-history web app in two days, a task he expected to take wee…
GitHub rewrote its Copilot agent runtime in Rust with Copilot CLI
GitHub moved the agent runtime behind Copilot CLI, the Copilot app and the Copilot SDK from TypeScript on Node.js to Rust, with agents in the Copilot app and Copilot CLI writing m…
More than 800,000 lines of production Rust written, mostly by agents, across 128 pull requests that landed in main, as reported by GitHub.
Generate unit and integration tests with GitHub Copilot
GitHub's tutorial uses Copilot Chat to write a unit test suite for a class, then integration tests that mock an external notification service, and then asks what coverage is still…
A unit test suite that covers edge cases, exceptions and data validation. (as reported by GitHub)
Guides
Best AI Code Review Tools in 2026: CodeRabbit, Greptile, Graphite, Copilot and Open Source
AI code review agents for pull requests compared: what they check, how they are priced, open-source options and how to roll one out without drowning your team in comments.
AI Coding Agent Pricing Explained: Claude Code, Cursor, Codex and Copilot (2026)
What Claude Code, Cursor, OpenAI Codex, GitHub Copilot and other coding agents really cost: plan prices, usage limits, subscription vs API billing, and how to estimate your monthly bill.
What Is MCP (Model Context Protocol)? A Plain Guide and the Most Popular MCP Servers
What the Model Context Protocol is, how MCP servers and clients work, which AI agents support it, how to install a server safely, and the most-starred MCP servers by category.
Best AI Agents in 2026: Live Rankings by Category
The leading AI agents for coding, design, research, data, marketing, sales, support, HR, finance, legal, DevOps and security, ranked by public usage data that refreshes daily, with prices and free options.