[Feature Request] Add trusted folder allowlist to skip permission prompts on session start
Resolved 💬 2 comments Opened Jan 24, 2026 by avihut Closed Jan 24, 2026
Bug Description
I want to be able to mark a folder as trusted for Claude Code so it won't prompt me to trust the folder in the beginning of a session. This is similar to the permissions model of direnv, where I can mark a folder as trusted with direnv allow <PATH> before entering it, so it won't prompt me to trust it when I change directory into it. I'd also like to be able to pre-trust a certain list of tools in that case so that I won't need to tell it all over again to trust gh, git, etc.
Environment Info
- Platform: darwin
- Terminal: iTerm.app
- Version: 2.1.19
- Feedback ID: f51dd0f2-ede0-4eb9-8e75-ef1b11ed4800
Errors
[{"error":"Error: ENOENT: no such file or directory, scandir '/Library/Application Support/ClaudeCode/.claude/skills'\n at Module.readdirSync (node:fs:1569:26)\n at file:///Users/avihu/.nvm/versions/node/v24.12.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:9:1766\n at yO (file:///Users/avihu/.nvm/versions/node/v24.12.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:35112)\n at Object.readdirSync (file:///Users/avihu/.nvm/versions/node/v24.12.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:9:1736)\n at _D1 (file:///Users/avihu/.nvm/versions/node/v24.12.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2284:369)\n at file:///Users/avihu/.nvm/versions/node/v24.12.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2284:4279\n at q (file:///Users/avihu/.nvm/versions/node/v24.12.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:6814)\n at CB2 (file:///Users/avihu/.nvm/versions/node/v24.12.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:4920:4362)\n at file:///Users/avihu/.nvm/versions/node/v24.12.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:4920:6961\n at q (file:///Users/avihu/.nvm/versions/node/v24.12.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:6814)","timestamp":"2026-01-24T18:07:33.223Z"}]This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗