Follow Discord
Sweep 23 Oct 2026 · 21:48Z Build v2.1.310 529 read Stable v2.1.308 Latest v2.1.310 Next v2.1.310 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.310 ·

Tighter checks on Bash commands with variable prefixes or wildcards

Claude Code rejects NAME=value command prefixes whose value looks like a path, and refuses prefix matches for Bash commands with wildcards, ~, = or !

You'll notice Improvements
JSON All of v2.1.310
You'll noticeTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
PermissionsArea: what it touches
ImprovementsKind: in v2.1.310,
ImprovementsSection of the release
What

A shell command can begin with one or more variable settings, such as NAME=value, before the command itself. Claude Code now reads these through one shared step instead of each feature using its own. Before, only the variable's name was checked. Now the value is checked too, and the prefix is rejected when the value looks like a file path:

  • the value contains ..
  • the value starts with /
  • the value starts with a drive letter such as C:

Separately, a check decides whether a command matches an allowed command prefix and can run without asking. That check now treats Bash and PowerShell differently. For Bash it refuses commands that contain:

  • wildcard characters
  • ~
  • a leading =
  • a leading !
Why

Fewer commands can match a permission prefix or be suggested as a new permission rule. A permission rule is a setting that says which commands may run without asking. Some commands that matched before may now ask for approval.

See this entry in the whole of v2.1.310 →

Feedback