Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.334 ·

Compaction now names files by path and tracks them afterwards

After compaction Claude Code can point to files by path instead of re-reading them, and tracks those files to avoid stale-edit errors

Group of 4 You'll notice Improvements
JSON All of v2.1.334
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
CompactionArea: what it touches
ImprovementsKind: in v2.1.334,
ImprovementsSection of the release

What

Compaction is when Claude Code summarises a long conversation to free up room, for example with /compact. Claude Code has changed what it does with files the conversation had open:

  • When a check is on, compaction now refers to files by path only (pathOnly, namesFile) instead of re-reading them up to a token limit and attaching their content. Files that were already named are named again, and large files are marked as content not in the model's context (contentNotInModelContext).
  • The record of which files Claude has read now keeps a list of files named by compaction (namedByCompactionPathList, namedByCompaction) and a set of files to name again (nameAgain, takeFilesToNameAgain). These survive a clear of that record when other entries are kept, and are carried over when it is copied. Before, only files named elsewhere were carried over.
  • Reads made before compaction can be kept for comparison only (readsBeforeCompactionToCompareOnly). Before, there was a single list of reads from before compaction.
  • The check that stops Claude writing to a file it has not fully read now takes compaction-named files into account through mayWriteWithoutFullRead.

Why

After compaction, the model may see a file's path instead of its content, so it reads less back in. Claude may also hit fewer spurious "file changed" errors, and may not need a full re-read before editing a file the summary names.

See this entry in the whole of v2.1.334 →

Feedback