Expand description
Compaction checkpoint: writes compaction summaries to persistent artifacts.
Following the context engineering principle: “the summary should be written
into a persistent artifact, such as progress.md, so that later sessions can
read it.” This module ensures that when compaction happens, the summary is
written to memories/progress.md and memories/compaction_summary.md so
that later sessions can orient from these artifacts.
This bridges the gap between compaction (which compresses conversation history) and the orient phase (which reads external artifacts at session start).
Functions§
- write_
compaction_ checkpoint - Write compaction summary to persistent artifacts for later sessions.
- write_
compaction_ checkpoint_ async - Async adapter for compaction callers running on Tokio workers.