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
One change · claude-code

Best practices for Claude Code changedbest-practices

Nearest release: v2.1.335, published 9 hours after 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 12:23 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 12:37 UTC.

Upstream edited
Recorded here
Lines+3added
Lines−3removed
From line 337 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits44to this page, all time

The whole hunk

from line 337, old and new numbered
/
lines
from line 337
337337}
338338```
339339 
340With this saved, asking Claude what's in `.env` fails, through the `Read` tool and through `cat .env` alike.
340To check the `deny` rules, ask Claude to open `.env` with the `Read` tool. Claude Code blocks the call.
341341 
342342Rules match tool calls, not intent, so it's worth knowing where the edges are:
343343 
344* The `Read` rule *does* catch `cat .env`, because Claude Code recognizes the [common file-reading commands](https://code.claude.com/docs/en/permissions.md#read-and-edit).
345* It won't catch a script that opens the file.
344* Claude Code also applies the `Read` rule to [some Bash commands](https://code.claude.com/docs/en/permissions.md#what-read-and-edit-rules-cover), such as `cat .env`.
345* The rule doesn't apply to a script that opens the file.
346346* A `WebFetch` deny rule for a domain does nothing about `curl` to that same domain, unless the sandbox is on.
347347 
348348For an OS-level limit on filesystem or network access, turn on the [sandbox](https://code.claude.com/docs/en/sandboxing.md) with `/sandbox` in a session. It confines Claude's shell commands on macOS, Linux, and WSL2 and [picks up your `Read` deny rules and `WebFetch(domain:...)` rules](https://code.claude.com/docs/en/sandboxing#permission-rules) too, so for anything security-related you want both.
Feedback