[FEATURE] /cd slash command for switching project directories within a session

Resolved 💬 3 comments Opened May 7, 2026 by AndreasGrosz Closed May 11, 2026

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

When working across multiple project directories on the same machine, the current workflow requires:

/exit → cd to new directory in shell → claude

This loses session continuity (conversation history, in-flight reasoning),
even though the actual goal is just "now please load the CLAUDE.md
hierarchy and memory scope of a different project".

Workaround today: working with absolute paths from the wrong working
directory, which means memory ends up in the wrong project scope and
project-scoped CLAUDE.md / skills / hooks are not picked up.

Proposed Solution

A built-in /cd <absolute-path> slash command would:

  • re-resolve the CLAUDE.md hierarchy (per-project hierarchical CLAUDE.md

files, as documented for hierarchical project setups)

  • switch the memory scope to the new project's memory directory
  • reload project-scoped skills, hooks, and settings
  • keep the conversation history intact, so context built up so far is

not lost (or at minimum offer a flag to clear or preserve it)

Alternative Solutions

_No response_

Priority

High - Significant impact on productivity

Feature Category

CLI commands and flags

Use Case Example

Use case: a user with many parallel projects (health, finance, multiple
client engagements) sometimes pivots mid-session — e.g. "by the way,
let's quickly check something in project X and come back". Today this
pivot is heavyweight; with /cd it becomes a one-liner.

Additional Context

_No response_

View original on GitHub ↗

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