/superlocalmemory-codex:slm-governancefrom SuperLocalMemory (Codex)
Documents governed-workspace behavior for SuperLocalMemory: roles (admin/member/viewer), company mode, retention lifecycle, audit trail, GDPR export/erasure, and agent constraints under governance.
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 can run with named users and roles per workspace (company
mode), keeps a compliance audit trail, applies a retention lifecycle, and ships
GDPR export and erasure commands. This skill documents how an agent must behave
in a governed workspace and what the governance tools really do. The MCP audit
and retention tools are in the power tool set, not the default: if they are
missing, tell the user to run slm tools set power and restart this app (see
slm-profile). The slm gdpr and slm team commands work either way.
By default SLM is single-user: whoever runs it is the owner and nothing asks for a login. Company mode adds named users, each with one role per workspace (profile). A role in one workspace grants nothing in another.
| Role | Read | Write | Share (shared/global writes) | Delete | Manage users and settings |
|---|---|---|---|---|---|
viewer | Yes | No | No | No | No |
member | Yes | Yes | Yes | No | No |
admin | Yes | Yes | Yes | Yes | Yes |
Agent behavior by role:
recall, search, fetch, list_recent and other
reads. Never call remember, update_memory, delete_memory or any write
tool. If a write is refused, say so: "This workspace is read-only for my role."scope="shared" and scope="global"
when the user explicitly asks for them. May not delete memories or change
users, roles or settings.No MCP tool or slm command reports your role (only a signed-in dashboard session can ask the daemon, at GET /api/rbac/whoami). Do not guess it: attempt
what the user asked and treat a permission refusal as final. Setting up users,
roles and "Require login" is done in the dashboard under Settings → Access;
there is no slm user or slm role command. The only company-mode commands
are slm team status and slm team policy (next section).
Roles apply to every route that touches data, not only to remember and
recall. That includes pictures, documents, connected folders and
turning features on: reading a file by path, connecting a folder
(slm sources add), turning on pictures and documents and cleaning up with
slm media gc --apply or slm media repair need the owner or an admin. SLM's
own data folder can never be named as a path or a source. With login
required, every page of data (export, compliance records, profiles, learning
and trust details) needs a signed-in user; a test walks every route so a new
one cannot slip through.
While users are enrolled and login is required, the install token or an API key alone no longer administers the workspace: any local program can fetch the install token, so it would let anyone switch company mode off. Administration needs one of these:
admin role on that workspace),
through the dashboard.slm team on the SLM computer, which uses a private capability file that
only the user running SLM can read, so the owner can never be locked out
even if every admin is:slm team status # "Require login: on. Users: N." (read-only, safe)
slm team policy --require-login on # every user signs in
slm team policy --require-login off # the machine owner is the user again
Run them as the same user that runs SLM, with the daemon running. Otherwise the
daemon refuses them. Users, roles and sessions are kept when login is turned
off. Switching the requirement off lowers protection for everyone, so do it
only when the user asks for it in this conversation; slm team status first.
With no users enrolled yet, the machine owner can still create the first
administrator.
slm token showWith SLM_REQUIRE_CREDENTIALS=1, the dashboard is not handed the SLM key; the
person pastes it into a one-time box. slm token show prints that key. It is a
secret that opens write access: do not run it on your own, never paste it into
chat, a memory or a log, and tell the user to run it in their own terminal.
slm rotate-token replaces it (then slm restart).
A connected web app (see slm-web-access) cannot correct, delete, share or
switch profile, cannot read another profile, and cannot change, delete, pin or
replace a memory it is not allowed to see: it is answered as if that memory did
not exist. It never sees memories that came from a connected folder, and sees
a picture or page only when its text held no secret or personal data.
When login is required, every operation on memories needs a signed-in user, including the connection your assistant uses. SLM handles this at the daemon level; agents never put credentials in tool calls. If a tool call returns an authentication or permission error, you must:
In this mode, include_global=True and include_shared=True on recall are
quietly turned off while the recall policy forbids cross-profile reads (the
default), so an opt-in recall can come back with only personal facts. Do not try
to work around it. See slm-scope.
Every memory moves through lifecycle states as it goes unused: active, warm, cold,
archived. Two tools set and inspect that, and a third runs the forgetting cycle.
They need the power tool set.
set_retention_policy(
cold_after_days: int = 30, # days of inactivity before a memory goes cold
archive_after_days: int = 90, # days before it is archived
)
It sets two thresholds and returns them. There is no profile_id argument and
there are no named retention zones or per-tag policies; tagging a memory does not
route it to a different policy.
get_retention_stats(profile_id="")
get_lifecycle_status(limit=50, profile_id="")
get_retention_stats reports, from the retention table, the count and average
retention score per Ebbinghaus zone (active, warm, cold, archive,
forgotten) and the totals. get_lifecycle_status counts the active, warm, cold
and archived state of up to limit memories and returns up to ten short
samples of each. Neither says when the next cycle runs.
forget(dry_run=True) # preview the decay cycle for the active profile
compact_memories(dry_run=True) # preview lifecycle-state transitions
The MCP forget tool is not a delete: it recomputes retention scores and moves
memories between zones. compact_memories moves memories whose lifecycle state
has become due (for example cold to archived); it does not merge duplicates. Both
default to a dry run. Run the preview first, show it to the user, and only then
pass dry_run=False. Do not run either without the user's say-so.
audit_trail(limit: int = 50)
Returns the newest limit rows of the compliance audit for the active profile,
as {"success", "entries", "count"}. Each entry has audit_id, profile_id,
action, target_type, target_id, details and timestamp. There are no
filter arguments. Entries are compliance actions (store, retrieve, delete, export
and the like).
Use it for compliance reviews, for investigating an unexpected change, and for audit reports to a data controller.
slm gdpr status [--profile P] [--json] # posture: receipts, audit counts, known gaps; read-only
slm gdpr export --profile P [--output FILE] [--json] # Art. 15/20 access and portability
slm gdpr erase --profile P --dry-run [--json] # preview an erasure
slm gdpr erase --profile P --yes [--json] # Art. 17 erasure, IRREVERSIBLE
slm gdpr verify --receipt-id ID [--profile P] # check an erasure receipt (exit 0 ok, 1 tampered, 2 not found)
slm gdpr erase erases a profile. It refuses to run without both --profile
and --yes, and without them it only previews. It is the only irreversible
operation here, so confirm the subject, the profile and the authority to erase
with the user before running it. slm gdpr status lists the known gaps (for
example backups and the code graph) rather than claiming completeness.
To remove individual memories rather than a whole profile, use the deletion
commands from slm-remember:
slm forget "<subject or project name>" --dry-run --json # ALWAYS first
slm forget "<subject or project name>" --yes --json
slm delete <fact_id> --yes --json
Memories that belong to a reviewed correction cannot be deleted this way; the
refusal names the case. A case SLM proposed by itself and nobody reviewed does
not block a delete, and slm corrections dismiss (dry run first, --apply
takes a backup) closes a pile of them. Never reject cases in bulk: a rejected
case counts as decided, so rejecting thousands would lock their memories against
deletion for good, including when a person asks for erasure. After an erasure, confirm with slm recall "<content>"
that nothing comes back, and never try to re-derive erased content from other
stored facts.
scope argument.shared and global facts; writing either
scope needs the share permission, which both roles hold.global fact into several shared facts, or otherwise
accumulate visibility the user did not ask for.consistency_check(limit: int = 100)
Runs a sheaf-consistency check over up to limit memories and returns pairs of
facts that contradict each other, with a severity (fact_a, fact_b,
severity, content_a), plus facts_checked, facts_errored and
total_contradictions. If the checker is disabled it says so in note. For the
health of the store itself (orphan rows, erased words left behind, unfinished
deletes) use slm db integrity and slm db repair; see slm-status.
Before each write operation:
personal unless the user explicitly asked to sharesession_id so the write is attributedBefore running any destructive or state-changing operation (forget,
compact_memories, slm forget --yes, slm gdpr erase --yes):
slm-scope — scope model details (personal/shared/global)slm-profile — memory profiles and tool setsslm-remember — fact storage, corrections and deletionslm-recall — retrieval reference (includes scope read flags)slm-mesh — mesh toolsslm-media — pictures, documents and folders, and the roles that gate themSome 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
- "What can I do in this workspace?" (role check) - "Move cold memories to archive after 60 days" - "Show the audit trail for recent memory operations" - "Export my data for GDPR compliance" - "Delete all memories about user X (right to erasure)" - "Turn on require-login for this workspace", "I'm locked out of company mode", slm team status - "The dashboard asks for a key" (slm token show) - Enterprise deployment with multi-team shared SLM - Compliance, audit, or data governance task
Three short reads, in order
slm-governance, workspace-roles, compliance, data-retention, gdpr, audit-trail
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-graphIndex 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 by meaning, assemble PR review context, and detect what changed since last index. Use when the user asks how code connects, what breaks if X changes, what calls a function, what a class inherits from, how to navigate an unfamiliar codebase, or to understand risk before editing.
2 plugins in one repository ship this exact skill · first indexed Nov 23, 2026
Other plugins' skills for the same job