[BUG] Claude Code writes ~/.config/git/ignore without permission

Resolved 💬 5 comments Opened Feb 20, 2026 by patricklucas Closed Mar 20, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

I was disturbed to find that Claude Code wrote to my user-wide gitignore file without any prompt or request for permissions. Claude Code should _absoutely never_ manipulate the filesystem outside of a project directory or its own config/state directories without user permission.

There was a previous issue but it was completely ignored: #10230

What Should Happen?

Claude Code should not touch the filesystem outside of project directories or its own config/state directories without permission.

Error Messages/Logs

Steps to Reproduce

Use Claude Code.

Claude Model

None

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.49

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

iTerm2

Additional Information

_No response_

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗