# Claude Code 2.1.325 asks before read-only git commands in untrusted repositories

> In repositories that are not the project's or that the user has not trusted, read-only git commands now ask first, and --add-dir is used to allow them without prompts.

- Status: official (From the company, authors or authority themselves, with a link to their own page.)
- Topic: Products
- Published: 2026-11-13T00:00:00+00:00
- Updated: 2026-11-13T21:09:49.739123+00:00
- Web page: https://ai-news.ikangai.com/story/claude-code-2-1-325-asks-before-read-only-git-commands-in-untrusted-repositories/
- Seen in: Claude Code changelog
- Change: breaking_change (Breaking change)
- Takes effect: 2026-11-13
- Applies to: Claude Code 2.1.325

## What changed

Read-only git commands now ask for permission first in repositories outside the project or not trusted by the user, instead of running without prompts.

Claude Code 2.1.325 changes how the tool handles read-only git commands in repositories that are not the project's own or that the user has not trusted: those commands now ask for permission first. The changelog entry, dated November 13, 2026, says the way to run them without prompts is to name the repository with the --add-dir flag rather than with the additionalDirectories setting.

The change is a permission change, not a change to git itself. Under 2.1.325, read-only git commands in a repository outside the project, or one the user has not marked as trusted, now ask for permission first. The entry does not say what happens to a repository the user has trusted but that sits outside the launch folder, beyond the fact that trust is the condition that avoids the prompt.

The changelog gives no reason for the split between --add-dir and the additionalDirectories setting. It states only the instruction: name the repository with --add-dir, not the additionalDirectories setting, to run those commands without prompts.

The same release tightens worktree isolation. An isolated worktree session or agent is now refused git bisect run, git maintenance register or start, and scalar's set-up commands, and the session is told what still works. The changelog gives no reason for picking these commands, and it does not say how many sessions or agents were affected before the change.

Several other entries in the release also touch how Claude Code treats repository paths and links. Writes to .claude settings, skills, agents, commands and hooks are now refused in added directories, as they already are in the launch folder. A WorktreeCreate hook path that goes through a symlink inside the project is refused. Plugin loading skips some unsafe paths and links, and claude plugin validate now reports them. Self-hosted runners refuse sessions whose folder or repository path is a symbolic link, except for a checkout hook's checkout. The changelog also lists a change to Esc on a background MCP task, which now answers later and sends nothing to the server. A change makes "Always allow" in Desktop, IDE and SDK hosts offer a rule only when saving it would allow that command again. That second change means a scheduled task that relied on an earlier rule can now wait for you.

## Why it matters

Developers who work across several repositories will see more permission prompts, and the way they grant trusted access to a folder changes.

## What you can do

Move trusted repositories that need unprompted git access to --add-dir before upgrading to 2.1.325.

## Original source

- [Claude Code changelog - Claude Code Docs](https://code.claude.com/docs/en/changelog)
- [claude-code/CHANGELOG.md at main · anthropics/claude-code · GitHub](https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md)

---

AI wrote this summary from the sources listed, and nobody reviewed it individually before publication. Check the original source before you rely on it.

Cite as: IKANGAI AI News, "Claude Code 2.1.325 asks before read-only git commands in untrusted repositories", 2026-11-13, https://ai-news.ikangai.com/story/claude-code-2-1-325-asks-before-read-only-git-commands-in-untrusted-repositories/
