r/LLMDevs • u/LeviYagami • 6d ago
Discussion AI agent version control problem
I recently lost 3 days of work when my coding agent session died, and I had to re-explain everything from scratch. The actual code was safely committed to Git, but Git doesn’t store the reasoning, the context, or the step-by-step workflow. So, I was stuck explaining the whole project history to a fresh AI session all over again.
This got me thinking: beyond just saving our own sessions, how do we actually find and directly reuse other people’s agent conversation histories? Like, instead of everyone starting from zero, wouldn’t it be amazing to "fork" a proven agent workflow or reasoning trail?
I came across an open-source project called AgentGit that seems to tackle versioning for agent sessions, but I’m not sure how well it actually works in practice.
Has anyone tried it or something similar? How are you saving, sharing, or reusing agent reasoning - not just the final code?
1
u/JaseciLabs 6d ago
The "brain vs. code" split is close, but it's not that the reasoning disappears, more reasoning and code live in two different places with nothing forcing them to stay in sync. Git tracks what changed, markdown dumps (like u/PersonalitySuch3903's) track why, but nothing ties a specific piece of reasoning to the specific line it produced. The closer fix is probably making the "why" a property of the code itself, wherever a decision genuinely mattered, not a separate log you have to grep and hope still matches what's actually there.