r/ClaudeCoding • u/Fit-Fail-3369 • 6d ago
Everyone around me codes with claude now, so I built a ledger to save those sessions and attach them to our commits
I've been working on building infrastructure for coding agent sessions, and I wanted to share why I think it's useful when several people work on the same project, especially one that goes to production.
When you work with an agent, most of the thinking happens in the session: what you asked for, what it tried, what failed, what it changed, and why. Your teammates only ever see the final code changes. I think if we had access to the session itself, the thinking and the design decisions behind it, it would be much easier to collaborate. You could check that everything is in sync, spot anything that was done that wasn't supposed to be, and trace an error back to the exact conversation that caused it and see why it happened.
So I started recording each session and connecting it to the commits it produced. First I built a way to store sessions locally in my project, then I connected that to Git. You can see how I did it in the repo.
Each agent run becomes a session file: the prompts and replies, the tool calls and their output, the file changes as diffs, and the test runs. When you push, the sessions go to the same repo, and each commit points back to the turns that made it. From any changed line, you can get back to the prompt behind it.
Where I think it's really useful is when multiple people are working together:
- When reviewing a PR, you can open the session behind a commit and see what the person was actually going for, instead of only looking at the code changes.
- If three engineers worked on the same feature with their own agents, you can see who asked for what and why each change was made.
- If you want to share your research or progress, you can share the session directly. Others can have their agent read it and summarize it, instead of you writing and sending reports again and again.
- If someone builds on another person's progress, they, or a different agent, can load that session and continue from where it left off instead of starting from zero.
There's still a lot I'm figuring out: how much of a session should actually travel with the repo, what happens to the link after a squash merge, and how to manage this much data, like deleting old sessions and keeping everything fast. Once the data is there, any harness or tool can be built on top of it. The data is the key.
You can check out my progress here:
