Skip to content

lore import

Import session data from enabled AI coding tools into the Lore database.

Terminal window
lore import [OPTIONS]
Terminal window
# Import from all enabled tools
lore import
# Preview what would be imported
lore import --dry-run
Importing from claude-code...
Found 12 session files
Imported 8 new sessions (4 already imported)
Importing from aider...
Found 3 session files
Imported 3 new sessions
Importing from gemini...
No sessions found
Import complete: 11 new sessions imported

With --dry-run:

[dry-run] Would import from claude-code...
Found 12 session files
Would import 8 new sessions (4 already imported)
[dry-run] Would import from aider...
Found 3 session files
Would import 3 new sessions
Dry run complete: would import 11 sessions
OptionDescription
--dry-runPreview without importing

Import reads from tools enabled in your configuration. To see or change enabled tools:

Terminal window
# View enabled tools
lore config get watchers
# Enable specific tools
lore config set watchers claude-code,aider,gemini
# View all available vs enabled tools
lore status

Each tool stores sessions in a specific location:

ToolLocation
Claude Code~/.claude/projects/
Codex CLI~/.codex/sessions/
Gemini CLI~/.gemini/tmp/*/chats/
Amp~/.local/share/amp/threads/
Aider.aider.chat.history.md (per-project)
Continue.dev~/.continue/sessions/
ClineVS Code extension storage
Roo CodeVS Code extension storage
Kilo CodeVS Code extension storage
OpenCode~/.local/share/opencode/storage/

Sessions are identified by their source file path. Re-running import skips sessions that have already been imported:

Found 12 session files
Imported 0 new sessions (12 already imported)

For automatic import as you work, use the daemon instead:

Terminal window
# macOS with Homebrew
brew services start lore
# Manual
lore daemon start

The daemon watches for new session files and imports them automatically.