frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: How do you review gen-AI created code?

3•captainkrtek•1h ago
I've posed this in a couple comments, but want to get a bigger thread going.

There are some opinions that using LLMs to write code is just a new high level language we are dealing in as engineers. However, this leads to a disconnect come code-review time, in that the reviewed code is an artifact of the process that created it. If we are now expressing ourselves via natural language, (prompting, planning, writing, as the new "programming language"), but only putting the generated artifact (the actual code) up for review, how do we review it completely?

I struggle with what feels like a missing piece these days of lacking the context around how the change was produced, the plans, the prompting, to understand how an engineer came to this specific code change as a result. Did they one-shot this? did they still spend hours prompting/iterating/etc.? something in-between?

The summary in the PR often says what the change is, but doesn't contain the full dialog or how we arrived at this specific change (tradeoffs, alternatives, etc.)

How do you review PRs in your organization given this? Any rules/automation/etc. you institute?

Comments

christophilus•1h ago
> lacking the context around how the change was produced, the plans, the prompting, to understand how an engineer came to this specific code change as a result. Did they one-shot this? did they still spend hours prompting/iterating/etc.? something in-between?

In my opinion, you have to review it the way you always review code. Does the code do what it's supposed to do? Does it do it in a clean, modular way? Does it have a lot of boilerplate that should be reduced via some helper functions, etc.

It doesn't matter how it was produced. A code review is supposed to be: "Here's this feature {description}" and then, you look at the code and see if it does the thing and does it well.

JamesLangford•1h ago
I mostly ignore how the code was made and review the artifact the same way I always have: correctness, tests, readability, and whether it matches the system design. The prompt history is fine, but it’s not something I want to rely on during review because it’s not stable or reproducible.

What does help is requiring a short design note in the PR explaining the intent, constraints, and alternatives considered. That gives the context reviewers actually need without turning the review into reading a chat transcript.

al_borland•1h ago
At the end of the day, the code is the only thing that matters. That is what defines, in concrete terms, what the program is doing. I don't view an LLM as a high level language, as we can run a prompt 10 different times and get 10 different results. This isn't valuable when it comes to programming.

Even without LLMs, there was a thought process that led to the engineer coming to a specific outcome for the code, maybe some conversations with other team members, discussions and thoughts about trade offs, alternatives, etc... all of this existed before.

Was that all included in the PR in the past? If so, the engineer would have to add it in, so they should still do so. If not, why do you all the sudden need it because of an AI involved?

I don't see why things would fundamentally change.

Bondi, Miller, Rubio, Noem, Hegseth Have Relocated to Military Bases (NYT)

https://www.nytimes.com/2026/03/10/us/politics/bondi-military-housing-threats.html
1•tbreschi•2m ago•1 comments

Eric Schmidt: China Could Dominate the Physical AI Future

https://time.com/7382151/china-dominates-the-physical-ai-race/
2•Anon84•6m ago•0 comments

Ask HN: How do you prevent MCP agents from looping in production?

2•aethis•7m ago•0 comments

Iran's Control of Hormuz Means It's Exporting More Oil Today Than Before the War

https://www.wsj.com/world/middle-east/irans-control-of-hormuz-means-its-exporting-more-oil-today-...
1•JumpCrisscross•13m ago•0 comments

Rlclaw autonomous ML research companion

https://github.com/photon-cat/rlclaw
2•photoncat•15m ago•1 comments

The "Bloomberg Terminal" for Agents – Real-Time Intelligence API for AI Agents

https://thepolarisreport.com/agents
1•JohnWeston•16m ago•0 comments

Towards a Neural Debugger for Python

https://arxiv.org/abs/2603.09951
1•E-Reverance•23m ago•0 comments

Semantically search 45k+ AI skills

https://skillsgate.ai/
2•sultanvaliyev•27m ago•1 comments

Python library for translating between embedding model vector spaces

https://github.com/PotentiallyARobot/EmbeddingAdapters/
3•Taranovski•31m ago•1 comments

Robinhood Agent Integration

https://github.com/kevin1chun/rh-for-agents
3•kevin1chun•41m ago•0 comments

Show HN: FizzBuzz Forever – Agent Edition

https://github.com/dleemiller/fizzbuzz-forever
1•deepsquirrelnet•47m ago•0 comments

T9 in the Terminal for Codex, Claude, Gemini

https://github.com/Xsamsx/T9T
1•kyivctoner•50m ago•1 comments

Writing my own text editor, and daily-driving it

https://blog.jsbarretto.com/post/text-editor
5•todsacerdoti•50m ago•0 comments

Why Systems Optimized for Metrics Eventually Drift from Reality [pdf]

https://offbrandguy.com/wp-content/uploads/2026/03/optimization-trap-reality-drift-framework-2023...
2•realitydrift•51m ago•1 comments

Show HN: OpenClaw skill for think-tank style analysis of crises like Iran war

https://github.com/vassiliylakhonin/global-think-tank-analyst
1•vassilbek•54m ago•0 comments

Ask HN: What are some good lectures or talks like this one? [pdf]

https://www.labouseur.com/projects/codeReckon/papers/The-Emperors-Old-Clothes.pdf
1•jdironman•57m ago•2 comments

New Design for Firefox.com

https://www.firefox.com/en-US/
4•pentagrama•1h ago•0 comments

Recursive Problems Benefit from Recursive Solutions

https://jnkr.tech/blog/recursive-benefits-recursive
2•luispa•1h ago•0 comments

How HN: Specwatch – Generate OpenAPI specs by watching live API traffic

https://github.com/rajeevramani/specwatch
1•rajeevramani•1h ago•1 comments

Storm [video]

https://www.youtube.com/watch?v=HhGuXCuDb1U
1•nomilk•1h ago•0 comments

Zig – Type Resolution Redesign and Language Changes

https://ziglang.org/devlog/2026/#2026-03-10
22•Retro_Dev•1h ago•3 comments

The tests are the code now

https://softwaredoug.com/blog/2026/03/10/the-tests-are-the-code-now.html
5•zdw•1h ago•0 comments

Show HN: Assemble – Claude Code skill for parallel AI team execution

https://github.com/LakshmiSravyaVedantham/assemble
1•sravyavedantham•1h ago•0 comments

Breaking Control Flow Integrity by Abusing Modern C++ (Coroutines) – BH USA 2025 [video]

https://www.youtube.com/watch?v=hxIPoi4ONNA
2•matt_d•1h ago•0 comments

Show HN: ImageHost.ing – burn-after-reading image host on Cloudflare's free tier

https://imagehost.ing
1•lzy•1h ago•0 comments

Show HN: Polymorph (YC W26) – AI personalization for consumer app engagement

https://usepolymorph.com/
1•andrewsy•1h ago•0 comments

The Highly Exclusive Way That Everybody Shops Now

https://www.theatlantic.com/culture/2026/03/shopping-drop-exclusive-selling-out/686308/
2•paulpauper•1h ago•2 comments

Programming the Loop

https://ianbarber.blog/2026/03/10/programming-the-loop/
1•matt_d•1h ago•0 comments

Terence Tao had a paper rejected

https://mathstodon.xyz/@tao/113721209277409929
5•paulpauper•1h ago•1 comments

Ask HN: How do you review gen-AI created code?

3•captainkrtek•1h ago•3 comments