[FEATURE REQUEST] globs for claude code workspace config

Resolved 💬 5 comments Opened Apr 4, 2025 by fkalny-groupon Closed Dec 30, 2025

Problem

I work in git worktrees a lot, which results in me having to re-init all the project-specific mcps in every branch. For example if I init Claude code in project/feature-branch-1, then I check out a new branch at project/feature-branch-2, claude code considers this a brand new project and all the mcps, allowed commands etc. are reset.

Solution

At the moment the claude config json stores the full path of each project: { "/full/path/to/project/feature-branch-1": { ...<config>... } }. It should allow for globs: { "/full/path/to/project/**/*": { ...<config> ... } }. This config would then match all instances of claude launches from within the project dir.

View original on GitHub ↗

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