slm-loop
让代理基于独立门控反复迭代,提升任务可靠性。
可能触发长时间或重复副作用操作,需限制权限与资源。
基于独立门控反复执行有界循环,直到外部验收门通过为止。
当目标可以用可检验的条件判断是否完成时,就用这个循环机制不断迭代,直到独立验收门通过。每一圈都写入 SLM 做为持久记录,方便查询和审计,历史记录可回看。要点是循环以独立门为权威,绝不靠代理自己声称完成来停掉流程,终态需要精确报告。
▸ 展开 SKILL.md 英文原文
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.
帮我安装这个 skill:https://raw.githubusercontent.com/qualixar/superlocalmemory/main/plugin-src/skills/slm-loop/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/qualixar/superlocalmemory/main/plugin-src/skills/slm-loop/SKILL.md"# 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 `loo