Receipts Outlive Memory - Why Git Blame Matters More Than Agent Memory
The Ultimate Receipt
Agent memory systems are getting more sophisticated - knowledge graphs, vector databases, long-term retention with decay functions. But for accountability, none of them beat git blame.
Git blame lets you trace any line of code back to the exact commit that introduced it. You can see the commit message, the timestamp, the author, and the full diff. If that commit was generated by an AI agent, the CLAUDE.md spec and the prompt that triggered it are often right there in the commit message or linked PR.
This is not memory. This is receipts.
Why Memory Falls Short
Agent memory is useful for continuity - remembering your preferences, past decisions, project context. But it has fundamental limitations for accountability:
- Memory can be pruned. Token limits and retention policies mean old memories get dropped.
- Memory can be wrong. The agent might remember a decision differently than what actually happened.
- Memory is not shared. If you switch agents or models, the memory does not transfer.
- Memory is not auditable. You cannot easily verify what the agent "remembers" against what actually occurred.
Git history has none of these problems. It is immutable, shared, and verifiable.
Building an Audit Trail
When AI agents generate code, the commit history becomes your audit trail. Good practices:
- Descriptive commit messages that include why the change was made, not just what changed
- Link commits to the prompt or spec that triggered them
- Never squash AI-generated commits - keep the full trail of intermediate steps
- Use Co-Authored-By headers to distinguish human vs agent work
When something breaks six months later, you do not need to ask the agent "do you remember why you did this?" You run git blame, read the commit, and know exactly what happened.
Receipts Over Recall
Memory is useful. Receipts are essential. Build your agent workflows so that every decision leaves a trace in version control, not just in the agent's memory.
Fazm is an open source macOS AI agent. Open source on GitHub.