Hacker News new | past | comments | ask | show | jobs | submit

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

https://github.com/mandel-macaque/memento
loading story #47214629
loading story #47214007
I floated that idea a week ago: https://news.ycombinator.com/item?id=47096202, although I used the word "prompts" which users pointed out was obsolete. "Session" seems better for now.

The objections I heard, which seemed solid, are (1) there's no single input to the AI (i.e. no single session or prompt) from which such a project is generated,

(2) the back-and-forth between human and AI isn't exactly like working with a compiler (the loop of source code -> object code) - it's also like a conversation between two engineers [1]. In the former case, you can make the source code into an artifact and treat that as "the project", but you can't really do that in the latter case, and

(3) even if you could, the resulting artifact would be so noisy and complicated that saving it as part of the project wouldn't add much value.

At the same time, people have been submitting so many Show HNs of generated projects, often with nothing more than a generated repo with a generated readme. We need a better way of processing these because treating them like old-fashioned Show HNs is overwhelming the system with noise right now [2].

I don't want to exclude these projects, because (1) some of them are good, (2) there's nothing wrong with more people being able to create and share things, (3) it's foolish to fight the future, and (4) there's no obvious way to exclude them anyhow.

But the status quo isn't great because these projects, at the moment, are mostly not that interesting. What's needed is some kind of support to make them more interesting.

So, community: what should we do?

[1] this point came from seldrige at https://news.ycombinator.com/item?id=47096903 and https://news.ycombinator.com/item?id=47108653.

YoumuChan makes a similar point at https://news.ycombinator.com/item?id=47213296, comparing it to Google search history. The analogy is different but the issue (signal/noise ratio) is the same.

[2] Is Show HN dead? No, but it's drowning - https://news.ycombinator.com/item?id=47045804 - Feb 2026 (422 comments)

My current thinking is based on boris tanes[1] formalised method of coding with Claude code. I commit the research and plan.md files as they are when I finally tell Claude to implement changes in code. This becomes a living lexicon of the architecture and every feature added. A very slight variation I do from Boris's method is that I prefix all my research and plan .md filenames with the name of the feature. I can very quickly load relevant architecture into context by having Claude read a previous design document instead of analysing the whole code base. I'll take pieces I think are relevant and tell Claude to base research from those design documents.

[1] https://boristane.com/blog/how-i-use-claude-code/

loading story #47214434
loading story #47213756
loading story #47217900
loading story #47214550
loading story #47215476
loading story #47215268
loading story #47214890
loading story #47213907
loading story #47213999
loading story #47215779
loading story #47213709
loading story #47213772
loading story #47213856
loading story #47214487
loading story #47214066
> people have been submitting so many Show HNs of generated projects

In this case, it was more of write the X language compiler using X. I had to prove to myself if keeping the session made sense, and what better way to do it than to vibe code the tool to audit vibe code.

I do get your point though

loading story #47217537
loading story #47217407
loading story #47213739
loading story #47213208
loading story #47219267
loading story #47217075
loading story #47214096
loading story #47213895
loading story #47216024
loading story #47213296
loading story #47223091
loading story #47213482
loading story #47213779
loading story #47220956
loading story #47220204
loading story #47217963
loading story #47219841
loading story #47220794
loading story #47214499
loading story #47221301
loading story #47220114
I’ve been thinking about a simple problem: We’re increasingly merging AI-assisted code into production, but we rarely preserve the thing that actually produced it — the session. Six months later, when debugging or reviewing history, the only artifact left is the diff. So I built git-memento. It attaches AI session transcripts to commits using Git notes.
loading story #47213318
loading story #47214167
loading story #47212444
loading story #47215033
loading story #47213187
loading story #47220323
loading story #47214118
loading story #47213336
loading story #47213865
loading story #47217757
loading story #47216752
loading story #47214947
loading story #47214945
loading story #47218987
loading story #47215896
loading story #47221478
loading story #47219271
loading story #47214900
loading story #47216549
loading story #47214109
loading story #47214876
loading story #47214510
loading story #47219423
loading story #47214586
loading story #47216202
loading story #47215791
loading story #47214017
loading story #47214336
loading story #47213985
loading story #47214800
loading story #47213163
loading story #47213149
loading story #47213312
loading story #47214624
loading story #47218341
loading story #47217657
loading story #47213983
loading story #47213234
loading story #47213361
loading story #47213962
loading story #47213795
loading story #47214782
loading story #47214090
loading story #47213028
loading story #47214145
loading story #47214399
loading story #47216654
loading story #47216022
loading story #47214467
loading story #47217514
loading story #47215646
loading story #47214274
loading story #47219592
loading story #47213823
loading story #47214447
loading story #47215136
loading story #47216504
loading story #47216224
loading story #47214459
loading story #47215634
loading story #47216221
loading story #47214500
loading story #47213335
loading story #47213237
loading story #47214290
loading story #47215365
loading story #47213698
loading story #47215974
loading story #47214837
loading story #47214597
loading story #47215107
loading story #47215084
loading story #47212521
loading story #47216176
loading story #47214137
loading story #47215380
loading story #47214699
loading story #47220090
loading story #47220022
loading story #47213822
loading story #47214206
loading story #47213227
loading story #47217302
loading story #47214547
loading story #47216805
loading story #47213264
loading story #47214969
loading story #47218059
loading story #47218473
loading story #47214216
loading story #47214964
loading story #47214302
loading story #47218023
loading story #47217311
loading story #47213809
loading story #47215395
loading story #47215309
loading story #47213388
loading story #47215749
loading story #47213353
loading story #47214564
loading story #47214556
loading story #47214536
loading story #47214264
loading story #47214166
loading story #47213933
loading story #47213320
loading story #47214750
loading story #47212627
loading story #47213738
loading story #47215642
loading story #47216342
loading story #47213911
loading story #47217355
loading story #47215176