We planted twelve D1, OpenNext and fetch pitfalls in Worker code. Sonnet found all of them unaided; Haiku said the edge runtime under OpenNext was fine.
A strong one can, most of the time; a small one cannot be trusted with the platform-specific ones. Cloudflare Workers and D1 have limits that a generic code review does not know about, and code that breaks them passes every local test before it fails in production. We planted twelve such pitfalls in short snippets of Worker code and asked Claude Sonnet and Claude Haiku to review them. Sonnet named all twelve without any help. Haiku named nine and twice told us that the edge runtime under OpenNext was fine, which it is not. Both models also raised false alarms on correct code, with and without our checklist.
Read the full report on AISkills402: https://aiskills402.com/blog/llm-workers-review-d1-opennext
Top comments (0)