/superlocalmemory-codex:slm-scopefrom SuperLocalMemory (Codex)
Controls memory visibility across SuperLocalMemory profiles — personal (private), shared (selected profiles), or global (all profiles on this machine). Only activates scope when the user explicitly requests cross-profile sharing.
Ships in SuperLocalMemory (Codex). Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
SuperLocalMemory is profile-isolated by default. Every profile is a fully independent memory namespace. The scope model adds controlled, opt-in sharing between profiles on the same machine — it is never active unless you explicitly set it.
| Scope | Visibility | When to use |
|---|---|---|
personal | Active profile only | Default — all facts. Never set explicitly. |
shared | Active profile + shared_with profiles | Team handoffs, shared project context |
global | Every profile on this machine | Machine-wide conventions, org-wide rules |
The default is always personal. A fact stored without a scope argument
is private to the profile that stored it. Recall without scope flags returns only
personal facts. This is identical to single-profile SLM.
Never set scope="shared" or scope="global" (or the recall equivalents
include_shared, include_global) unless the user explicitly asks you to share
or read across profiles. This is a hard rule — scope expansion is an action with
team-wide or machine-wide impact, and it must always be user-initiated.
remember(
content="API gateway rate limit is 1000 req/min per client",
tags="api,limits,ops",
project="platform",
importance=8,
session_id="<sid>",
scope="shared",
shared_with="devops-profile,backend-profile",
)
shared_with is a comma-separated list of profile IDs that should be able to
recall this fact. Use slm status to see the current profile name — that is the
profile_id to supply.
remember(
content="All services must enforce TLS 1.3 minimum",
tags="security,tls,global",
project="infra",
importance=9,
session_id="<sid>",
scope="global",
)
scope="global" makes the fact visible to every profile on this machine. Use
this only for machine-wide conventions (security rules, org-wide constraints).
By default, recall returns only the active profile's personal facts. To surface
shared and global facts, pass the opt-in flags:
recall(
query="rate limiting rules",
limit=20,
include_global=True, # include global-scope facts
include_shared=True, # include facts shared with this profile
session_id="<sid>",
)
You can opt in to either or both flags independently. Only the active profile's permitted shared facts are returned — you cannot read another profile's personal facts.
# Recall with global facts included
slm recall "rate limiting rules" --include-global
# Recall with shared facts included
slm recall "rate limiting rules" --include-shared
# Both
slm recall "rate limiting rules" --include-global --include-shared
# Store a global fact
slm remember "TLS 1.3 minimum" --scope global
# Store a shared fact (shared-with is a comma-separated list of profile IDs)
slm remember "API rate limit 1000/min" --scope shared --shared-with devops,backend
CLI flags: --include-global / --no-global, --include-shared / --no-shared
on slm recall; --scope personal|shared|global and --shared-with <profile-ids>
on slm remember. Leaving a flag unset uses the configured default.
The defaults live in the scope section of the mode config files (mode_a.json,
mode_b.json, mode_c.json, and the active config.json). To make a profile's
recalls always include global facts without passing a flag each time:
{
"scope": {
"default_scope": "personal",
"recall_include_global": true,
"recall_include_shared": false
}
}
Omit the section, or any field, to keep the safe defaults (personal, false,
false). An invalid default_scope is ignored with a warning. Changing the
default requires editing the config directly — this is an admin-level operation,
and an agent must not do it on its own.
In a workspace with roles (company mode, see slm-governance):
scope says.shared and global facts: both hold the
share permission. Deleting needs the delete permission, which only admins hold.include_global=True / include_shared=True on recall are quietly
turned off while the recall policy forbids cross-profile reads, which is the
default in company mode. If an opt-in recall returns only personal facts in a
governed workspace, that is the policy working, not a bug; do not try to work
around it.A scope="global" fact deleted by one profile is deleted for all profiles. A
scope="shared" fact is deleted from all profiles that had access to it.
Use slm forget "<query>" --dry-run before any deletion involving shared facts
to review the impact. See slm-remember for the full deletion discipline.
slm-remember — full fact storage reference including scope parametersslm-recall — full retrieval reference including include_global/include_sharedslm-profile — what a profile is and how to switch between themslm-governance — enterprise role restrictions on scopeSome hosts block local MCP servers by policy, and many agents, bots and agent frameworks never had them. SuperLocalMemory works the same from any shell, so this skill still applies:
slm status --json first. Never report "SLM unavailable" only because an MCP tool is missing.slm tool <name> --json '{...}', with the same arguments, checks and results: a successful call prints exactly what the MCP tool returns, and a failed one prints "success": false with error.code and error.message. slm tool describe <name> shows one tool's arguments; slm tool list lists the tools available right now (pictures and documents appear once they are turned on, slm media status).slm command answers in one JSON document on stdout: add --json after it, put slm --json before it, or set SLM_JSON=1 in the environment. slm mcp, slm session and slm session-context ignore SLM_JSON so servers and hooks keep working; give them --json directly. Read success first; a failure carries error.code and error.message. Exit code 0 means success, 1 that the command ran and failed (error.exit_code keeps a more specific code), 2 that it could not run, 130 that it was interrupted. Under JSON a command never asks a question: one that needs a confirmation answers confirmation_required and names the flag. slm gdpr export streams its document over several lines.slm recall "<question>" --json and slm remember "<text>" --json. slm help --json lists every command with its options.The slm-cli skill has the full command reference.
SuperLocalMemory v4.2.34 · Qualixar · AGPL-3.0-or-later
What SKILL.md sets; muted values are Claude Code's defaults
- "Share this memory with the team profile" - "Store this globally so all my agents can see it" - "Recall anything shared from the work profile" - "Can other agents on this machine see my memories?" - User explicitly asks to cross-profile share a fact or see shared facts - Enterprise setup where multiple profiles collaborate
Three short reads, in order
npx claudepluginhub qualixar/superlocalmemory --plugin superlocalmemory-codex17 skills in this plugin
/slm-bot-memoryCross-bot memory on a shared computer (Grok Bot, Cursor plugin, any host where several agents share one machine). Explains agent_id attribution vs. profile/scope access, how to namespace by agent_id + profile + scope, and what must never be written to memory. Read this before the first remember/recall on a new Grok-Bot-style host./slm-cacheKV cache for repeated reads — call slm_cache_get(key) first; on a miss do the expensive operation then slm_cache_set(key, value, ttl_seconds) to store it; on a hit use the returned value directly; always fail-open (hit:false on any error, never raises); saves tokens when the same file, query result, or tool output is read more than once in a session./slm-cliUse SuperLocalMemory from the shell when its MCP tools are not available to you. Every MCP tool runs as `slm tool <name>` with the same arguments, checks and JSON result, and the session protocol (start, recall before answering or searching, cue check before editing, remember decisions, pictures and PDFs, close) has a command for each step. Includes the full tool-to-command table./slm-compressCompress large text, tool output, or transcripts to reduce context-window usage while keeping the full 1M window intact — call slm_compress(content, mode, reversible, ttl_seconds) to shrink content; if the result is lossy a ccr_id is returned so you can call slm_retrieve(ccr_id) later to recover the exact original; always fail-open (ok:false → continue with the original)./slm-getting-started-botFirst-session orientation for SuperLocalMemory on a headless bot host (Grok Bot, or any Cursor-format plugin install with no hooks, no dashboard, and no interactive setup wizard). What is different here vs. Claude Code/Codex, which 21 tools are actually available, and the first three calls to make./slm-governanceGoverned-workspace behavior for SuperLocalMemory. Covers roles (admin/member/viewer) and company mode, who administers a company-mode workspace (a signed-in admin, or `slm team` on the SLM computer), `slm token show` in strict mode, what remote web apps can never see or change, retention and lifecycle settings, the audit trail, GDPR export and erasure, and how agents must behave when operating under workspace governance. The audit and retention tools need the power MCP profile. Agents must never bypass governance controls.2 plugins in one repository ship this exact skill · first indexed Nov 23, 2026
Other plugins' skills for the same job