thoth:loop

A command that starts a bounded Thoth controller whose parent process creates four-phase child runs. A controller coordinates these runs within defined limits.

In plain words
What is it for?
Use it to start a Thoth loop with a work ID, then receive progress, terminal status, and risk information from its runtime events.
Why use it?
It provides a repeatable way to manage a multi-phase run while keeping the work tied to a specified work item.

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/seeleai/thoth/loop
Clone the repo
git clone --depth 1 https://github.com/SeeleAI/Thoth
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 947 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.00018 $0.00947
Opus 5 $0.00009 $0.00474
Sonnet 5 $0.00004 $0.00189
Haiku 4.5 $0.00002 $0.00095

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

Security

Grade A, and why

thoth: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 2d 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.

commands/loop.md · 73 lines

How it starts

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

/thoth:loop

Generated Surface

This file is generated from thoth.command_specs.COMMAND_SPECS. Do not hand edit.

Real Runtime Execution

The repo-local Thoth runtime command for this slash command has already been executed before Claude sees this prompt.

THOTH_LOOP_ARGUMENTS_FILE="$(mktemp -t thoth-loop-arguments.XXXXXX)"
trap 'rm -f "$THOTH_LOOP_ARGUMENTS_FILE"' EXIT
cat > "$THOTH_LOOP_ARGUMENTS_FILE" <<'THOTH_LOOP_ARGUMENTS_EOF'
$ARGUMENTS
THOTH_LOOP_ARGUMENTS_EOF
"${CLAUDE_PLUGIN_ROOT}/scripts/thoth-claude-command.sh" loop --host claude --thoth-arguments-file "$THOTH_LOOP_ARGUMENTS_FILE"

Response Contract

  • Treat the structured bridge payload above as the only authority for this command invocation.
  • If bridge_success is false, report the exact bridge failure and stop.
  • If run or loop is missing --work-id, show returned candidates and stop; do not invent, create, compile, or guess a work item.
  • If bridge_success is true and runtime events are present, summarize progress, terminal status, and risk from those events only.
  • Do not hand-edit .thoth or manually call runtime protocol commands; the Thoth RuntimeDriver advances phases.
  • If packet.dispatch_mode is external_worker, do not duplicate the work locally; report the run id, worker mode, and the correct follow-up only.
  • If you only describe what should happen next instead of reporting the executed runtime result, treat that as failure.
  • Substantive execution must flow through packet.executor; by default this matches the host unless the user explicitly supplied --executor.
  • Runtime lifecycle is plan -> execute -> validate -> reflect; execute owns the official validator receipt, validate confirms it mechanically.
  • Execute must actively produce canonical acceptance evidence: missing artifacts, metrics, logs, receipts, benchmark output, service state, or files are execution work until produced or until a concrete root cause, blocker, or budget boundary is captured.
  • For long-running work, first-artifact evidence proves startup only; continue or resume canonical execution until acceptance evidence, a concrete blocker, or a real budget boundary exists.
  • Do not let healthy work be stopped just because a short observation window has not yet produced canonical evidence; stop or restart only as explicit debugging or cleanup with logs and a next action.
  • If runtime budget expires before acceptance closes, preserve continuation evidence and the exact next command instead of presenting the work as passed.
  • Live monitor should observe sparsely around every 288s; on clear runtime/env mistakes, append or interrupt guidance instead of only narrating.
  • Trailing text/live corrections are temporary guidance only; never rewrite authority or validators.
  • Use packet.strict_task.goal_statement, packet.strict_task.authority_context, packet.strict_task.implementation_recipe, and packet.strict_task.eval_entrypoint as the only task authority.
  • If plan reports authority_complete=false or reason=needs_input, stop and route the user back to /thoth:discuss instead of guessing.

Read the full file on GitHub · 73 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. 2d ago First seen · 73 lines · 18 tokens per session scan A 41d81a3ed3ef

Subscribe to this mod's changes

thoth:loop is a command published in the GitHub repository SeeleAI/Thoth (51 stars, last pushed 23d ago), licensed MIT. It adds 18 tokens to every session and 947 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-30.