Skip to content

Linking Sessions to Commits

Links connect sessions to commits, creating a bridge between your AI conversations and your code history.

Link a session to a commit:

Terminal window
# Link to the most recent commit (HEAD)
lore link <session-id>
# Link to a specific commit
lore link <session-id> --commit abc123
Terminal window
# See sessions linked to a commit
lore show --commit HEAD
lore show --commit abc123
# See commits linked to a session
lore show <session-id>

Install hooks to prompt for linking after each commit:

Terminal window
lore hooks install
lore hooks status
lore hooks uninstall

The post-commit hook will prompt you to link recent sessions to your commit.

  • 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)