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 classificationorchestrator: Capture coordination with deduplicationformatter: 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§
- Conversation
Section - A section of conversation.
- PreCompact
Handler - Handler for the
PreCompacthook event. - PreCompact
Input - Input for the
PreCompacthook.
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.