Follow Discord
Sweep 22 Sep 2026 · 17:19Z Build v2.1.280 501 read Stable v2.1.267 Latest v2.1.280 Next v2.1.280 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.265 ·

New per-session "scratchpad" directory support

Claude Code now resolves a per-session scratchpad directory and trusts it as a source root for publishing artifacts

TierYou'll noticehow much it should matter to you
Useful1my rating, 1 to 5
Signal1worth watching, 1 to 5
AreaArtifactswhat it touches
KindImprovementsin v2.1.265,
Group of 2 You'll notice

Claude Code now resolves a per-session scratchpad directory and trusts it as a source root for publishing artifacts

What

New helper functions resolve and validate a per-session "scratchpad" directory: they check that it's a real directory (not a symlink), compute its canonical path, detect whether a given path lies inside the scratchpad or the working directory, and detect symlink-redirect situations when resolving a base path.

When verifying the source of a file being published as an Artifact, the list of trusted root locations now also includes this scratchpad directory, in addition to the working directory and any additional working directories.

Why

This gives Claude Code a dedicated, verified scratch location per session, and lets files published from it be treated as trustworthy the same way files from the working directory already are.

Read from
Names in the bundlescratchpad
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Confirmed since Anthropic's documentation has since written up scratchpad, on Claude Code changelog. * Fixed Artifact updates failing with "File not found" after a session resumes on another machine or its scratchpad is cleared: the page's last published version is restored changelog see the edit
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up scratchpad, on Claude Code changelog.

See this entry in the whole of v2.1.265 →

Feedback