lore import
Import session data from enabled AI coding tools into the Lore database.
lore import [OPTIONS]Examples
Section titled “Examples”# Import from all enabled toolslore import
# Preview what would be importedlore import --dry-runSample Output
Section titled “Sample Output”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 importedWith --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 sessionsOptions
Section titled “Options”| Option | Description |
|---|---|
--dry-run | Preview without importing |
Which Tools Are Imported
Section titled “Which Tools Are Imported”Import reads from tools enabled in your configuration. To see or change enabled tools:
# View enabled toolslore config get watchers
# Enable specific toolslore config set watchers claude-code,aider,gemini
# View all available vs enabled toolslore statusSession Discovery
Section titled “Session Discovery”Each tool stores sessions in a specific location:
| Tool | Location |
|---|---|
| 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/ |
| Cline | VS Code extension storage |
| Roo Code | VS Code extension storage |
| Kilo Code | VS Code extension storage |
| OpenCode | ~/.local/share/opencode/storage/ |
Deduplication
Section titled “Deduplication”Sessions are identified by their source file path. Re-running import skips sessions that have already been imported:
Found 12 session filesImported 0 new sessions (12 already imported)Real-time Import
Section titled “Real-time Import”For automatic import as you work, use the daemon instead:
# macOS with Homebrewbrew services start lore
# Manuallore daemon startThe daemon watches for new session files and imports them automatically.
See Also
Section titled “See Also”- lore sessions - List imported sessions
- lore daemon - Real-time session capture
- Supported Tools Reference - Tool details