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
- Daily RoundupVercel CLI and v0 updates, Google AI tools, Apple iPhone AI features (agent memory and integrations)
Vercel expanded agent tooling and deployment security while Google and Apple rolled out practical AI features for everyday tasks and new hardware.
- Daily RoundupMercury 2.5 and Nex-N2.5 on OpenRouter, Meta Muse agent, and Vercel speed gains for agents
Model releases and agent tools expand options for builders while enterprise deals and routing improvements reduce friction for teams shipping AI products today.
- Daily RoundupHugging Face model wave, Fal H3 Turbo video, and Product Hunt AI agents
Hugging Face saw five models trend including text, image, video and speech tools while Fal released an upgraded text-to-video model and Product Hunt featured new agent-style apps for note-taking and local coding.