Unclear It is not clear what turns the in-memory option on.
What
When Claude Code writes a file in pieces (a chunked or archive write, used for things like artifacts and file transfers), the data is first staged, meaning held somewhere temporary before being put in its final place. Before, staging always went to disk through a directory handle. Now:
- The write and abandon requests accept a new
in_memoryoption. - A mode passed as
"if_possible"lets the write be staged in memory, with a fallback to the disk when it cannot (for example, when the write has already begun on the disk). - The write's output now includes an
in_memoryfield saying how it was staged. - The final placing step now tracks the path of a kept file and checks
willWritebefore writing.
Why
This changes where files are held while they are being written. In practice, some writes can now skip a temporary copy on disk, and the reported in_memory field shows which path a given write took.
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
It is not clear what turns the in-memory option on.