dos-replan-loop

dos-replan-loop is a skill for Claude Code, Codex from anthony-chaudhary/dos-kernel. It costs 44 tokens per session (1,724 once invoked), scanned A, original, MIT.

A scheduled loop that repeatedly refreshes a planning queue at a fixed interval. It can stop after a chosen number of runs and may follow the workspace's release rules.

In plain words
What is it for?
Use it to run repeated planning sweeps, optionally commit and release eligible changes, and schedule the next sweep.
Why use it?
It removes the need to start each planning refresh manually while limiting how long the recurring process runs.

Skill for Claude CodeCodex

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

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.

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

Made for: Claude Code, Codex.

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-replan-loop

README.md
[![agentmods](https://agentmods.dev/badge/skills/anthony-chaudhary/dos-kernel/dos-replan-loop.svg)](https://agentmods.dev/skills/anthony-chaudhary/dos-kernel/dos-replan-loop)
Your own site
<a href="https://agentmods.dev/skills/anthony-chaudhary/dos-kernel/dos-replan-loop"><img src="https://agentmods.dev/badge/skills/anthony-chaudhary/dos-kernel/dos-replan-loop.svg" alt="Measured on agentmods" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,724 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00044 $0.01724
Opus 5 $0.00022 $0.00862
Sonnet 5 $0.00009 $0.00345
Haiku 4.5 $0.00004 $0.00172

Measured 4d ago against content hash 727088ea60c7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

dos-replan-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 4d 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-replan-loop/SKILL.md · 129 lines

How it starts

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

dos-replan-loop — the generic recurring planning sweep

The thin loop. It is mostly sequencing: run /dos-replan, run an optional auto-commit/release contract, increment a counter, schedule the next wakeup, and stop at the iteration cap. The one thing it must get right generically is the release guard — it reads the workspace's trunk from config, not a hardcoded branch name. (This repo's trunk is master, not main — exactly the kind of host fact the guard must read, not assume.)

Inputs

  • --interval <seconds> (optional, default 600 — 10 minutes).
  • --max-iterations <N> (optional, default 20).

Step 1 — First entry

Set the iteration counter to 1. Record the pre-existing dirty state of the tree (so the auto-commit guard can tell what this sweep changed). Invoke the /dos-replan Skill.

Step 2 — After /dos-replan finishes: the guarded release contract

If /dos-replan made garden-only writes, optionally commit + release them — but only behind the guard. The guard reads the trunk from config, not a literal:

dos doctor --workspace . --json

There is no trunk field in the doctor report today (it is a host fact); resolve it the generic way: git symbolic-ref --short refs/remotes/origin/HEAD (the remote's default branch). Fail closed: if that cannot be resolved (no origin/HEAD — common in fresh clones / CI checkouts), treat the trunk as UNKNOWN and skip the release entirely (record the sweep only). Do NOT fall back to "the current branch" — that would make the on-trunk check below trivially true on any branch and let an auto-commit proceed off-trunk. Then the guard fires only when ALL hold:

  • the trunk is positively known (resolved above, not UNKNOWN), AND HEAD is on it (the resolved default branch — master here, main elsewhere; never hardcode either).
  • the working-tree changes are docs/state-only (the replan queue + cooldown state, nothing in code).
  • there is something to commit (a productive sweep).

Read the full file on GitHub · 129 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. 4d ago First seen · 129 lines · 44 tokens per session scan A 727088ea60c7

Subscribe to this mod's changes

dos-replan-loop is a skill published in the GitHub repository anthony-chaudhary/dos-kernel (19 stars, last pushed 11d ago), licensed MIT. It adds 44 tokens to every session and 1,724 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.