Follow Discord
Sweep 23 Nov 2026 · 19:13Z Build v2.1.331 548 read Stable v2.1.323 Latest v2.1.330 Next v2.1.331 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.331 ·

Locked-down git environment for an unattended watch

New code runs git and gh for an unattended watch in a hardened environment that refuses risky repository settings and unsafe PATH entries

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

Unclear It is not clear which feature runs these unattended watches or whether it is available to readers yet.

What

New code prepares a locked-down environment for running git and gh (GitHub's command-line tool) during what its messages call "an unattended watch", meaning a run with no person present. It:

  • Refuses repository-local git settings such as aliases, hooks, includeIf and include.path, with messages like "this repository's own git settings include another file (include.path)"
  • Checks PATH, the list of folders searched for programs, and refuses entries that can be written to, including folders inside the checkout or the temp folder
  • Forces GIT_ALLOW_PROTOCOL, where earlier Claude Code only removed it from the environment it passes to git
  • Clears environment variables that carry credentials
  • Reads tokens such as GITLAB_TOKEN and AWS_SECRET_ACCESS_KEY, which the finding took to be for hiding them from output

One of the path checks is chosen by the switch bot_protected_tengu_amber_marten, called with {safe:!0}. Nothing has been read about tengu_amber_marten, and no code was found that starts the watch.

Why

A repository's own git settings and a tampered PATH can make git run unexpected programs. Refusing them matters most when nobody is watching the run, such as a watcher for pull requests or CI that works on code from others.

How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is not clear which feature runs these unattended watches or whether it is available to readers yet.

See this entry in the whole of v2.1.331 →

Feedback