Skip to main content

Module session_summary

Module session_summary 

Source
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 candidate iff enabled and the turn cadence is due. Returns the title of the recorded summary, or None if skipped.
record_now
Force-record a summary now (explicit action), ignoring the turn cadence.