slm-cache
KV 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…
Workspace isolation and runtime profile switching for SuperLocalMemory. Each profile is a fully independent memory namespace — separate facts, code graphs, and tool sets. Use switch_profile (MCP, requires code/full/power profile) to change the active workspace without
$ npx -y skills add qualixar/superlocalmemory --skill slm-profile --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/slm-profileContext preview
The summary Claude sees to decide when to auto-load this skill.
Workspace isolation and runtime profile switching for SuperLocalMemory. Each profile is a fully independent memory namespace — separate facts, code graphs, and tool sets. Use switch_profile (MCP, requires code/full/power profile) to change the active workspace without
name: slm-profile description: Workspace isolation and runtime profile switching for SuperLocalMemory. Each profile is a fully independent memory namespace — separate facts, code graphs, and tool sets. Use switch_profile (MCP, requires code/full/power profile) to change the active workspace without restarting. Check the active profile with slm status. Required when working across multiple projects, clients, or tenants. when_to_use: | - "Switch to my work profile" - "Use the code profile for this session" - "What profile am I currently in?" - "I need mesh tools — switch to full profile" - "Load the devops workspace" - Multi-project workflows needing memory isolation - Switching between personal and team workspaces - Enabling additional MCP tools by activating a richer profile allowed-tools: switch_profile, Bash
A profile is a fully isolated memory workspace. Each profile has its own:
Profiles are the right tool when you have genuinely separate contexts: a personal project, a client engagement, a production vs staging environment.
---
| Profile | Tools | When to use | |---------|-------|-------------| | `core` | 18 tools — remember, recall, search, session, optimize | Minimal footprint, no code tools | | `code` | 34 tools — core + portable Brain evidence + code graph + profile switching + bounded loops | Default for IDE/coding agents | | `full` | 50 tools — code + all memory ops + mesh + bounded loops | Multi-session, team workflows | | `power` | 62 tools — full + governance + behavioral tools | Enterprise, admin, audit use cases | | `mesh` | 8 tools — mesh coordination only | Lightweight cross-session signalling |
The profile is set at MCP server startup via `SLM_MCP_PROFILE` in the MCP config. `switch_profile` lets you change it at runtime without a restart.
---
slm status --json
The `profile` field in the output is the currently active profile name.
Or via MCP (works in any profile):
slm status
---
`switch_profile` is available in `code`, `full`, and `power` profiles.
switch_profile( profile: str, # one of: "core", "code", "full", "power", "mesh" )
# You started in code profile but need mesh coordination switch_profile(profile="full") # Now mesh_peers, mesh_send, mesh_inbox, etc. are available mesh_peers()
# Switch from personal to work workspace switch_profile(profile="work-project")
Wait — profile names and workspace names are distinct concepts:
tools are registered.
is used.
`switch_profile` changes the **tool tier** within the current workspace. To switch to a completely different memory database (workspace), you need to change `SLM_DATA_DIR` — this requires restarting the MCP server or using a separately configured MCP server instance.
---
In your `.mcp.json` (Claude Code) or `.codex/config.toml` (Codex):
"env": {
"SLM_MCP_PROFILE": "code",
"SLM_AGENT_ID="antigravity",
"SLM_DATA_DIR": "~/.superlocalmemory"
}Profile aliases from older versions still resolve: `code20` → `code`, `full38` → `full`, `power50` → `power`. Stale configs get a startup warning but continue to work.
---
facts — see `slm-scope`).
active profile's graph store.
clean cache.
---
You can run multiple SLM MCP server instances simultaneously, each pointed at a different `SLM_DATA_DIR`, to serve different workspaces in the same IDE session. Name them differently in your MCP config (e.g. `superlocalmemory-personal` and `superlocalmemory-work`) and route tool calls to the appropriate server.
---
---
*SuperLocalMemory v4.1.17 · Qualixar · AGPL-3.0-or-later*
Open-source governed, local-first memory control plane for AI agents and teams. arXiv:2608.08253
Repo: qualixar/superlocalmemory
KV 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…
Compress large text, tool output, or transcripts to reduce context-window usage while keeping the full 1M window intact — call slm_compress(content, mode,…
Enterprise compliance and governed workspace behavior for SuperLocalMemory. Covers role-based access (admin/member/viewer), retention policies, audit trail,…
Index and query a codebase as a structural graph — build the code graph, trace blast radius of a change, find callers/callees/inheritors, semantic code search…