Git records what changed, not why. When AI writes a 300-line diff, the reasoning, constraints, and decisions stay behind in chat logs on your disk. That's the newest technical debt: lost context. At commit time, it matches session transcripts to your staged files and uses the Claude Code CLI you already have to distill the intent into docs/intents/, staged into the same commit as the code it explains. The why travels with the what. No new platform, no new workflow, no commit ever blocked.
Hey Product Hunt! 👋
Adrian here. This came out of pure frustration: I'd open a file Claude Code wrote three weeks ago, have zero memory of why it handled an edge case that way, and know the answer was sitting in a chat transcript somewhere on my disk. Git blame told me nothing. The AI that wrote it couldn't remember either.
So I built the smallest possible fix: at commit time, match the session transcripts to the staged files, distill the intent into a markdown doc, and commit it alongside the code. No new platform, no workflow change. It uses the Claude Code CLI you already have installed.
A few honest notes:
It only helps if you code with AI in sessions it can find. Hand-typed hotfixes just pass through.
The intent docs are only as good as the distillation, so I'd genuinely love examples where it got the "why" wrong.
Biggest question I'm wrestling with: should the intent doc live separately from the planning doc used to generate the code? Curious what this community thinks.
Thanks for checking it out!
Report
Love that it stages the intent docs into the same commit. One thing that would make this way more useful for my team: let me link related commits or PRs so the intent doc can reference the follow-up context, not just the initial why. Right now if a decision evolves across three commits, the original intent gets stale fast.
Report
Staging the intent docs into the same commit as the code itself is such a clean move, it keeps the why and the what physically inseparable in git history. Nice execution on something that could've easily turned into another dashboard.
Report
No reviews yetBe the first to leave a review for Commit Intent
Love that it stages the intent docs into the same commit. One thing that would make this way more useful for my team: let me link related commits or PRs so the intent doc can reference the follow-up context, not just the initial why. Right now if a decision evolves across three commits, the original intent gets stale fast.
Staging the intent docs into the same commit as the code itself is such a clean move, it keeps the why and the what physically inseparable in git history. Nice execution on something that could've easily turned into another dashboard.