dos-supervise-loop

dos-supervise-loop is a skill for Claude Code from anthony-chaudhary/dos-kernel. It costs 43 tokens per session (3,264 once invoked), scanned A, original, MIT.

A supervisor for a fleet of DOS dispatch loops, where workers handle dispatch tasks in separate workspace lanes. It keeps the requested number of workers running, replaces stalled workers, and reports spinning ones.

In plain words
What is it for?
Starting missing dispatch loops, recovering stalled leases, and flagging workers that appear to be spinning.
Why use it?
It prevents the worker fleet from falling below its target while avoiding the removal of healthy workers.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md.

Part of the dos-kernel plugin — 18 skills, 3 hooks, 1 MCP server shipped together

Good fit Starting missing dispatch loops, recovering stalled leases, and flagging workers that appear…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/anthony-chaudhary/dos-kernel/dos-supervise-loop
Install

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.

Any agent
npx skills add anthony-chaudhary/dos-kernel --skill dos-supervise-loop
Clone the repo
git clone --depth 1 https://github.com/anthony-chaudhary/dos-kernel

Made for: Claude Code.

Or install dos-kernel, the plugin that ships this one along with the rest of its 18 skills, 3 hooks, 1 MCP server.

Wrote 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.

agentmods badge for dos-supervise-loop

README.md
[![agentmods](https://agentmods.dev/badge/skills/anthony-chaudhary/dos-kernel/dos-supervise-loop.svg)](https://agentmods.dev/skills/anthony-chaudhary/dos-kernel/dos-supervise-loop)
Your own site
<a href="https://agentmods.dev/skills/anthony-chaudhary/dos-kernel/dos-supervise-loop"><img src="https://agentmods.dev/badge/skills/anthony-chaudhary/dos-kernel/dos-supervise-loop.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,264 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.03264
Opus 5 $0.00022 $0.01632
Sonnet 5 $0.00009 $0.00653
Haiku 4.5 $0.00004 $0.00326

Measured 7d ago against content hash 2d4e6dfb73c0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

dos-supervise-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 7d ago.

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.

claude-plugin/skills/dos-supervise-loop/SKILL.md · 237 lines

How it starts

The opening of the file, as written. The whole thing — 237 lines — stays where its author put it; the contents beside it link to each section on GitHub.

dos-supervise-loop — the generic worker-population supervisor

The init/PID-1 of a dispatch fleet. It keeps --target worker dispatch-loops alive across the lane roster: each tick it counts live lane leases, classifies each worker's liveness, and fills the roster up to target by launching one /dos-dispatch-loop per free admissible lane. The what to do is a typed kernel verdict — dos loop emits a spawn/reap/flag plan; this skill only carries it out. It reaps a worker ONLY when the kernel says STALLED, never a healthy one, and it FLAGs a SPINNING worker to the operator rather than killing it (acting on a spin is not the supervisor's job).

The supervisor's whole contract is one rule the kernel owns: the population is filled from the plan, not from a guess. A tick is gather evidence → ask dos loop → carry out spawn/reap/flag. The four dispositions are the kernel's:

  1. SPAWN — a free, admissible lane below target: launch one worker on it.
  2. REAP — a STALLED lease: scavenge it so the lane is free to refill.
  3. HOLD — an ADVANCING (or alive-counted SPINNING) worker: leave it alone.
  4. FLAG — a SPINNING worker (advisory) or an excess over target: surface it, do not kill it.

Inputs

  • --target <N> (default 1) — the desired live-worker population. The kernel caps the achievable population at the admissible count (how many roster lanes can simultaneously hold a worker given their disjointness); a --target above that yields a TARGET_UNREACHABLE verdict naming the fix.
  • --max-concurrency <N> (optional, docs/283) — the derived-claim concurrency budget. On a DYNAMIC-CLAIM workspace (concurrent = [], where a lane is a HANDLE whose disjointness is enforced per-pick at acquire time, not by a fixed tree), the static admissible count is 1, so a --target above 1 is structurally unreachable. Declaring this budget lets the supervisor keep up to N workers alive on a fungible auto-pick handle WITHOUT pre-enumerating N disjoint trees — the arbiter still narrows each worker's per-pick claim at its Step 0. Declare ONE number, not N trees. Set it standing in dos.toml [supervise] max_concurrency, or pass --max-concurrency for a one-off run. Off by default (admissible stays the static disjoint-lane count — byte-for-byte today's).
  • --interval <seconds> (long default) — the wakeup cadence between ticks. A supervisor wakes rarely; it is a watchdog, not a busy-loop.
  • --max-ticks <N> (optional) — stop after N ticks. Omit for an open-ended run that stops only on an operator interrupt.

Read the full file on GitHub · 237 lines

Changes

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.

  1. 7d ago First seen · 237 lines · 43 tokens per session scan A 2d4e6dfb73c0

Subscribe to this mod's changes

dos-supervise-loop is a skill published in the GitHub repository anthony-chaudhary/dos-kernel (19 stars, last pushed 13d ago), licensed MIT. It adds 43 tokens to every session and 3,264 once invoked, about $0.0002 per session on Opus 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-30.