Skip to content

lore daemon

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

CommandDescription
lore daemon startStart the daemon
lore daemon stopStop the daemon
lore daemon statusCheck daemon status
lore daemon logsView daemon logs
lore daemon installInstall as system service
lore daemon uninstallRemove system service
Terminal window
# Start in background
lore daemon start
# Start in foreground (useful for debugging)
lore daemon start --foreground

Services start automatically on login and restart on failure.

macOS with Homebrew:

Terminal window
brew services start lore
brew services stop lore
brew services restart lore

Linux with systemd:

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

Or manage directly:

Terminal window
systemctl --user start lore
systemctl --user stop lore
systemctl --user status lore
Terminal window
lore daemon status
Daemon Status: Running
PID: 12345
Uptime: 2 hours, 15 minutes
Sessions captured: 3
Watching:
claude-code: ~/.claude/projects/
aider: (per-project .aider.chat.history.md)
gemini: ~/.gemini/tmp/
Terminal window
# View recent logs
lore daemon logs
# Follow logs in real-time
lore daemon logs --follow
# Show more lines
lore daemon logs --lines 100

Log location: ~/.lore/logs/

The daemon:

  1. Watches session directories for all enabled tools
  2. Detects new or modified session files
  3. Parses and imports sessions incrementally
  4. Tracks git branch changes during sessions
  5. Handles file rotations and tool restarts

Sessions are available immediately after creation, no manual import needed.

FeatureDaemonManual Import
Real-time captureYesNo
Branch trackingYesSnapshot only
CPU usageMinimal (event-based)None when idle
StartupAutomatic (service)Manual

For active development, the daemon provides the best experience. For occasional use, manual lore import is sufficient.

Daemon won’t start:

Terminal window
# Check if already running
lore daemon status
# Check for port conflicts
lore daemon logs
# Try foreground mode for debugging
lore daemon start --foreground

Sessions not appearing:

Terminal window
# Verify daemon is watching the right directories
lore daemon status
# Check enabled watchers
lore config get watchers
# Check logs for errors
lore daemon logs

High CPU usage:

The daemon uses event-based file watching with minimal CPU. If you see high usage:

Terminal window
# Check logs for rapid file changes
lore daemon logs --lines 200
# Restart the daemon
lore daemon stop && lore daemon start