Agent skill

Slm Loop

by qualixar in qualixar/superlocalmemory

Run gate-verified bounded loops with SuperLocalMemory as the durable ledger.

AGPL-3.0Auto-check: notesBusiness, Finance & HR

Install Slm Loop

skills CLI
$ npx skills add qualixar/superlocalmemory --skill slm-loop -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install qualixar/superlocalmemory slm-loop --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/qualixar/superlocalmemory.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugin/skills/slm-loop .claude/skills/slm-loop && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
slm-loop
GitHub stars
227
Token cost
~1.2k tokens
SKILL.md length
516 words
Files
1
Skills in repo
13
Repo updated
First seen
Licence
AGPL-3.0

At a glance

Run gate-verified bounded loops with SuperLocalMemory as the durable ledger.

  • Works in 3 steps: Run or resume the loop. → Read back the ledger with slm loop show… → Report the exact terminal status, the…
  • A task has a checkable acceptance condition (tests
  • SKILL.md covers The one rule, What SLM adds, CLI and The bounds, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Slm Loop is an agent skill from qualixar/superlocalmemory. Run gate-verified bounded loops with SuperLocalMemory as the durable ledger. Use when a task has a checkable acceptance condition (tests, schema, lint, reconciliation) and you must iterate until an INDEPENDENT gate passes — never stopping just because the agent believes it is done. slm loop demo runs a keyless convergence demo; slm loop history and slm loop show <runid inspect past runs whose every lap is persisted as queryable SLM memory (tag loop:<name). Terminal statuses are DONE / HALT / PAUSE / KILLED /…

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Business, Finance & HR, covering Accounting and bookkeeping, Linting and formatting and Autonomous loops. It works with Model Context Protocol. The repository describes itself as: Open-source governed, local-first memory control plane for AI agents and teams. arXiv:2608.08253. The licence is AGPL-3.0.

When your agent uses it

  • A task has a checkable acceptance condition (tests
  • Reconciliation) and you must iterate until an INDEPENDENT gate passes — never stopping just because the agent believes it is done

Example prompts

  • “/slm-loop”

Requirements

  • Pre-approved tools (allowed-tools): Bash, recall

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Run or resume the loop.
  2. Read back the ledger with slm loop show (or slm recall on tag
  3. Report the exact terminal status, the lap count, and the gate's final

What it can do on your machine

Read from SKILL.md and the folder at commit ce2d7a9. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash
    • recall

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Slm Loop loads about 1.2k tokens when it runs. Until then it costs about 153 tokens; SKILL.md has 516 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~153
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Bash, recall

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from qualixar/superlocalmemory at commit ce2d7a9, republished under its AGPL-3.0 licence (© qualixar). 516 words, ~1,159 tokens.

Download SKILL.mdSave it as .claude/skills/slm-loop/SKILL.md (or your agent's skills folder).
name
slm-loop
description
Run gate-verified bounded loops with SuperLocalMemory as the durable ledger. Use when a task has a checkable acceptance condition (tests, schema, lint, reconciliation) and you must iterate until an INDEPENDENT gate passes — never stopping just because the agent believes it is done. `slm loop demo` runs a keyless convergence demo; `slm loop history` and `slm loop show <run_id>` inspect past runs whose every lap is persisted as queryable SLM memory (tag `loop:<name>`). Terminal statuses are DONE / HALT / PAUSE / KILLED / ERROR — report them exactly, never converting HALT/PAUSE/ERROR into success.
allowed-tools
Bash, recall
when_to_use
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…

slm-loop — Bounded, gate-verified agent loops

The one rule

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 (see rungs below).

What SLM adds

Every lap is written to SuperLocalMemory as a durable, queryable memory (tagged loop:<name>, session loop:<run_id>). That makes a run:

  • auditable — inspect the decision + gate verdict + budget for each lap;
  • resumable / historical — a run's ledger survives across sessions;
  • discoverable — visible via slm recall, the dashboard, and any SLM-integrated tool, alongside everything else the agent remembers.

CLI

bash
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

slm loop demo proposes a fix, checks it against a deterministic gate that passes on lap 3, and records the run — a zero-setup way to see the control flow and confirm the SLM-backed ledger works end to end.

The bounds

A loop runs inside a safety envelope. Any bound tripping ends the run with HALT (never a success):

  • max_iterations — a hard lap cap.
  • no_progress_window — consecutive no-change laps before halting a spinning agent.
  • token budget / wall-clock — cumulative ceilings.
  • kill switch — set SLM_LOOP_KILL to stop before the next lap.
  • approval rung — L1 (report), L2 (assisted, pauses for approval), L3 (unattended). L2/L3 require approval before a passing gate is accepted as DONE unless approval is explicitly configured off.
Show full SKILL.md (243 more words)Show less

Terminal statuses — report exactly

StatusMeaning
DONEThe independent gate passed and approval was granted or not required.
HALTA bound tripped (iterations, no-progress, token, or wall-clock).
PAUSEThe gate passed but required approval is not yet granted.
KILLEDThe external kill switch tripped between laps.
ERRORThe 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.

Reporting workflow

  1. Run or resume the loop.
  2. Read back the ledger with slm loop show <run_id> (or slm recall on tag loop:<name>).
  3. Report the exact terminal status, the lap count, and the gate's final verdict. Include the run_id so the run can be re-inspected later.

Gate discipline

  • The gate verifies; the runner only proposes. They are separate.
  • Prefer a typed, parseable gate (a test exit code, a schema validation, a scanner report) over a vague check. A missing tool, an empty report, or a crashed scanner is not a clean pass — fail closed.
  • Never use "an LLM decides it looks good" as the gate. That reintroduces the exact failure mode bounded loops exist to remove.

  • slm-status — confirm SLM is healthy before relying on the ledger.
  • slm-recall — query a loop's laps directly (loop:<name> tag).
  • slm-session — session lifecycle around a longer loop run.

SuperLocalMemory v4.1.21 · Qualixar · AGPL-3.0-or-later

© qualixar, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugin/skills/slm-loop of qualixar/superlocalmemory.

Open the folder on GitHubat commit ce2d7a9

Compare with similar skills

Slm Loop next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Slm Loop compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Slm Loop this skillqualixar/superlocalmemory227—~1.2kAutomated safety check: NotesAGPL-3.0
Odoo Agency Fleet Reviewerpipe-org/mcp-odoo419—~699Automated safety check: PassMIT
Longbridge Value Investinghelsome/folio2692 repos~1.2kAutomated safety check: PassMIT
Travel Expense ReimbursementFoxtailsss-Andy/Anna-Agent147—~812Automated safety check: PassMIT
Odoo Month End Closeerpipe-org/mcp-odoo419—~753Automated safety check: PassMIT
Tear Sheetw95/awesome-claude-corporate-skills2351 repos~7.8kAutomated safety check: PassApache-2.0

Similar skills

  • Odoo Agency Fleet Review

    erpipe-org/mcp-odoo

    Review many client Odoo databases at once through odoo-mcp's cross-instance tools — fleet-wide accounting health, per-client aging, partial-failure triage — for agencies and partners managing 5–50…

    419 GitHub stars~699 tokensUpdated 1 mo ago
    Business, Finance & HRAuto-check passed
  • Value investing analysis using Graham (NCAV/net-net/defensive-investor) and Buffett (economic moat/ROE/FCF) methodologies.

    269 GitHub starsUsed in 2 repos~1.2k tokens
    Business, Finance & HRAuto-check passed
  • Travel Expense Reimbursement

    Foxtailsss-Andy/Anna-Agent

    Create, validate, submit, and verify employee travel and expense reimbursements through Anna Cowork and MCP.

    147 GitHub stars~812 tokensUpdated 16 days ago
    Business, Finance & HRAuto-check passed
  • Odoo Month End Close

    erpipe-org/mcp-odoo

    Drive a month-end accounting close on Odoo through odoo-mcp — AR/AP aging, open-item and draft-invoice review, reconciliation checklists, and chatter documentation — with human sign-off at every…

    419 GitHub stars~753 tokensUpdated 1 mo ago
    Business, Finance & HRAuto-check passed
  • Tear Sheet

    w95/awesome-claude-corporate-skills

    Generate professional company tear sheets using S&P Capital IQ data via the Kensho LLM-ready API MCP server.

    235 GitHub starsUsed in 1 repo~7.8k tokens
    Business, Finance & HRAuto-check passed
  • Datapack Builder

    w95/awesome-claude-corporate-skills

    Build professional financial services data packs from various sources including CIMs, offering memorandums, SEC filings, web search, or MCP servers.

    235 GitHub starsUsed in 1 repo~6k tokens
    Business, Finance & HRAuto-check passed

More from qualixar/superlocalmemory

All 13 skills in this repo
  • Superlocalmemory

    qualixar/superlocalmemory

    AI agent memory with mathematical foundations. An agent skill from qualixar/superlocalmemory.

    227 GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Slm Graph

    qualixar/superlocalmemory

    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 by meaning, assemble PR review context…

    227 GitHub stars~2.7k tokensUpdated today
    Auto-check: notes
  • Slm Recall

    qualixar/superlocalmemory

    Search and retrieve facts, decisions, and past context from SuperLocalMemory.

    227 GitHub stars~3.3k tokensUpdated today
    Auto-check: notes
  • Slm Remember

    qualixar/superlocalmemory

    Capture durable facts, decisions, constraints, and gotchas into SuperLocalMemory.

    227 GitHub stars~2.3k tokensUpdated today
    Auto-check: notes
  • Slm Scope

    qualixar/superlocalmemory

    Controls memory visibility across profiles — personal (private, default), shared (selected profiles), or global (all profiles on this machine).

    227 GitHub stars~1.4k tokensUpdated today
    Auto-check: notes
  • Slm Status

    qualixar/superlocalmemory

    Health and optimization stats for SuperLocalMemory — call slmoptimizestats() for live compression and cache counters (compressruns, tokenssavedcompress, cacheproxyhits, cacheproxymisses…

    227 GitHub stars~1.7k tokensUpdated today
    Auto-check: notes

Questions about Slm Loop

What does Slm Loop do?

Run gate-verified bounded loops with SuperLocalMemory as the durable ledger. Slm Loop is an agent skill from qualixar/superlocalmemory. Run gate-verified bounded loops with SuperLocalMemory as the durable ledger.

When should I use Slm Loop?

Slm Loop fits situations like: A task has a checkable acceptance condition (tests; reconciliation) and you must iterate until an INDEPENDENT gate passes — never stopping just because the agent believes it is done.

How do I install Slm Loop in Claude Code?

Run `npx skills add qualixar/superlocalmemory --skill slm-loop -a claude-code`. Or copy the skill folder (plugin/skills/slm-loop in qualixar/superlocalmemory) into .claude/skills/slm-loop in your project. Claude Code loads it when a task matches its description.

How do I install Slm Loop in Codex?

Run `npx skills add qualixar/superlocalmemory --skill slm-loop -a codex`. Or copy the skill folder (plugin/skills/slm-loop in qualixar/superlocalmemory) into .agents/skills/slm-loop in your project. Codex loads it when a task matches its description.

Can I use Slm Loop in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add qualixar/superlocalmemory --skill slm-loop -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/slm-loop, .gemini/skills/slm-loop, .github/skills/slm-loop and .opencode/skills/slm-loop in your project.

What does Slm Loop need to run?

SKILL.md names no scripts, command-line tools or credentials: Slm Loop is instructions for the agent only. Its frontmatter pre-approves these tools: Bash, recall.

Does Slm Loop access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Slm Loop safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Slm Loop use?

Slm Loop is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Slm Loop use?

About 1.2k tokens (SKILL.md is roughly 4.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Slm Loop?

Skills that share tags, products or a category with Slm Loop: Odoo Agency Fleet Review (erpipe-org/mcp-odoo, 419 stars), Longbridge Value Investing (helsome/folio, 269 stars), Travel Expense Reimbursement (Foxtailsss-Andy/Anna-Agent, 147 stars) and Odoo Month End Close (erpipe-org/mcp-odoo, 419 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Slm Loop?

qualixar (a GitHub organization) maintains it in qualixar/superlocalmemory, which has 227 GitHub stars. The repository holds 13 skills in this directory. The repository was last updated on October 7, 2026.

Source: qualixar/superlocalmemory on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.