logoalt Hacker News

If AI writes code, should the session be part of the commit?

357 pointsby mandel_xtoday at 12:27 AM314 commentsview on HN

Comments

lsc4719today at 3:06 AM

Proof sketch is not proof

nautilus12today at 6:32 AM

This would just record a lot of me cursing at and calling the AI an idiot.

globular-toasttoday at 6:31 AM

Like any discussion about AI there are two things people are talking about here and it's not always clear which:

1. Using LLMs as a tool but still very much crafting the software "by hand",

2. Just prompting LLMs, not reading or understanding the source code and just running the software to verify the output.

A lot of comments here seem to be thinking of 1. But I'm pretty sure the OP is thinking of 2.

igetspamtoday at 6:27 AM

Yes.

EOM

foamzoutoday at 2:59 AM

No. Prompt-like document is enough. (e.g. skills, AGENTS.md)

tayo42today at 5:41 AM

I feel like publishing the session is like publishing a sketch book. I don't need all of my mistakes and dumb questions recorded.

If that was important, why are we not already doing things like this. Should I have always been putting my browser history in commits?

x3n0ph3n3today at 5:23 AM

I include my "plans" and a link to my transcript on all my PRs that include AI-generated code. If nothing else, others on my team can learn from them.

dborehamtoday at 4:38 AM

I've thought about this, and I do save the sessions for educational purposes. But what I ended up doing is exactly what I ask developers to do: update the bug report with the analysis, plan, notes etc. In the case there's a single PR fixing one bug, GitHub and Claude tend to prefer this information go in the PR description. That's ok for me since it's one click from the bug.

esttoday at 7:09 AM

obligatory: git notes

Lots of comments mentioned this, for those who aren't aware, please checkout

Git Notes: Git's coolest, most unloved­ feature (2022)

https://news.ycombinator.com/item?id=44345334

I think it's a perfect match for this case.

hsuduebc2today at 2:54 AM

I must say that would certainly show some funny converstaions in a log.

nicman23today at 9:32 AM

no and neither should be the actual code. you should at least remove the excessive bs that the ai comments and autisms about

raggitoday at 4:02 AM

nope. Someones going to leak important private data using something like this.

Consider:

"I got a bug report from this user:

... bunch of user PII ..."

The LLM will do the right thing with the code, the developer reviewed the code and didn't see any mention of the original user or bug report data.

Now the notes thing they forgot about goes and makes this all public.

show 1 reply
trailblazetoday at 12:51 PM

[dead]

lidn12today at 10:57 AM

[dead]

hackersktoday at 4:33 AM

[dead]

adrian-vegatoday at 8:16 AM

[dead]