# Claude code can edit files outside its directory I opened in. — retained record

> Retained reddit record from reddit:ClaudeCode.

Canonical: https://highsignal.app/data/records/f69a9ff5290a5c57

[← sources](https://highsignal.app/data)


source: [reddit](https://highsignal.app/data/reddit) (reddit:ClaudeCode)  published 2026-10-27 01:42 ingested 2026-10-28 02:38

[original source ↗](https://www.reddit.com/r/ClaudeCode/comments/1xgfq5i/claude_code_can_edit_files_outside_its_directory/)

## retained text



```
I wanted to rice my fedora sway spin, so for the first time I tried Claude code, I went to \~/.config/sway and opened Claude after installing it, not only could I change sway settings but also rofI,waybar which are outside \~/.config/sway then I asked it to change my \~/.bashrc to add a PS1 line and it did but I remember opening inside \~/.config/sway, so I was paranoid and checked I was in “Auto mode” 

  
My question, is it normal ? how you guys trust your Claude agent with user level access to all directories ? are you not scared of it reading your API key or personal notes or you use a different computer for those things ?

  
Please people only using “auto-mode” only reply, I don’t want a “you can just use manual mode“ lecture, I’m pretty sure Auto mode is safer in terms of security but not privacy, I would rather be secure than accepting a dangerous shell command.
```



document fetched 2026-10-28 00:41 · canonical https://reddit.com/r/ClaudeCode/comments/1xgfq5i/claude_code_can_edit_files_outside_its_directory
