Background Daemon
The daemon watches for new AI coding sessions in real-time and imports them automatically. It also handles automatic session-to-commit linking when sessions end.
Manual Control
Section titled “Manual Control”lore daemon start # Start watchinglore daemon status # Check what's being watchedlore daemon logs # View daemon logslore daemon stop # Stop watchingRun as a Service
Section titled “Run as a Service”Install the daemon as a system service to start automatically on login.
macOS with Homebrew (Recommended)
Section titled “macOS with Homebrew (Recommended)”If you installed via Homebrew:
brew services start lorebrew services stop loreLinux with systemd
Section titled “Linux with systemd”Use the built-in service installer:
lore daemon install # Install and enable systemd servicelore daemon uninstall # Remove systemd serviceManual systemd Setup
Section titled “Manual systemd Setup”If you prefer manual configuration:
mkdir -p ~/.config/systemd/userCreate ~/.config/systemd/user/lore.service:
[Unit]Description=Lore AI session capture daemonAfter=default.target
[Service]Type=simpleExecStart=%h/.cargo/bin/lore daemon start --foregroundRestart=on-failureRestartSec=5
[Install]WantedBy=default.targetThen enable and start:
systemctl --user daemon-reloadsystemctl --user enable --now lore.servicesystemctl --user status lore.serviceWhat the Daemon Does
Section titled “What the Daemon Does”- Watches session directories for all enabled tools
- Detects new and modified session files
- Incrementally parses sessions (efficient for large files)
- Updates the database in real-time
- Tracks branch changes during sessions
- Automatically links sessions to commits when sessions end
- Automatically generates session summaries via LLM (if configured)
- Automatically syncs sessions to cloud every 4 hours (if logged in)
Automatic Cloud Sync
Section titled “Automatic Cloud Sync”When logged in to Lore Cloud with encryption configured, the daemon automatically syncs your sessions every 4 hours. This ensures your sessions are backed up without manual intervention.
Requirements
Section titled “Requirements”- Logged in via
lore login - Encryption passphrase configured (prompted after login or on first push)
Checking Sync Status
Section titled “Checking Sync Status”View when the next automatic sync will occur:
lore cloud statusLook for the “Next auto-sync” line in the output:
Local: Total sessions: 95 Pending sync: 3 Last sync: 2 hours ago Next auto-sync: in 1 hour 58 minutesManual Sync
Section titled “Manual Sync”You can always sync manually without waiting:
lore cloud syncAutomatic Session Summaries
Section titled “Automatic Session Summaries”When a summary provider is configured and auto-summarization is enabled, the daemon generates LLM-powered summaries when sessions end. This runs on a background thread so it does not block session capture.
# Configure a summary provider (guided wizard with hidden key input)lore init --force
# Enable auto-summarizationlore config set summary_auto true
# Optional: set minimum message count (default: 10)lore config set summary_auto_threshold 10How It Works
Section titled “How It Works”- Daemon detects a session has ended
- Checks that
summary_autois enabled and session meets the message threshold - Skips sessions that already have a summary
- Sends the conversation transcript to the configured LLM provider
- Stores the generated summary in the database
Viewing Summaries
Section titled “Viewing Summaries”Sessions with summaries show a [S] indicator in lore sessions:
ID STARTED MESSAGES BRANCH DIRECTORYabc12345 [S] 2026-02-27 10:30 234 main myappView the full summary:
lore summarize abc123 --showMonitoring
Section titled “Monitoring”Check the daemon logs for summary activity:
lore daemon logs | grep -i "summar"You should see messages like:
Auto-generated summary for session abc12345If summarization is skipped (e.g., provider not configured, session too short), it is logged at debug level and does not produce warnings.
See Configuration > Session Summaries for all settings.
Automatic Session Linking
Section titled “Automatic Session Linking”When the daemon detects that a session has ended (the session file has an ended_at timestamp), it automatically:
- Queries git for all commits made between
started_atandended_at - Searches across all branches (not just the current one)
- Creates links for each commit found
- Skips commits that are already linked (idempotent)
Example Timeline
Section titled “Example Timeline”10:00 AM Start Claude Code session10:15 AM Commit abc123 "feat: add auth"10:20 AM Switch to feature branch10:30 AM Commit def456 "fix: edge case"10:45 AM End session
Daemon detects session end, finds: - Commits abc123 and def456 in time window - Creates links automaticallyBenefits
Section titled “Benefits”- No setup required: Works automatically with the daemon running
- No git hooks needed: Unlike hook-based approaches, no per-repo installation
- Catches all branches: If you switch branches during a session, all commits are linked
- Retroactive within session: Even if you forget to commit until the end, all commits are captured
Viewing Linked Sessions
Section titled “Viewing Linked Sessions”After auto-linking, use these commands to see the results:
# Show linked commits for a sessionlore show <session-id>
# Show linked sessions for a commitlore show --commit HEAD
# See which session produced a line of codelore blame src/main.rs:42Troubleshooting
Section titled “Troubleshooting”Sessions Not Being Linked
Section titled “Sessions Not Being Linked”- Check daemon is running:
lore daemon status - Check session has ended: Active sessions won’t be linked until they end
- Check working directory: Session must be in a git repository
- Check time window: Commits must be between session start and end times
View Auto-Linking Activity
Section titled “View Auto-Linking Activity”Check the daemon logs for linking activity:
lore daemon logs | grep -i "link"You should see messages like:
Auto-linked session abc123 to 2 commits