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

Claude Code v2.1.335 ·

Git commands run by Claude Code now get SHLVL set to 1

Claude Code now sets SHLVL=1 in the environment it gives git commands, next to GIT_EDITOR=true

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

When Claude Code runs git, it adds some environment variables, named values that a program can read when it starts. It now sets SHLVL to 1 alongside GIT_EDITOR=true, which it already set. SHLVL is a variable shells use to count how many shells are nested inside each other.

Why

This is a small change to the environment git runs in. It matters mainly if you have git hooks or scripts that read SHLVL.

See this entry in the whole of v2.1.335 →

Feedback