{"version":"2.1.314","anchor":"stats-edit-line-counting-uses-a-line-multiset-diff-in-one-mo","canonical_anchor":"stats-edit-line-counting-uses-a-line-multiset-diff-in-one-mo","heading":"Session stats can count changed lines differently in one mode","tier":"internal","area":"Elsewhere","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.314\/e\/stats-edit-line-counting-uses-a-line-multiset-diff-in-one-mo","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.314","markdown":"### Session stats can count changed lines differently in one mode\n\nIn one mode, session stats now count added and removed lines by comparing line sets, and skip counting shell commands\n\n**Unclear.** Which mode switches on the new counting is not stated.\n\n**What**\n\nClaude Code's session statistics include how many lines were added and removed. In one mode, Claude Code now works this out by comparing which lines exist before and after an edit, without regard to their order. In that mode it also skips counting shell commands. Outside that mode it counts as before.\n\n**Why**\n\nThe lines-changed numbers in your stats may differ from what you saw before.\n\n- Area: Elsewhere\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}