{"slug": "ask-hn-how-do-you-review-and-validate-llm-generated-code", "title": "Ask HN: How do you review and validate LLM generated code?", "summary": "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.", "body_md": "It's become very fast to generate code nowadays, but how do you review and test all of it?\n\nEvery 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.\n\nAnd 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.\n\nAs 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.\n\nI would like to know if you have any workflows, strategies, or tricks.\n\nComments URL: [https://news.ycombinator.com/item?id=49378314](https://news.ycombinator.com/item?id=49378314)\n\nPoints: 1\n\n# Comments: 0", "url": "https://wpnews.pro/news/ask-hn-how-do-you-review-and-validate-llm-generated-code", "canonical_source": "https://news.ycombinator.com/item?id=49378314", "published_at": "2026-08-20 18:26:05+00:00", "updated_at": "2026-08-20 18:45:26.674142+00:00", "lang": "en", "topics": ["large-language-models", "developer-tools"], "entities": ["Hacker News"], "alternates": {"html": "https://wpnews.pro/news/ask-hn-how-do-you-review-and-validate-llm-generated-code", "markdown": "https://wpnews.pro/news/ask-hn-how-do-you-review-and-validate-llm-generated-code.md", "text": "https://wpnews.pro/news/ask-hn-how-do-you-review-and-validate-llm-generated-code.txt", "jsonld": "https://wpnews.pro/news/ask-hn-how-do-you-review-and-validate-llm-generated-code.jsonld"}}