/superlocalmemory:slm-loop runs instead · from SuperLocalMemory
Runs gate-verified bounded loops where an independent check (test suite, linter, schema) determines completion, not the agent's own judgment. Uses SuperLocalMemory as the durable loop ledger.
This skill never runs in Claude Code
It ships in SuperLocalMemory at skills/, but /superlocalmemory:slm-loop (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
A bounded loop is complete only when an independent gate passes — not when the agent claims it is finished. The agent's own "I'm done" signal is recorded for audit and is never used to terminate the loop. If you take one thing from this skill: the gate is the authority.
Use a bounded loop whenever the goal has a mechanical, checkable contract: a test suite, a JSON schema, a linter, a reconciliation rule, a citation checker, a security scan. When the goal is subjective, keep a human approval gate.
SLM's loop engine runs the laps, enforces the bounds, calls the gate and writes the ledger. It does not start your tests or linters: it carries no subprocess or sandbox machinery. What each surface gives you:
| Surface | What it does |
|---|---|
slm_loop_run (MCP) | A watcher for a registered check. DONE needs gate_contract={"job_id": ...}: a job the operator registered with superlocalmemory.loops.receipt_jobs.register_job and executed with run_registered_check. Each lap's recall of gate_query only locates context; a matching memory alone never passes. Without a registered job the run ends HALT ("operator-registered job_id required"), which is the correct, honest outcome. |
slm loop demo (CLI) | A keyless convergence demo: a stub proposer, a deterministic gate that passes on lap 3, every lap recorded. Proves the engine and ledger work end to end. |
slm loop history, slm loop show / slm_loop_history, slm_loop_show | Read the ledger of past runs. |
superlocalmemory.loops.run_bounded_loop (Python) | The engine itself, for code that supplies its own runner and gate callables. |
For a task whose gate is a command (pytest -q, a schema validation), you run
that command yourself each lap with Bash and read its exit code; the discipline
below still applies, but SLM is not recording those laps. For graph runs with
receipts, use the separate Bounded Loops product; SLM can take a read-only
snapshot of its finished runs with observe_bounded_loop_evidence(workspace)
(an absolute path), which records observations only and never changes recall or
ranking.
Every lap SLM runs is written as a durable, queryable memory (tagged loop:<name>,
session loop:<run_id>). That makes a run:
slm recall, the dashboard, and any
SLM-integrated tool, alongside everything else the agent remembers.slm_loop_runslm_loop_run(
name: str, # 1–128 chars; also the memory tag
gate_query: str, # the recall the gate checks each lap (up to 2000 chars)
gate_min_score: float = 0.0, # minimum top-result score to pass
max_iterations: int = 20, # hard lap cap, 1–200
max_wallclock_s: float = 15.0,# hard time cap; 0 disables; never more than 120
poll_interval_s: float = 1.0, # wait between laps; at least 0.25
max_tokens: int = 0, # optional token budget; 0 disables
no_progress_window: int = 0, # halt after N no-change laps; leave 0 for a watcher
require_support: bool = False,# pass only if the answer check ran and judged it sufficient
gate_contract: dict | None = None, # {"job_id": <operator registration>}; required for DONE
)
The call blocks until the gate passes or a bound trips, then returns
{ok, status, reason, passed, laps, run_id, ledger: [{lap, decision, passed, detail}]}.
The gate recalls at most three memories per lap and ignores the loop's own
ledger entries, so only a memory written by someone else can satisfy it. A
recall the answer check judged insufficient never passes, even with a high
score; with require_support=True an unchecked recall (check off, busy,
loading, out of time) does not pass either. When the answer check is on, each
lap asks it once about those memories; with the online check that is a request
to the provider and may be billed. slm_loop_run is not available to remote
callers.
slm_loop_history(name, limit=20) # runs recorded under a loop name
slm_loop_show(run_id, limit=200) # every lap of one run, in order
slm loop demo [--iterations N] [--json] # keyless convergence demo
slm loop history [--name NAME] [--json] # list recorded runs
slm loop show <run_id> [--json] # every lap of one run
There is no slm loop run.
A loop runs inside a safety envelope. Any bound tripping ends the run with
HALT (never a success):
SLM_LOOP_KILL in the loop's process
environment stops it before the next lap, with status KILLED.slm_loop_run and the demo
run at L1, so PAUSE arises only from code that sets a higher rung.| Status | Meaning |
|---|---|
DONE | The independent gate passed and approval was granted or not required. |
HALT | A bound tripped (iterations, no-progress, token, or wall-clock). |
PAUSE | The gate passed but required approval is not yet granted. |
KILLED | The external kill switch tripped between laps. |
ERROR | The runner or gate failed to execute; inspect the lap detail. |
Say DONE only when the status is exactly DONE. Never describe HALT,
PAUSE, or ERROR as success. When halted, name which bound tripped; when
paused, name the approval needed; when errored, quote the short detail.
slm_loop_show or slm loop show <run_id> (or
slm recall on tag loop:<name>).run_id so the run can be re-inspected later.Loops are one half; SLM also learns from what happened, and none of it can quietly make recall worse.
query_id to report_outcome when the memories
helped or misled; the local ranker learns from that. A new ranker is promoted
only on a statistically valid win and rolled back automatically if it slips.get_soft_prompts(profile_id) returns the patterns SLM learned
for this workspace.skill_health and
skill_lineage are read-only; evolve_skill runs one evolution for the active
workspace and needs slm config set evolution.enabled true. A candidate is
verified blind and approved before it replaces a skill.observe_bounded_loop_evidence(workspace)
imports its run evidence read-only, so laps and gates join the same memory.Guides: docs/skill-evolution.md, docs/bounded-loops-bridge.md.
slm-status — confirm SLM is healthy before relying on the ledger.slm-recall — query a loop's laps directly (loop:<name> tag), and the
answer-check fields the recall gate depends on.slm-session — session lifecycle around a longer loop run.SuperLocalMemory v4.2.34 · Qualixar · AGPL-3.0-or-later
Some 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.
What SKILL.md sets; muted values are Claude Code's defaults
run a bounded loop, gate-verified task, iterate until tests pass, verify against an independent gate, don't trust the agent's own done claim, slm loop, convergence loop, loop until green, loop ledger, wait for another agent's result
2 plugins in one repository ship this exact skill · first indexed Nov 23, 2026
17 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.npx claudepluginhub qualixar/superlocalmemory --plugin superlocalmemoryOther plugins' skills for the same job