
Commit Intent
Pre-commit hook that writes an intent doc by mining AI chats
9 followers
Pre-commit hook that writes an intent doc by mining AI chats
9 followers
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.


Free
Launch Team / Built With
BesydrA self-learning supervisor for coding agents
Promoted

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.