Skip to content

Background Daemon

The daemon watches for new AI coding sessions in real-time and imports them automatically.

Terminal window
lore daemon start # Start watching
lore daemon status # Check what's being watched
lore daemon logs # View daemon logs
lore daemon stop # Stop watching

Install the daemon as a system service to start automatically on login.

If you installed via Homebrew:

Terminal window
brew services start lore
brew services stop lore

Use the built-in service installer:

Terminal window
lore daemon install # Install and enable systemd service
lore daemon uninstall # Remove systemd service

If you prefer manual configuration:

Terminal window
mkdir -p ~/.config/systemd/user

Create ~/.config/systemd/user/lore.service:

[Unit]
Description=Lore AI session capture daemon
After=default.target
[Service]
Type=simple
ExecStart=%h/.cargo/bin/lore daemon start --foreground
Restart=on-failure
RestartSec=5
[Install]
WantedBy=default.target

Then enable and start:

Terminal window
systemctl --user daemon-reload
systemctl --user enable --now lore.service
systemctl --user status lore.service
  • 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