cd /news/large-language-models/ask-hn-how-do-you-review-and-validat… · home topics large-language-models article
[ARTICLE · art-104956] src=news.ycombinator.com ↗ pub= topic=large-language-models verified=true sentiment=· neutral

Ask HN: How do you review and validate LLM generated code?

A Hacker News user asked how developers review and validate code generated by large language models, noting that LLM reviews produce inconsistent findings and that manual review can take longer than writing the code from scratch. The user also questioned the reliability of LLM-written tests, which may not assert expected product flows. The post received 1 point and no comments.

read1 min views2 publishedAug 20, 2026

It's become very fast to generate code nowadays, but how do you review and test all of it?

Every time you ask a model to review some piece of code, it comes back with different "findings". So, you still have to filter through the noise of their findings to get to actual defects.

And if you try to do the full review manually, then it might take more time to just understand the code than writing it yourself from the beginning.

As for testing, you can ask the LLM to write the tests, but you can't be sure if the tests actually assert the expected product flow or just write pass/fail tests for a piece of logic.

I would like to know if you have any workflows, strategies, or tricks.

Comments URL: [https://news.ycombinator.com/item?id=49378314](https://news.ycombinator.com/item?id=49378314)

Points: 1

── more in #large-language-models 4 stories · sorted by recency
── more on @hacker news 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/ask-hn-how-do-you-re…] indexed:0 read:1min 2026-08-20 ·