Expand description
Background daemon for automatic session capture and file watching. Background daemon for automatic session capture.
The daemon watches for Claude Code session files and automatically imports them into the Lore database. It provides:
- File watching for
~/.claude/projects/directory - Incremental parsing of session files
- Unix socket IPC for CLI communication
- Graceful shutdown handling
§Architecture
The daemon consists of three main components:
- Watcher: Monitors the file system for new/modified session files
- Server: Handles IPC commands from CLI (status, stop, stats)
- State: Manages PID file, socket path, and runtime state
§Usage
The daemon is typically started via lore daemon start and can be
stopped via lore daemon stop. Use lore daemon status to check
if the daemon is running.
Re-exports§
pub use server::send_command_sync;pub use server::DaemonCommand;pub use server::DaemonResponse;pub use state::DaemonState;pub use state::DaemonStats;pub use watcher::SessionWatcher;
Modules§
- server
- Unix socket IPC server for daemon communication.
- state
- Daemon state management.
- watcher
- File system watcher for AI tool session files.
Functions§
- run_
daemon - Runs the daemon in the foreground.