Feature request: /change-directory command to switch working directory mid-session

Resolved 💬 3 comments Opened Mar 24, 2026 by Josh-Heaps Closed Mar 24, 2026

Summary

Add a /change-directory (or /cd) command that switches Claude Code's active working directory mid-session, fully reinitializing context for the new location.

Problem

Currently, if you want to work in a different repo/folder, you need to start a new session (including a new remote session). You can cd in bash, but that doesn't pick up the new folder's CLAUDE.md, git context, or update default paths for tools like Glob/Grep.

Proposed Behavior

  • /change-directory /path/to/other/repo
  • Maintains the current conversation and session (especially important for remote sessions)
  • Loads the target folder's CLAUDE.md project instructions
  • Updates git context (branch, status) to reflect the new repo
  • Updates default working directory for all tools (Glob, Grep, Read, etc.)

Use Case

When working in a remote session, switching between repos is common. Spinning up a new remote session just to make changes in a different folder adds friction. This command would make multi-repo workflows seamless.

🤖 Generated with Claude Code

View original on GitHub ↗

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