Skip to main content

Module pre_compact

Module pre_compact 

Source
Expand description

Pre-compact hook handler.

Analyzes content being compacted and auto-captures important memories. Integrates with DeduplicationService to avoid capturing duplicate memories.

§Module Structure

  • analyzer: Content analysis and namespace classification
  • orchestrator: Capture coordination with deduplication
  • formatter: Response formatting for hook output

Re-exports§

pub use analyzer::CaptureCandidate;
pub use analyzer::calculate_section_confidence;
pub use analyzer::contains_blocker_language;
pub use analyzer::contains_context_language;
pub use analyzer::contains_decision_language;
pub use analyzer::contains_learning_language;
pub use analyzer::contains_pattern_language;
pub use formatter::ResponseFormatter;
pub use orchestrator::CaptureOrchestrator;

Modules§

analyzer 🔒
Content analysis for pre-compact hook.
formatter 🔒
Response formatting for pre-compact hook.
orchestrator 🔒
Capture orchestration for pre-compact hook.

Structs§

ConversationSection
A section of conversation.
PreCompactHandler
Handler for the PreCompact hook event.
PreCompactInput
Input for the PreCompact hook.

Constants§

FINGERPRINT_LENGTH
Length of content fingerprint for deduplication.
MIN_COMMON_CHARS_FOR_DUPLICATE
Minimum common characters to consider a duplicate.
MIN_SECTION_LENGTH
Minimum section length to consider for capture.

Functions§

default_role 🔒