logoalt Hacker News

mandel_xtoday at 12:27 AM5 repliesview on HN

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.


Replies

denismitoday at 2:54 AM

> the only artifact left is the diff

You also have code comments, docs in the repo, the commit message, the description and comments on the PR, the description and comments on your Issue tracker.

Providing context for a change is a solved problem, and there is relatively mature MCP for all common tooling.

show 1 reply
jwbrontoday at 5:23 AM

The former GitHub CEO has a startup and this was their first release. They call it checkpoints: https://entire.io/

I copied it for my own tooling to make it work a bit better for my workflows.

show 1 reply
latexrtoday at 12:40 AM

A better solution would be to read and understand the code before committing it.

show 2 replies
hrmtst93837today at 7:53 AM

Capturing the AI session is practical for maintaining context during reviews. It will help when tracing back through history after the fact.

midnitewarriortoday at 2:32 AM

I already invented this in my head, thanks for not making me code it.

Excellent idea, I just wish GitHub would show notes. You also risk losing those notes if you rebase the commit they are attached to, so make sure you only attach the notes to a commit on main.

show 1 reply