{"version":"2.1.81","anchor":"time-based-micro-compaction-gradual-rollout","canonical_anchor":"time-based-micro-compaction-gradual-rollout","heading":"Time-Based Micro-Compaction [Gradual Rollout]","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.81\/e\/time-based-micro-compaction-gradual-rollout","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.81","markdown":"### Time-Based Micro-Compaction [Gradual Rollout]\n\n**What**\n\nAutomatically clears old tool result content when the user returns after an idle gap, reducing context size without a full compaction.\n\n**Status**\n\nFeature-flagged by `tengu_slate_heron`.\n\n**Details**\n\n- Detects idle gaps between the last assistant message and the current time\n- When the gap exceeds a configurable threshold, replaces old tool results with \"[Old tool result content cleared]\"\n- Keeps the N most recent tool results intact (`keepRecent` config)\n- Logs token savings: \"[TIME-BASED MC] gap Xmin > Ymin, cleared Z tool results (~N tokens), kept last M\"\n- Triggers automatic compaction marker after clearing\n\n**Evidence**\n\nTime-based micro-compaction (gated by `tengu_slate_heron`, search for `\"[TIME-BASED MC]\"` and `\"[Old tool result content cleared]\"`)"}