[Feature Request] ability to change Working Directory mid-session
Resolved 💬 12 comments Opened Jun 5, 2025 by KevinWang15 Closed Jul 12, 2025
Hi, it would be very useful if we could change the working directory mid-session.
When I use claude code, I usually need to work across multiple repos, and those repos are interconnected closely so sharing the same context helps.
For example, I may ask it to do some code change in repo A (which is a library), then I want it to be able to cd to repo B (which is an application) to update the code to use the new feature in repo A.
This is impossible to do now, as we get
Error: ERROR: cd to '...' was blocked. For security, Claude Code may only change directories to child directories of the original working directory (...) for this session.
Even if I manually use bash mode and
! cd ...(new directory)
I get
Shell cwd was reset to ...(original working directory)
So it would be great if we can explicitly change the working directory.
Thanks.
This issue has 12 comments on GitHub. Read the full discussion on GitHub ↗