con un clic
switch
Switch Claude Code to a different project folder with full context reload
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Switch Claude Code to a different project folder with full context reload
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Search episodic memory - sessions, progressions, and documents across all projects
Quick reference card for all Project Intelligence commands
Track evolving understanding of a topic through a sequence of documents
Save the current conversation insight as a reusable skill in the knowledge repo
Discover all installed plugins, skills, and commands available in this environment
Track and search what you (or others) have done — GitHub activity, issues, PRs, commits
| name | switch |
| description | Switch Claude Code to a different project folder with full context reload |
| user_invocable | true |
Switch to a different project folder. Claude exits and restarts in the target folder with that project's full context (progressions, sessions, preferences) loaded automatically.
/switch <project-name>
When the user invokes /switch:
${CLAUDE_PLUGIN_ROOT:-~/.claude/project-intelligence}/bin/pi-switch "$ARGUMENTS"
This writes the target folder to ~/.claude/.switch-target.
Tell them: "Switching to [project]. Exiting now — Claude will restart in the new folder."
cc function) will detect the switch target, cd to the folder, and relaunch Claude automatically.IMPORTANT: After running pi-switch, you MUST exit. The switch only works if Claude exits so the shell wrapper can take over.
The user must use the cc shell wrapper function instead of calling claude directly. If not installed, tell them to add this to their ~/.zshrc:
# Claude Code with project switching support
cc() {
while true; do
claude "$@"
if [[ -f ~/.claude/.switch-target ]]; then
local target
target=$(cat ~/.claude/.switch-target)
rm -f ~/.claude/.switch-target
cd "$target" || break
set --
else
break
fi
done
}
Then restart their shell: source ~/.zshrc
/switch cloudfix — Switch to the cloudfix project/switch pi-dev — Switch back to pi-dev/switch ~/cc/new-project — Switch to an absolute path