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

Run tool calls from code with Code Mode changedcode-mode

Nearest release: v2.1.335, published 6 hours 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 3 Dec 2026 04:04 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 3 Dec 2026 04:07 UTC.

Upstream edited
Recorded here
Lines+8added
Lines−0removed
From line 202 where the diff opens
First seen 13 Nov 2026 this site's first read of the page
Recorded edits19to this page, all time

#### Check file searches from code

The whole hunk

from line 202, old and new numbered
/
lines
from line 202
202202>
203203> Bash rules match command text, so Claude can run a denied command [in a form the rule doesn't match](https://code.claude.com/docs/en/permissions.md#bash-rule-limits), with or without Code Mode. For limits that don't depend on command text, see [sandboxing](https://code.claude.com/docs/en/sandboxing.md).
204204 
205#### Check file searches from code
206 
207If you check file searches with `Bash` rules or hooks, cover the [`Grep` and `Glob` tools](https://code.claude.com/docs/en/tools-reference#glob-tool-behavior) too, because by default code can search with them without running a `Bash` command. Add the same kind of check that you use for `Bash`:
208 
209* **Hook**: use the matcher `Grep|Glob` and read [those tools' input](https://code.claude.com/docs/en/hooks.md#pretooluse-input), such as `pattern` and the optional `path`
210* **Rules for the whole tool**: add `Grep` and `Glob` to your `ask` rules to require approval, or to your `deny` rules to remove both tools
211* **Rule for a path**: in place of a [`Grep` or `Glob` path rule](https://code.claude.com/docs/en/permissions#path-rules-that-never-match), write a `Read` deny rule such as `Read(./secrets/**)`, and check [what `Read` rules cover](https://code.claude.com/docs/en/permissions#what-read-and-edit-rules-cover)
212 
205213#### Require approval for a command
206214 
207215To see a prompt for a specific command in auto or `bypassPermissions` mode, add an `ask` rule for it. You're prompted for the [forms of the command that the rule matches](https://code.claude.com/docs/en/permissions.md#bash-rule-limits). To be prompted for commands that start with `git push`, save this rule in `~/.claude/settings.json`:
Feedback