{"version":"2.1.335","anchor":"context-usage-reports-lastcompactedat-and-parts","canonical_anchor":"context-usage-reports-lastcompactedat-and-parts","heading":"Context usage reports now say when the context was last compacted","tier":"internal","area":"Context","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335\/e\/context-usage-reports-lastcompactedat-and-parts","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335","markdown":"### Context usage reports now say when the context was last compacted\n\nContext usage reports gain a lastCompactedAt time and can break the context's size down by category\n\n**What**\n\nThe context is the amount of conversation the model can hold at once. Claude Code keeps track of how much of it is in use. Compaction is when Claude Code summarises earlier conversation to free up space. The context usage report now carries:\n\n- `lastCompactedAt`, a field holding the date and time of the last compaction in the standard ISO 8601 format.\n\n- The size of each part of the context, grouped by category, when that breakdown is asked for.\n\nWhen the part sizes have not changed, Claude Code skips writing the same report again.\n\n**Why**\n\nPrograms built on the SDK (the toolkit for building on Claude Code) and remote clients can now show when the context was last compacted.\n\n- Area: Context\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}