mem0-scope
Skill by mem0ai
Views or changes the default memory scope for Mem0 memory tools. It switches between project, session, and global scope, and is meant for users who want to control where their memories are saved and searched.
Install mem0-scope
Built from the published package, never by AI.
git clone --depth 1 https://github.com/mem0ai/mem0 /tmp/mem0 && mkdir -p ~/.claude/skills && cp -r /tmp/mem0/integrations/opencode-plugin/opencode-skills/mem0-scope ~/.claude/skills/mem0-scopeRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/mem0ai/mem0 /tmp/mem0 && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/mem0/integrations/opencode-plugin/opencode-skills/mem0-scope ~/.gemini/antigravity-cli/skills/mem0-scopeAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill shows or changes the default memory scope used by the Mem0 memory tools when no explicit scope is given. The three scopes are project (this repo only), session (this run only, filtered by run_id), and global (across all of the user's projects). The setting is stored as default_scope in ~/.mem0/settings.json, and the plugin reads it on each memory operation, so a change applies immediately in the current session.
The skill is for users who want to decide whether memories stay tied to the current repo, the current conversation, or are shared across all their projects. Changing the default does not stop a single tool call from passing its own scope. Deleting all memories always requires an explicit global scope.
Written from the project's SKILL.md and checked against it.
What it can do
- View current scopeShows the active default scope and which scope options are available.
- Change default scopeSets the default memory scope to project, session, or global.
- Project scopeLimits memories and searches to this repo, filtered by user_id and app_id.
- Session scopeLimits memories and searches to the current run by adding run_id.
- Global scopeApplies memories and searches across all of the user's projects.
- Persistent settingKeeps the default scope in ~/.mem0/settings.json and preserves other settings keys.
What you need
- Mem0 plugin with memory tools
- Write access to ~/.mem0/settings.json
Try asking
- /mem0-scope
- /mem0-scope session
- /mem0-scope global
Good to know
- Changes only the default scope, not an explicit scope passed to a tool call.
- delete_all_memories ignores the default and needs an explicit scope=global for user-wide deletion.
- The global scope is separate from the global_search setting, which is left unchanged.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: integrations/opencode-plugin/opencode-skills/mem0-scope/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md4 KB
Alternatives to mem0-scope
All alternatives →Set up and diagnose a local agentmemory installation. It covers MCP connections, environment variables, ports, auth and feature flags, and is for users getting started or checking a connection.
Analyzes a Karpathy-pattern LLM wiki and builds an interactive knowledge graph with entities, implicit links and topic clusters. Built for people who maintain LLM-generated markdown wikis.
Saves and loads timestamped reports for AI assistants, with keyword routing for fast lookup. It also runs an Actionability Gate that checks report links before delivery. Intended for morning briefings, meeting digests and research reports.
Removes a personal fact, preference, relationship detail, topic or past event from Muse's active memory. It also stops existing copies and automations from bringing it back.
Git Context Controller (GCC) is a skill that stores agent memory as a versioned file system under .GCC/. It suits multi-step projects that need milestone tracking, branching and context recovery across sessions.
Guides an evidence-first reading of a book, article, PDF or document set. Built for readers who want claims, evidence and recall rather than a short summary.
Compare with agentmemory-config, understand-knowledge or reports
mem0-scope: common questions
What happens when I switch the memory scope to session?
New memories and searches are limited to the current run, which is the current conversation. The change applies immediately in the current session.
Does changing the default scope delete existing memories?
The source describes only changing the default used for saving and searching. Deleting user-wide memories always requires an explicit scope of global.
Where is the scope setting saved?
It is saved as default_scope in ~/.mem0/settings.json, and the plugin reads it fresh on each memory operation.
How do I install mem0-scope?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is mem0-scope free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is mem0-scope safe to use?
It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to mem0-scope?
Similar skills: agentmemory-config, understand-knowledge, reports, forget.
