Feature Request: Add trustedDirectories setting to auto-trust directories at startup

Resolved 💬 3 comments Opened Nov 30, 2025 by shanmoon Closed Dec 4, 2025

Description

When starting a Claude Code session, users are prompted to confirm trust for the working directory. This prompt appears every time for directories that haven't been explicitly trusted, even for common locations like the user's home directory.

Requested Feature

Add a trustedDirectories configuration option in ~/.claude/settings.json (or settings.local.json) that allows users to pre-configure directories they trust, bypassing the interactive trust prompt at startup.

Example configuration:

{
  "trustedDirectories": [
    "/Users/username",
    "/Users/username/projects",
    "/Volumes/Storage/code"
  ]
}

Use Case

  • Users who always work from their home directory or specific project directories shouldn't need to confirm trust every session
  • Automation scenarios where Claude instances are spawned programmatically
  • Power users who understand the security implications and want a smoother startup experience

Current Workarounds

  • Using -p flag for non-interactive mode (but this changes the interaction model)
  • Manually confirming trust each session

Related

This appears related to issue #9113 regarding workspace trust dialogs not respecting pre-configured settings.

---
Submitted via Claude Code on behalf of a user.

View original on GitHub ↗

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