_repeat

_repeat is a command for Claude Code from monoes/monomind. It costs 0 tokens per session (8,004 once invoked), scanned A, original, Apache-2.0.

A repeat wrapper that runs another command again after a delay or keeps running it until a round produces no findings or actions.

In plain words
What is it for?
Use it for scheduled repeated runs or until-complete workflows, with options for a run limit, delay, and loop identity.
Why use it?
It removes the need to restart repeated work manually and tracks the loop between sessions.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions subagents.

Good fit Use it for scheduled repeated runs or until-complete workflows, with options for a run limit, delay, and loop identity.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/monoes/monomind/_repeat
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.

Clone the repo
git clone --depth 1 https://github.com/monoes/monomind

Made for: Claude Code.

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 _repeat

README.md
[![agentmods](https://agentmods.dev/badge/commands/monoes/monomind/_repeat/github.svg)](https://agentmods.dev/commands/monoes/monomind/_repeat)
Your own site
<a href="https://agentmods.dev/commands/monoes/monomind/_repeat"><img src="https://agentmods.dev/badge/commands/monoes/monomind/_repeat/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.

agentmods 80×15 button for _repeat

Your own site · 80×15
<a href="https://agentmods.dev/commands/monoes/monomind/_repeat"><img src="https://agentmods.dev/badge/commands/monoes/monomind/_repeat.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 8,004 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00000 $0.08004
Opus 5.5 $0.00000 $0.03202
Sonnet 5.5 $0.00000 $0.01601
Haiku 4.5 $0.00000 $0.00800

Measured yesterday against content hash 0503176700a4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

_repeat scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -X POST "${CTRL_URL}/api/mastermind/event" -H "x-monomind-token: $(cat "${REPO_ROOT:-$(git rev-parse --show-toplevel 2>/dev/null || pwd)}/.monomind/dashboard-token" 2>/dev/null || true)" \
.claude/commands/mastermind/_repeat.md · 493 lines

How it starts

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

Shared Repeat Protocol

Adds --repeat <N> --wait <seconds> and --tillend --wait <seconds> inter-session looping to any command. Uses ScheduleWakeup to pause between runs and .monomind/loops/<id>.json for dashboard tracking.


REPEAT PREAMBLE

Apply immediately after flag extraction, before any other command logic.

1. Extract repeat flags

Extract and remove these flags from $ARGUMENTS before passing the remainder to the command's own parser:

Flag Variable Default Notes
--repeat <N> repeat_count 0 N ≥ 2 activates repeat; N < 2 = disabled
--tillend tillend_mode false Run until empty round (no findings, no actions). Overrides --repeat.
--maxruns <N> tillend_maxruns 50 Safety cap for --tillend; stops after N runs even if AI hasn't signaled done
--wait <seconds> wait_seconds 60 Minimum 60 (enforced by ScheduleWakeup)
--rep <N> current_rep absent Internal; injected by ScheduleWakeup on continuation runs
--loop <id> loop_id absent Internal; preserves loop identity across runs

If both --tillend and --repeat <N> are present, --tillend takes precedence.

2. If --rep N is present (continuation run)

  • Set current_rep = N, loop_id from --loop <id>
  • Set is_continuation = true
  • The calling command MUST skip its empty-prompt check and intake when is_continuation = true

First — staleness guard (run before anything else):

Check whether the loop file exists and whether this wakeup is stale:

LOOP_FILE=".monomind/loops/${LOOP_ID}.json"
if [ ! -f "$LOOP_FILE" ]; then
  echo "[repeat] Stale wakeup: loop ${LOOP_ID} is already complete (state file gone). Skipping."
  # STOP — do not execute the command
else
  LOOP_CURRENT_REP=$(python3 -c "import json; print(json.load(open('${LOOP_FILE}'))['currentRep'])" 2>/dev/null \
    || jq -r '.currentRep // 0' "${LOOP_FILE}" 2>/dev/null || echo "0")
  if [ "${current_rep}" -lt "${LOOP_CURRENT_REP}" ]; then
    echo "[repeat] Stale wakeup: got --rep ${current_rep} but loop is already at rep ${LOOP_CURRENT_REP}. Skipping."
    # STOP — do not execute the command
  fi
fi

Read the full file on GitHub · 493 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. yesterday First seen · 493 lines · 0 tokens per session scan A 0503176700a4

Subscribe to this mod's changes

_repeat is a command published in the GitHub repository monoes/monomind (23 stars, last pushed yesterday), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 8,004 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-26.

Related

Other commands, from other repositories

prune

Delete pending instincts older than 30 days that were never promoted.

mturac/everything-openai-codex · 15 tokens

ordenar

Grupo: Trabajo con el framework En una frase: Capturar archivos, carpetas y dumps del chat — documentar en la capa correcta y dejar manifest recuperable. Cuándo: Volcás mucha data, briefs, notas o paths y querés que el DT clasifique, documente e indexe para reutilizar. Quién: Cualquier operador del repo.

Mazalucas/El-DT-Lightweight-Army · 0 tokens

cerebro-profesional

Grupo: Módulos del segundo cerebro En una frase: Agenda de reuniones, contactos, equipos y búsqueda profesional. Cuándo: Querés explorar notas Meet, timelines por persona o filtrar por proyecto. Quién: Cualquier operador del repo.

Mazalucas/El-DT-Lightweight-Army · 0 tokens

cerebro-work

Grupo: Módulos del segundo cerebro En una frase: Sync cerebro profesional — atajo CerebroWork (script en raíz). Cuándo: Querés correr el sync Meet→Markdown sin recordar paths; ritual rápido post-OAuth. Quién: Cualquier operador del repo.

Mazalucas/El-DT-Lightweight-Army · 0 tokens

start

Grupo: Módulos del segundo cerebro En una frase: Abrir Tools Hub — índice interactivo de herramientas con búsqueda. Cuándo: Querés ver o encontrar rápido tus tools y commands del segundo cerebro. Quién: Cualquier operador del repo.

Mazalucas/El-DT-Lightweight-Army · 0 tokens

checklist

Generate a custom checklist for the current feature based on user requirements.

github/spec-kit · 13 tokens