switch-project

Overrides auto-detected project scope for memory reads and writes in Mem0.

Updated Jun 29, 2026
One-click install
npx skills add https://github.com/nhatnguyen1122/Agent-Memory-Eval --skill switch-project-nhatnguyen1122
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: switch-project
Source: https://github.com/nhatnguyen1122/Agent-Memory-Eval/tree/main/mem0/integrations/mem0-plugin/skills/switch-project
Command: npx skills add https://github.com/nhatnguyen1122/Agent-Memory-Eval --skill switch-project-nhatnguyen1122

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When working across multiple repositories or teams, automatic project detection can scope memories to the wrong project ID, making stored memories invisible or mixing contexts. This Skill lets you manually override the project scope or enable global search across all memories. ## Core Features & Use Cases - Project Scope Override: Map the current directory to a specific project_id so memories are read and written under the correct project. - Global Search Mode: Enable or disable searching across all memories, users, and projects via a settings flag. - Persistent Configuration: Overrides are stored in ~/.mem0/project_map.json and ~/.mem0/settings.json and persist across sessions. - Use Case: You cloned a shared team repo whose auto-detected project ID differs from where the team's memories live. Run the switch-project command with the correct project name to instantly access the team's existing memories. ## Quick Start Ask the assistant to switch this directory's memory scope to a specific project name, or to enable global memory search across all projects.

Frequently Asked Questions about switch-project

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I switch the memory project scope for a directory?

Run the switch-project command with a project name, for example /mem0:switch-project my-project. The mapping between the current directory and the project ID is written to ~/.mem0/project_map.json and persists across sessions.

How do I search memories across all projects and users?

Enable global search with /mem0:switch-project --global. This sets global_search to true in ~/.mem0/settings.json, so searches return all memories across all users and projects. Writes still use the current user_id and app_id.

Does the project override persist after restarting the session?

Yes, the directory-to-project mapping is stored in ~/.mem0/project_map.json on disk, so the override persists across sessions. However, changes to global search require a session restart to take effect.

Why are my memories not showing up after switching projects?

Memories are scoped by user_id and app_id, so a newly switched project may simply have no stored memories yet. The skill verifies the switch by searching existing memories and reports how many were found for the project.

How do I disable global memory search?

Run /mem0:switch-project --no-global to set global_search to false in ~/.mem0/settings.json. Searches then return only memories scoped to the current project, and the change takes effect after restarting the session.