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

github.com
March 2, 2026
6 min read
🔥🔥🔥🔥🔥
67/100
Summary
Git-memento is a Git extension that records AI coding sessions associated with commits. It stores a cleaned markdown conversation as a git note on each new commit, allowing for human-readable documentation of the coding process.
Key Takeaways
- Git-Memento is a Git extension that records AI coding sessions and stores them as markdown notes on commits.
- Users can initialize repository settings and create commits while attaching AI session traces using specific Git commands.
- The extension supports multiple AI providers, allowing for session notes from different sources to be included in a single commit.
- Git-Memento includes features for syncing notes with remote repositories and auditing note coverage within commit ranges.
Coverage & discussions
Hacker News · github.com
Community discussions
Hacker News discussion ↗
Historical count: 5 · 5 saved in sample · Historical sample
Analysis ready
Community Sentiment
Positives
- The discussion highlights the importance of understanding the AI's role in code generation, emphasizing that the final product should be prioritized over intermediate sessions.
- Acknowledging the messy nature of AI-generated sessions suggests a focus on clarity and relevance, which can enhance the quality of the final code commits.
Concerns
- Concerns about the noise and incorrect implementations in AI sessions indicate a belief that these outputs may not provide value for future engineers or LLMs.
- The argument that agent sessions are merely messy intermediates suggests skepticism about their utility in the development process, potentially undermining trust in AI-assisted coding.




