If the model in use is managed by a 3rd party, can be updated at will, and also gives different output each time it is interacted with, what is the main benefit? If I chat with an agent and give an initial prompt, and it gets "aspect A" (some arbitrary aspect of the expected code) wrong, I'll iterate to get "aspect A" corrected. Other aspects of the output may have exactly matched my (potentially unstated) expectatio…
If AI writes code, should the session be part of the commit?
31–40 of 410 posts
Re: If AI writes code, should the session be part of the commit?
#32I’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.
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.
Re: If AI writes code, should the session be part of the commit?
#33Re: If AI writes code, should the session be part of the commit?
#34https://entire.io thinks so
Re: If AI writes code, should the session be part of the commit?
#35Why should it be? The agent session is a messy intermediate output, not an artifact that should be part of the final product. If the "why" of a code change is important, have your agent write a commit message or a documentation file that is polished and intended for consumption.
Re: If AI writes code, should the session be part of the commit?
#36Re: If AI writes code, should the session be part of the commit?
#37Re: If AI writes code, should the session be part of the commit?
#38Why should it be? The agent session is a messy intermediate output, not an artifact that should be part of the final product. If the "why" of a code change is important, have your agent write a commit message or a documentation file that is polished and intended for consumption.
How’s it any different than a diff log?
Re: If AI writes code, should the session be part of the commit?
#39Re: If AI writes code, should the session be part of the commit?
#40Maybe not a permanent part of the commit, but something stored on the side for a few weeks at a time. Or even permanently, it could be useful to go back and ask, "why did you do it that way?", and realize that the reason is no longer relevant and you can simplify the design without worrying you're breaking something.