{"version":"2.1.196","anchor":"cumulative-compaction-token-tracking","canonical_anchor":"cumulative-compaction-token-tracking","heading":"Cumulative Compaction Token Tracking","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.196\/e\/cumulative-compaction-token-tracking","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.196","markdown":"### Cumulative Compaction Token Tracking\n\nCompaction events now track and carry forward the cumulative number of context tokens removed across the entire session history, not just the most recent compaction.\n\n**Details**\n\n- Each compaction event records `cumulative_dropped_tokens` (approximately the sum of `pre_tokens - post_tokens` across this and all prior compactions).\n- Visible in the hooks schema under `cumulative_dropped_tokens` on compact events.\n- The internal state is updated by scanning previous compact events and taking the maximum cumulative value seen.\n\n**Evidence**\n\nNew cumulative tracking (search for `\"@internal Running total of context tokens compaction has removed so far\"`)"}