Why 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.
post mortems / bug hunting -- pinpointing what part of the logic was to blame for a certain problem.
If AI writes code, should the session be part of the commit?
351–360 of 410 posts
Re: If AI writes code, should the session be part of the commit?
#352Re: If AI writes code, should the session be part of the commit?
#353Earlier quoted context omitted.
is this not what entire.io is doing? Was founded by the old Github CEO Thomas Dohmke
Yes, when I first saw this, its exactly what I thought of.
Re: If AI writes code, should the session be part of the commit?
#354Re: If AI writes code, should the session be part of the commit?
#355The way I write code with AI is that I start with a project.md file, where I describe what I want done. I then ask it to make a plan.md file from that project.md to describe the changes it will make (or what it will create if Greenfield). I then iterate on that plan.md with the AI until it's what I want. I then ask it to make a detailed todo list from the plan.md and attach it to the end of plan.md. Once I'm fully sa…
Re: If AI writes code, should the session be part of the commit?
#356One agent writes task specs. The other implements them. Handoff files bridge the gap. The spec IS the session artifact because it captures intent, scope, and constraints before any code gets written.
The plan.md approach people are describing here is basically what happens naturally when you force yourself to write intent before execution.
Re: If AI writes code, should the session be part of the commit?
#357Earlier quoted context omitted.
Depending on the size it might make sense as a kind of commit metadata reference to external, like the signed-off-by field. Chat-Session-Ref: claude://gjhgdvbnjuteshjoiyew Perhaps that could also link out to other kinds of meeting transcripts or something too.
That wouldn't be very portable. A benefit of committing to your history is that it lives with the code no matter where the code or the AI service you use goes.
Re: If AI writes code, should the session be part of the commit?
#358Should your browser and search history be part of the commit too?
The thought you have while coding should be part of your workbook. This is a distillation of all the input and processing at the time, which can be a valuable clue for bug hunting and refactoring.
Re: If AI writes code, should the session be part of the commit?
#359Re: If AI writes code, should the session be part of the commit?
#360Original blogpost goes over motivations + workflow: