lerim sync¶
Index new sessions and extract memories (hot path).
Overview¶
Hot-path: discover new agent sessions from connected platforms, enqueue them, and run DSPy extraction to create memory primitives. Requires a running server (lerim up or lerim serve).
Note
sync is the hot path (queue + DSPy extraction + lead decision/write). Cold maintenance work is handled by lerim maintain.
Syntax¶
Parameters¶
Relative time window: 30s, 2m, 1h, 7d, or all.
Absolute start bound (overrides --window).
Absolute end bound (only with --since).
Comma-separated platform filter (e.g. claude,codex).
Max sessions to extract per run.
Target a single session by run ID (bypasses index scan).
Index/enqueue only, skip extraction.
Re-extract already-processed sessions.
Preview mode, no writes.
Skip the writer lock check. Use with caution -- only when you know no other sync/maintain is running.
Examples¶
Default sync¶
Extended window¶
Filter by agent¶
Re-extract a specific session¶
Absolute time bounds¶
Index only (no extraction)¶
Preview mode¶
Time window formats¶
Duration format: <number><unit> where unit is:
| Unit | Meaning |
|---|---|
s |
Seconds |
m |
Minutes |
h |
Hours |
d |
Days |
Special value all scans all sessions ever recorded.
Related commands¶
-
lerim maintain
Offline memory refinement
-
Background loop
Sync + maintain intervals (inside
lerim serve)