Automatically save Claude Code conversations as Git Notes on every commit.
claudit initNow work with claude as you would normally. Whenever you or Claude Code commit, the conversation since the last commit will be attached to that commit as a Git Note.
See what conversations you have:
claudit listResume a past session:
claudit resume abc123 # By commit SHA
claudit resume HEAD~3 # By git refView in your browser:
claudit serveIn order to understand how and why a commit was made, we need to see the conversation that led to it.
Claudit uses Git Notes to attach conversations to commits, stored under refs/notes/claude-conversations to keep git log clean. When you run claudit init, it sets up hooks so:
- When Claude makes a commit, the conversation is saved automatically
- When you make a commit during a Claude session, it's saved too
- When you push/pull, conversations sync with the remote
No extra steps needed during your normal workflow.
To view notes directly with git: git log --notes=claude-conversations
| Command | Description |
|---|---|
claudit init |
Set up hooks in your repo |
claudit list |
Show commits with conversations |
claudit resume <commit> |
Resume a saved session |
claudit serve |
Open web UI |
claudit sync push/pull |
Manual sync (usually automatic) |
- Git
- Claude Code CLI (for resume)
- Go 1.21+ (for building from source)
See LICENSE file.