Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.329 ·

Scratchpad folder can be set with an environment variable

Claude Code reads CLAUDE_CODE_SCRATCHPAD_DIR as a scratchpad folder, but only if the path ends in a folder named .artifact-work

Use it now Notable No documentation found New Features
JSON All of v2.1.329
Use it nowTier: how much it should matter to you
5Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
ArtifactsArea: what it touches
New FeaturesKind: in v2.1.329,
What probably matters to youSection of the release

Unclear It is not stated what Claude Code puts in the scratchpad folder or when it uses it.

What

Claude Code now reads an environment variable, CLAUDE_CODE_SCRATCHPAD_DIR. An environment variable is a named value you set in your terminal before starting a program. It names a scratchpad folder, a working area for files tied to artifact work.

Claude Code accepts the value only when all of these are true:

  • The path is absolute, meaning it starts from the root of the drive.
  • The path is already in its simplest form, with no shortcuts such as ...
  • The last folder in the path is named .artifact-work.
  • The path passes some further checks.

If any check fails, Claude Code ignores the variable as if it were not set.

Why

This gives artifact work a scratch location you can choose from the environment. Because a wrong path is silently ignored, make sure the folder you point it at ends in .artifact-work.

Read from
Names in the bundleCLAUDE_CODE_SCRATCHPAD_DIR
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is not stated what Claude Code puts in the scratchpad folder or when it uses it.
The name it cites is new in this buildNew in this build: CLAUDE_CODE_SCRATCHPAD_DIR

See this entry in the whole of v2.1.329 →

Feedback