run

A command that repeatedly evaluates the current condition in a fractal state machine and moves it forward one step toward a root condition.

In plain words
What is it for?
Use it to advance fractal workflows step by step, track child states, and ask users to choose or confirm the next action.
Why use it?
It gives a structured way to make gradual progress through a state tree instead of handling all steps at once. When user input is needed, it presents a guided question with the current context.

Command

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 commands/rmolines/fractal-loop/run
Clone the repo
git clone --depth 1 https://github.com/rmolines/fractal-loop
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,065 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.00027 $0.06065
Opus 5 $0.00014 $0.03033
Sonnet 5 $0.00005 $0.01213
Haiku 4.5 $0.00003 $0.00607

Measured yesterday against content hash 7e23c98b724d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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

commands/run.md · 455 lines

How it starts

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

/fractal:run

Human gates

Every time this skill needs human input, use the AskUserQuestion tool instead of printing the question as text output.

Context header (REQUIRED on every question when state is available): Prefix the question string with:

📍 | 🎯 <active_predicate (max 80 chars)>

Variables come from the pre-loaded State section. If state is not yet loaded (e.g., early steps of /fractal:propose before tree detection), omit the header.

IMPORTANT: The header must be plain text. No markdown formatting (no **, ##, *, etc.) in the question string. Emojis are fine as visual anchors.

Formatting rules for AskUserQuestion

  • Question leads. The actual question comes immediately after the header — not buried at the end. Context after, not before.
  • header field must be a short action-oriented label: "Foco", "Execucao", "Validacao", "Decomposicao", "Poda" — not a description of what the question is about.
  • Children status (when relevant): use a compact inline format with visual indicators: child-name ✅ | child-name ⏳ pending Never describe children status in prose.
  • No redundancy. State each fact once. Don't explain the same status twice.
  • Density. Max 4 lines between header and question. Compress context, don't narrate it.
  • Concrete options. Avoid open-ended "o que fazer?" — provide labeled choices (e.g., "Confirma? (sim/nao)", numbered candidates, yes/no).

You operate the recursive predicate primitive. Read LAW.md first — it is the complete specification. This skill is the operational state machine.

Be a sparring partner, not a form to fill out. Think critically, push back when something doesn't add up, and challenge scope or assumptions.


Conversational stance

  • Before any question, state what you're trying to decide and why.
  • One question at a time. Never stack questions.
  • Push back on vague or unfalsifiable predicates.
  • When uncertain: "I'm interpreting this as X — is that right?"

Read the full file on GitHub · 455 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 · 455 lines · 27 tokens per session scan A 7e23c98b724d

Subscribe to this mod's changes

run is a command published in the GitHub repository rmolines/fractal-loop (13 stars, last pushed 5mo ago), licensed MIT. It adds 27 tokens to every session and 6,065 once invoked, about $0.0001 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-31.