[Feature] /open command to switch projects mid-session

Resolved 💬 3 comments Opened Mar 10, 2026 by 2sem Closed Mar 13, 2026

Problem

Switching projects requires fully exiting Claude and relaunching in a new
directory. This breaks flow when working across multiple repos.

Proposed Feature: /open slash command

/open anotherproject

Claude already tracks directories where it has been launched. /open should:

  1. Fuzzy-match the input against recently opened project directories
  2. Clear the current session context
  3. Relaunch in the matched directory — no exit required

Example UX

/open tagforge    → switches to ~/Projects/leesam/tagforge/src/tagforge
/open backend      → switches to ~/Projects/myapp/backend
/open              → shows a picker of recent projects

Fallback Behavior

If Claude cannot find a match in recent session history:

  1. Search parent directories of the current project for a folder matching the name
  2. If still not found, ask the user: "I couldn't find 'anotherproject'. Please provide the path or pick from recent projects."

Why It Matters

Developers juggling multiple repos want to context-switch the way editors do
(VS Code's "Open Recent") — fast, fuzzy, no terminal gymnastics.

Notes

  • Behavior equivalent to: exit → cd <matched-path> → claude
  • Claude already has the session history to power the directory matching
  • No new file tracking needed

wrote by claude-code

View original on GitHub ↗

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