logoalt Hacker News

anshulbhideyesterday at 4:09 PM1 replyview on HN

> The pull request model on GitHub doesn’t carry enough information to review AI generated code properly — I wish I could see the prompts that led to changes. It’s not just GitHub, it’s also git that is lacking.

Yes! Who is building this?


Replies

amarantyesterday at 4:16 PM

Create a folder called "prompts". Create a new file for each prompt you make, name the time after timestamp. Or just append to prompts.txt

Either way, git will make it trivial to see which prompt belongs with which commit: it'll be in the same diff! You can write a pre-commit hook to always include the prompts in every commit, but I have a feeling most Vibe coders always commit with -a anyway

show 1 reply