Automatic Permissions Configuration for Claude Code
Overview
The Sasha Studio application now includes comprehensive default permissions for Claude Code CLI, allowing it to work smoothly without constant permission prompts while maintaining safety by blocking dangerous operations.
Default Configuration
Skip Permissions Mode
By default, the system now enables skipPermissions: true, which automatically approves tool usage without prompting. This is equivalent to using the --dangerously-skip-permissions flag in Claude Code CLI.
Default Allowed Tools
The system comes pre-configured with a comprehensive list of commonly used safe tools:
File Operations
Read- Read any fileWrite- Write filesEdit- Edit existing filesMultiEdit- Multiple edits to same fileNotebookEdit- Edit Jupyter notebooks
Search & Navigation
Grep- Search in filesGlob- Find files by patternLS- List directory contents
Version Control
Bash(git status:*)- Check git statusBash(git diff:*)- View diffsBash(git log:*)- View historyBash(git add:*)- Stage filesBash(git commit:*)- Create commitsBash(git branch:*)- Manage branchesBash(git checkout:*)- Switch branchesBash(git push:*)- Push changesBash(git pull:*)- Pull changesBash(git remote:*)- Manage remotesBash(git init:*)- Initialize repositoriesBash(git reset:*)- Reset changes
Development Tools
Bash(npm install:*)- Install dependenciesBash(npm run:*)- Run npm scriptsBash(npm start:*)- Start applicationsBash(npm ls:*)- List packagesBash(npm view:*)- View package infoBash(npx:*)- Execute npm packagesBash(node:*)- Run Node.js scriptsBash(python:*)- Run Python scriptsBash(docker:*)- Docker operationsBash(docker-compose:*)- Docker Compose operations
File Management
Bash(ls:*)- List filesBash(cp:*)- Copy filesBash(mv:*)- Move/rename filesBash(mkdir:*)- Create directoriesBash(touch:*)- Create empty filesBash(cat:*)- View file contentsBash(echo:*)- Output textBash(sed:*)- Stream editingBash(grep:*)- Search textBash(find:*)- Find filesBash(tree:*)- Directory treeBash(curl:*)- HTTP requestsBash(chmod:*)- Change permissionsBash(open:*)- Open files/URLsBash(ps:*)- Process statusBash(kill:*)- Kill processesBash(pkill:*)- Kill processes by nameBash(timeout:*)- Run with timeoutBash(time:*)- Time executionBash(bash:*)- Run bash scriptsBash(sh:*)- Run shell scripts
Testing & Build Tools
Bash(npm test:*)- Run testsBash(npm run build:*)- Build projectsBash(npm run dev:*)- Development modeBash(npm run server:*)- Start serversBash(npx eslint:*)- LintingBash(npx vite:*)- Vite operations
Web Operations
WebFetch- Fetch web contentWebSearch- Search the web
Claude Tools
TodoWrite- Manage task listsTodoRead- Read task listsTask- Launch specialized agentsBashOutput- Read bash outputKillBash- Kill background processesExitPlanMode- Exit planning mode
Default Disallowed Tools
The following potentially dangerous operations are blocked by default:
Bash(rm -rf:*)- Recursive force deleteBash(rm -r:*)- Recursive deleteBash(sudo rm:*)- Sudo deleteBash(dd:*)- Disk operationsBash(format:*)- Format operationsBash(mkfs:*)- Make filesystemBash(> /dev/*)- Device writesBash(sudo:*)- Sudo commandsBash(su:*)- Switch userBash(passwd:*)- Password changesBash(useradd:*)- Add usersBash(userdel:*)- Delete usersBash(groupadd:*)- Add groupsBash(chown:*)- Change ownershipBash(systemctl:*)- System controlBash(service:*)- Service controlBash(reboot:*)- System rebootBash(shutdown:*)- System shutdownBash(halt:*)- System haltBash(poweroff:*)- Power off
Using the Settings
Accessing Settings
- Open Sasha Studio in your browser
- Click the Settings icon in the interface
- Navigate to the "Tools & Permissions" tab
Reset to Defaults
If you've modified the settings and want to return to the recommended configuration:
- Open the Settings panel
- Click the "Reset to Defaults" button
- This will restore all the default allowed and disallowed tools
- Skip permissions will be re-enabled
Customizing Permissions
You can still customize the permissions if needed:
- Add allowed tools: Enter tool patterns in the "Allowed Tools" section
- Add disallowed tools: Enter dangerous patterns in the "Disallowed Tools" section
- Toggle skip permissions: Uncheck "Skip permission prompts" if you want to be prompted
Tool Pattern Format
Tool patterns follow this format:
ToolName- Allow/block a specific tool entirelyBash(command:*)- Allow/block all variations of a bash commandBash(command arg:*)- Allow/block specific command with arguments
Security Considerations
Why Skip Permissions is Enabled by Default
- Productivity: Eliminates constant interruptions for routine operations
- Safety: Dangerous operations are still blocked via the disallowed list
- Transparency: All allowed and disallowed tools are clearly visible
Best Practices
- Review the defaults: Ensure they match your security requirements
- Add project-specific blocks: Add any project-specific dangerous commands
- Monitor usage: Review Claude's tool usage in the conversation history
- Update as needed: Add new patterns as you discover them
When to Disable Skip Permissions
Consider disabling automatic permissions when:
- Working with sensitive data
- Testing new Claude Code features
- Training new team members
- Requiring audit trail for all operations
Troubleshooting
Tools Not Working
If Claude Code can't use expected tools:
- Check the allowed tools list includes the pattern
- Ensure it's not in the disallowed list
- Verify the pattern syntax is correct
Too Many Permissions
If Claude Code has too much access:
- Add specific patterns to the disallowed list
- Consider disabling skip permissions temporarily
- Use more specific patterns instead of wildcards
Settings Not Persisting
Settings are saved to browser localStorage. If not persisting:
- Check browser privacy settings
- Ensure localStorage is enabled
- Try a different browser
Command Line Equivalent
The current configuration is equivalent to running Claude Code with:
claude --dangerously-skip-permissions \
--allow "Read" --allow "Write" --allow "Edit" \
--allow "Bash(git:*)" --allow "Bash(npm:*)" \
--deny "Bash(rm -rf:*)" --deny "Bash(sudo:*)" \
# ... (all other patterns)
Migration from Manual Configuration
If you previously configured permissions manually:
- Your existing settings will be preserved
- Use "Reset to Defaults" to adopt the new recommended configuration
- Review and merge any custom patterns you had
Support
For issues or questions about permissions configuration:
- Check the Claude Code documentation
- Review the security guidelines
- Contact support with specific tool pattern questions