Linking Sessions to Commits
Links connect sessions to commits, creating a bridge between your AI conversations and your code history.
Manual Linking
Section titled “Manual Linking”Link a session to a commit:
# Link to the most recent commit (HEAD)lore link <session-id>
# Link to a specific commitlore link <session-id> --commit abc123Viewing Links
Section titled “Viewing Links”# See sessions linked to a commitlore show --commit HEADlore show --commit abc123
# See commits linked to a sessionlore show <session-id>Git Hooks
Section titled “Git Hooks”Install hooks to prompt for linking after each commit:
lore hooks installlore hooks statuslore hooks uninstallThe post-commit hook will prompt you to link recent sessions to your commit.
Best Practices
Section titled “Best Practices”- Link sessions immediately after committing while context is fresh
- Use session prefixes (first 8 characters) for convenience
- One session can link to multiple commits (and vice versa)