| ▲ | simonw 3 hours ago | ||||||||||||||||
That's a really tough question. I always worry about credentials that are tucked away in ~/.folders in my home directory like in ~/.aws - but you HAVE to provide access to some of those like ~/.claude because otherwise Claude Code won't work. That's why rather than a default set I'm interested in an option where I get to approve things on first run - maybe something like this:
The above command would create an empty claude-profile.txt file and then give me a bunch of interactive prompts every time Claude tried to access a file, maybe something like:
You would then clatter through a bunch of those the first time you run Claude and your decisions would be written to claude-profile.txt - then once that file exists you can start Claude in the future like this:
(This is literally the first design I came up with after 30s of thought, I'm certain you could do much better.) | |||||||||||||||||
| ▲ | afshinmeh 3 hours ago | parent [-] | ||||||||||||||||
Fantastic! I like that idea. I'm also exploring an option to define profiles, but also have predefines profiles that ships with the binary (e.g. Claude, then block all `.env` reads, etc.) | |||||||||||||||||
| |||||||||||||||||