Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add jun0-ds/sonmat --skill autoloopgit clone --depth 1 https://github.com/jun0-ds/sonmatWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/jun0-ds/sonmat/autoloop)<a href="https://agentmods.dev/skills/jun0-ds/sonmat/autoloop"><img src="https://agentmods.dev/badge/skills/jun0-ds/sonmat/autoloop/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/jun0-ds/sonmat/autoloop"><img src="https://agentmods.dev/badge/skills/jun0-ds/sonmat/autoloop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00044 | $0.05476 |
| Opus 5.5 | $0.00018 | $0.02190 |
| Sonnet 5.5 | $0.00009 | $0.01095 |
| Haiku 4.5 | $0.00004 | $0.00548 |
Grade A, and why
autoloop scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 383 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Autoloop — Autonomous Loop Protocol
0. Entry Routing
On receiving a task, judge complexity:
| Signal | L0 (direct) | Full loop |
|---|---|---|
| Files to modify | 1 | Multiple |
| Iteration needed | One-shot | Expected |
L0: Skip planning questions and definition. Apply core.md + hints.md → execute → verify → done. Escalate to full loop if a trigger fires.
Full loop: Proceed to section 1.
Bridge-note check: Before starting any task, check if the sonmat bridge note exists (bridge-note.md in $SONMAT_PROJECTS_BASE/<slug>, default ~/.sonmat/projects/<slug>/ where <slug> is the cwd path with /→-; legacy .claude/sonmat/ as fallback). If relevant context is found, incorporate it silently. Mention to user only if directly relevant to the new task.
1. Planning Questions
When no loop definition exists, build one through conversation. Ask 2-3 at a time, not all at once.
Required Questions
| # | Question | Collects |
|---|---|---|
| 1 | What is the end goal? | loop.name + objective |
| 2 | Which files/scope to modify? | loop.modify |
| 3 | How to run after modification? | loop.run |
| 4 | How to evaluate results? | loop.evaluate |
| 5 | Keep/discard/refine criteria? | loop.judge |
| 6 | Constraints? (off-limits files, time, preservation zones) | loop.constraints |
| 7 | When to stop? | loop.exit |
Skip rules
- Already answered in task description → fill without asking.
- Clearly inferable from context → fill without asking.
- At minimum, secure
modify,run,evaluate.
Confirmation
Show the loop definition YAML and get user approval before starting. For L0 tasks: one-line summary suffices — "Proceeding like this: [summary]. Object if not." Silence after the L0 notice permits ordinary execution under the raw request but does not create an approved-baseline envelope; that envelope requires an explicit user approval turn.
Approval freezes the displayed definition as the execution baseline; preserve the exact display together with the raw approval turn. It does not amend a standing contract omitted from the definition. New evidence may change implementation details within that baseline. If it would instead change the approved objective, loop.modify, loop.constraints, or loop.judge — or restore behavior the baseline explicitly removed — show the current baseline and proposed revision and get reapproval before executing the revision. A safety or privacy conflict pauses execution but does not select a fallback on the user's behalf.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- today Changed · +4 tokens per session d55da8c43efe
- 1mo ago Changed · +1 lines 9b54603893f0
- 1mo ago Changed 8b2ab15349b2
- 1mo ago Changed 95a54f8b3e5e
- 2mo ago Changed · +7 lines 4b575017fb51
- 2mo ago First seen · 375 lines · 40 tokens per session scan A fc20a77d2743
autoloop is a skill published in the GitHub repository jun0-ds/sonmat (5 stars, last pushed yesterday), licensed BSD-3-Clause. It adds 44 tokens to every session and 5,476 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
autoloop compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| autoloopjun0-ds/sonmat | Skill | 5 | yesterday | BSD-3-Clause | A | 44 | Claude Code |
| huedominikmartn/hue | Skill | 900 | yesterday | MIT | A | 84 | Claude Code, Codex |
| example-feature-generatorqf-studio/navigator | Skill | 356 | 2d ago | MIT | A | 33 | Claude Code |
| authentication-patternstravisjneuman/.claude | Skill | 108 | yesterday | MIT | A | 28 | Claude Code |
| electron-desktoptravisjneuman/.claude | Skill | 108 | yesterday | MIT | A | 38 | Claude Code |
| content-repurposertravisjneuman/.claude | Skill | 108 | yesterday | MIT | A | 43 | Claude Code |
| impact-report-writertravisjneuman/.claude | Skill | 108 | yesterday | MIT | A | 43 | Claude Code |