Documentation
¶
Overview ¶
Package main demonstrates context compaction monitoring using the PreCompact hook.
Context compaction occurs when the conversation history exceeds limits (95% by default) or when manually triggered with /compact. The PreCompact hook allows you to monitor and potentially customize compaction behavior.
Click to show internal directories.
Click to hide internal directories.