Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 89
  • 70k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-scope

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install mem0-scope in Claude Code

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

A

No 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 →

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.

mem0-scope Install

Add to stack

Loading.