lore daemon
The daemon watches for new AI coding sessions and imports them automatically in real-time.
Commands
Section titled “Commands”| Command | Description |
|---|---|
lore daemon start | Start the daemon |
lore daemon stop | Stop the daemon |
lore daemon status | Check daemon status |
lore daemon logs | View daemon logs |
lore daemon install | Install as system service |
lore daemon uninstall | Remove system service |
Starting the Daemon
Section titled “Starting the Daemon”Manual Start
Section titled “Manual Start”# Start in backgroundlore daemon start
# Start in foreground (useful for debugging)lore daemon start --foregroundAs a Service (Recommended)
Section titled “As a Service (Recommended)”Services start automatically on login and restart on failure.
macOS with Homebrew:
brew services start lorebrew services stop lorebrew services restart loreLinux with systemd:
lore daemon install # Install and enablelore daemon uninstall # Remove serviceOr manage directly:
systemctl --user start loresystemctl --user stop loresystemctl --user status loreChecking Status
Section titled “Checking Status”lore daemon statusDaemon 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/Viewing Logs
Section titled “Viewing Logs”# View recent logslore daemon logs
# Follow logs in real-timelore daemon logs --follow
# Show more lineslore daemon logs --lines 100Log location: ~/.lore/logs/
How It Works
Section titled “How It Works”The daemon:
- Watches session directories for all enabled tools
- Detects new or modified session files
- Parses and imports sessions incrementally
- Tracks git branch changes during sessions
- Handles file rotations and tool restarts
Sessions are available immediately after creation, no manual import needed.
Daemon vs Manual Import
Section titled “Daemon vs Manual Import”| Feature | Daemon | Manual Import |
|---|---|---|
| Real-time capture | Yes | No |
| Branch tracking | Yes | Snapshot only |
| CPU usage | Minimal (event-based) | None when idle |
| Startup | Automatic (service) | Manual |
For active development, the daemon provides the best experience. For occasional use, manual lore import is sufficient.
Troubleshooting
Section titled “Troubleshooting”Daemon won’t start:
# Check if already runninglore daemon status
# Check for port conflictslore daemon logs
# Try foreground mode for debugginglore daemon start --foregroundSessions not appearing:
# Verify daemon is watching the right directorieslore daemon status
# Check enabled watcherslore config get watchers
# Check logs for errorslore daemon logsHigh CPU usage:
The daemon uses event-based file watching with minimal CPU. If you see high usage:
# Check logs for rapid file changeslore daemon logs --lines 200
# Restart the daemonlore daemon stop && lore daemon startSee Also
Section titled “See Also”- lore import - Manual import
- Background Daemon Guide - Setup details