Claude Code adds /cd command to change directories mid-session
TL;DR
Claude Code introduces the /cd command to move a session to a new working directory without breaking the prompt cache.
What changed
Claude Code now includes the /cd command for changing directories. Vibe Builders and Developers can shift sessions to new folders while keeping the prompt cache.
Why it matters
This update helps Developers maintain context when switching between multiple code directories in a single session. It offers an advantage over tools like Cursor that often require full restarts for similar changes.
What to watch for
Compare the behavior against alternatives such as restarting sessions in VS Code with AI extensions. Verify the feature by running /cd in Claude Code and confirming the cache remains active afterward.
Who this matters for
- Vibe Builders: Use /cd to pivot between asset folders without losing the context of your current design session.
- Developers: Change working directories mid-session to manage monorepos while keeping your prompt cache intact.
Harsh’s take
The addition of /cd to Claude Code is a pragmatic win for terminal-based workflows. Prompt caching is expensive and slow to rebuild, so breaking it just to move from a frontend to a backend folder was a major friction point. This update brings the CLI tool closer to the fluid experience found in IDEs like Cursor.
Operators should stop treating AI CLI tools as static script runners. This feature signals a shift toward persistent, long-running stateful sessions. If you are still restarting your environment for every sub-task, you are burning tokens and time.
Use this to maintain a high-context thread across your entire project structure.
by Harsh Desai
About Claude Code
View the full Claude Code page →All Claude Code updatesGo deeper
More AI news
- Weekly DigestHermes Agent 80% latency cuts and 51 updates, OpenClaw Mac app, and durable export tools
Hermes Agent rolled out dozens of stability, speed, and integration fixes across three days while OpenClaw added a Mac app and remote server catalog.
- Daily RoundupMage-Flow-Edit-Turbo trends, Stable Audio Open ships, plus inbox cleanup tools
Microsoft and Owensong models hit Hugging Face trends while Replicate adds audio generation and PureBox.ai targets Gmail cleanup amid ongoing global model discussions.
- Daily RoundupFara1.5-27B trends on Hugging Face, OpenComputer and ADE launch, plus agent ownership advice
Microsoft’s image-text model rises on Hugging Face while new agent deployment and coding sync tools appear on Product Hunt, with fresh Replicate and governance notes rounding out the day.