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 richfrem/agent-plugins-skills --skill os-lab-loopgit clone --depth 1 https://github.com/richfrem/agent-plugins-skillsWrote 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/richfrem/agent-plugins-skills/os-lab-loop)<a href="https://agentmods.dev/skills/richfrem/agent-plugins-skills/os-lab-loop"><img src="https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/os-lab-loop/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/richfrem/agent-plugins-skills/os-lab-loop"><img src="https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/os-lab-loop.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.00233 | $0.01364 |
| Opus 5.5 | $0.00093 | $0.00546 |
| Sonnet 5.5 | $0.00047 | $0.00273 |
| Haiku 4.5 | $0.00023 | $0.00136 |
Grade A, and why
os-lab-loop 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 yesterday.
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 — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Lab Loop (os-lab-loop)
The single loop that improves a target skill or agent in the lab. It owns orientation, mutation and
close. It never scores: each change goes to os-lab-scorer.
Contents
Critical constraints
- Every change is scored: call
os-lab-scorerfor each mutation; no manual rollback and no self-assessed KEEP. - Locked evaluator: only the target
SKILL.md(and, as a second-order move, the proposer prompt orreferences/program.md) is mutated; neverevaluate.pyorevals/evals.json. - One variable per iteration, and a documented hypothesis before the first mutation.
- Session close is mandatory: surveys, ledger, metrics, registry and memory run even when the target score is not reached.
- Budget guard: 10 iterations per session, 3 consecutive DISCARDs trigger a strategy review (see lab-limits).
- Do not skip orientation: no agent starts cold.
Quick start
From a lab prepared by os-lab-setup, with a baseline already recorded in <path/to/target-skill>/evals/results.tsv:
Run the improvement loop on <path/to/target-skill> for 5 iterations.
Each iteration: classify the failure, propose one change, invoke os-lab-scorer on <path/to/target-skill>, act on KEEP or DISCARD. If no baseline exists, have os-lab-scorer record it first.
Workflow
- Orient (Stage 0): read
context/memory/improvement-ledger.md, the target'sevals/results.tsv,references/program.md, the test registry,context/memory.md, recent surveys, the last 100 lines ofcontext/events.jsonl, and open map debt (Repeat: YESfirst). Write the hypothesis and register the cycle. See stage-0-orientation.md. - Mutate (Stage 1): classify the failure, propose one change, log friction events as they occur. See mutation-protocol.md and stage-1-execution.md.
- Score (Stage 2): invoke
os-lab-scorer. With a PEER_AGENT, the peer scores independently from its own session. See stage-2-verification.md. - Decide (Stage 3): KEEP is applied and committed; DISCARD writes a correction packet and re-signals the inner agent. See stage-3-decision.md.
- Repeat from step 2 until the cap, the target score or the budget guard.
- Close (Stage 4): friction gate, surveys, post-run metrics, session log, loop report, test registry, improvement ledger, then
os-lab-memoryfor L3 promotion, auto-memory, Triple-Loop trigger check and lock release. See stage-4-close.md.
What ships with it
22 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- evals/evals.json 2.6 KB
- evals/results.tsv 73 B
- references/cheapest_models.md 50 B
- references/domain-patterns-README.md 45 B
- references/domain-patterns-routing-skill.md 52 B
- references/fallback-tree.md 48 B
- references/lab-limits.md 45 B
- references/memory/improvement-ledger-spec.md 61 B
- references/memory/metrics.md 45 B
- references/memory/post_run_survey.md 48 B
- references/mutation-protocol.md 52 B
- references/orchestrator-meta-survey.md 47 B
- references/program.md 42 B
- references/stage-0-orientation.md 54 B
- references/stage-1-execution.md 52 B
- references/stage-2-verification.md 55 B
- references/stage-3-decision.md 39 B
- references/stage-4-close.md 48 B
- references/testing/test-registry-protocol.md 60 B
- scripts/generate_report.py 35 B runs code
- scripts/kernel.py 26 B runs code
- scripts/post_run_metrics.py 36 B runs code
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.
- yesterday First seen · 81 lines · 233 tokens per session scan A 9fb28618295a
os-lab-loop is a skill published in the GitHub repository richfrem/agent-plugins-skills (7 stars, last pushed 2d ago), licensed MIT. It adds 233 tokens to every session and 1,364 once invoked, about $0.0009 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-10-16.
Other skills, from other repositories
qa
Run scalable, isolated live QA for nac development. The top-level local orchestrator must parse n (default 4), dispatch one setup worker with this skill, copy its n assignment contracts verbatim into exactly n parallel test workers with this skill, then dispatch one aggregate worker with this skill using all test…
ap-independent-checker
Independently review the exact result and run its real checks in one context, using isolated resources and without changing the deliverable.
ap-execharness-resolver
Report the compatibility redirect to ap-worker; this retired role cannot perform new work.
ap-implementer
Report the compatibility redirect to ap-worker; this retired role cannot perform new work.
ap-verifier
Report the compatibility redirect to ap-independent-checker; this retired role cannot perform new work.
codew-release-qa-sweep
Use before claiming Codewhale release work is done: run the full gate sweep and list the manual QA targets.