{"version":"2.1.280","anchor":"compaction-record-now-carries-explicit-usage-stats","canonical_anchor":"compaction-record-now-carries-explicit-usage-stats","heading":"Compaction records now include usage stats","tier":"notice","area":"Compaction","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.280\/e\/compaction-record-now-carries-explicit-usage-stats","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.280","markdown":"### Compaction records now include usage stats\n\nRecords of context compaction now include token usage details, not just before\/after token counts\n\n**What**\n\nThe record produced after a context compaction (which summarizes older conversation history to save space) now includes a `usage` field, populated from the compaction result's `compactionUsage` (the total usage available), in addition to the existing `tokensBefore`\/`tokensAfter` fields. This field is added conditionally, only when the underlying usage data is available.\n\n**Why**\n\nThis gives more detailed token-usage information alongside each compaction event, useful for understanding the cost and effect of compaction rather than just seeing token counts before and after.\n\n- Area: Compaction\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5"}