Expand description
AI session summaries (#292): periodically distil the working session into a compact, semantically-recallable digest.
Pipeline: generate::build_candidate (under the session lock, cheap, owned)
→ maybe_record_periodic (off the hot path: cadence check + persist) →
recall::recall (semantic when embeddings are warm, else lexical).
Deterministic and local-first: no LLM is required to produce or recall a summary.
Re-exports§
pub use recall::recall;
Modules§
- recall
- Recall past session summaries — semantic when embeddings are loaded, else a lexical token-overlap fallback (#292).
Functions§
- build_
candidate - Build a lock-free candidate from the live session. Call while holding the
session lock; persist the result off the hot path with
maybe_record_periodic. - list
- The stored summaries of a project as they may be served NOW (oldest first): each record through the originless rule, a record that is not released left out. The store on disk is not touched by this view.
- maybe_
record_ periodic - Record
candidateiff enabled and the turn cadence is due. Returns the title of the recorded summary, orNoneif skipped. - record_
now - Force-record a summary now (explicit action), ignoring the turn cadence.