Skip to main content

Module compaction_checkpoint

Module compaction_checkpoint 

Source
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.