Skip to content

Allow customizing the .claude/ directory location #33131

Description

@Dwvil

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

The .claude/ directory is currently hardcoded at the project root. Users cannot configure its location to match their preferred project structure or workflow.

Proposed Solution

Add a configuration option (e.g., in ~/.claude/settings.json or project-level settings.json) to specify a custom path for the .claude/ directory:

{
  "claudeDirectory": "/path/to/custom/.claude"
}

This would affect all contents currently stored under .claude/, including:

  • worktrees/
  • plans/
  • agents/
  • rules/

Alternative Solutions

No response

Priority

Medium - Would be very helpful

Feature Category

Configuration and settings

Use Case Example

  • Some users prefer to keep tool-specific working files (worktrees, plans, agents) in a custom location rather than the project root
  • In monorepo or multi-project setups, users may want to consolidate Claude Code working directories elsewhere
  • Personal preference for organizing dotfiles and tool directories

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions