Explore the .claude directory changedclaude-directory
Nearest release: v2.1.335, published under an hour before upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Upstream edited this page at 2 Dec 2026 22:49 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 2 Dec 2026 23:07 UTC.
Upstream edited
Recorded here
Lines+2added
Lines−2removed
From line
348
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits54to this page, all time
The whole hunk
from line 348, old and new numbered
/
from line 348
348348
349349The scratchpad is a per-session directory that Claude Code gives Claude for temporary files: intermediate results, helper scripts, and drafts that don't belong in your project. When Claude says it saved something "to the scratchpad", the file is there. Claude uses it instead of `/tmp`, and can create, edit, and read files in it without a permission prompt.
350350
351The scratchpad lives under Claude Code's temp directory rather than `~/.claude`. Find the current session's path for your platform:
351The scratchpad lives under Claude Code's temp directory rather than `~/.claude`. These are the paths on each platform:
352352
353353* **macOS**: `/private/tmp/claude-<uid>/<project>/<session-id>/scratchpad/`
354354* **Linux**: `/tmp/claude-<uid>/<project>/<session-id>/scratchpad/`, or the same shape under `$TMPDIR` when your system sets one
from line 387
387387
388388### Plaintext storage
389389
390Transcripts and history are not encrypted at rest. OS file permissions are the only protection. If a tool reads a `.env` file or a command prints a credential, that value is written to `projects/<project>/<session>.jsonl`. To reduce exposure:
390Transcripts and history are not encrypted at rest. OS file permissions are the only protection. If a tool reads a `.env` file or a command prints a credential, that value is written to `projects/<project>/<session>.jsonl`. You can reduce exposure in the following ways:
391391
392392* Lower `cleanupPeriodDays` to shorten how long Claude Code keeps transcripts
393393* Set [`desktopSessionCleanupPeriodDays`](https://code.claude.com/docs/en/settings-reference#desktopsessioncleanupperioddays) to give Claude Desktop and Cowork transcripts an age limit too
No line in this hunk matches that.