fire-loop-stop

A command that stops an active Power Loop, a repeated work process, while saving its current state.

In plain words
What is it for?
Use it when a loop is stuck, was started with the wrong settings, or needs to be paused and resumed later.
Why use it?
It lets you pause or cancel a loop without losing the progress and details needed to continue later.

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/thierryn/fire-flow/fire-loop-stop
Clone the repo
git clone --depth 1 https://github.com/ThierryN/fire-flow
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,104 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.00008 $0.01104
Opus 5 $0.00004 $0.00552
Sonnet 5 $0.00002 $0.00221
Haiku 4.5 $0.00001 $0.00110

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

Security

Grade A, and why

fire-loop-stop 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/fire-loop-stop.md · 199 lines

How it starts

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

/fire-loop-stop

Cancel active Power Loop with progress preservation


Purpose

Safely cancel an active Power Loop, preserving all progress made and updating tracking files. Use this when you need to:

  • Stop a loop that's not making progress
  • Pause work to resume later
  • Cancel a loop started with wrong parameters

Process

Step 1: Check for Active Loop

if [ ! -f ".planning/loops/active-loop.json" ]; then
  echo "No active Power Loop found."
  exit 0
fi

Step 2: Read Loop State

LOOP_ID=$(jq -r '.id' .planning/loops/active-loop.json)
LOOP_FILE=$(jq -r '.loop_file' .planning/loops/active-loop.json)
CURRENT_ITERATION=$(jq -r '.current_iteration' .planning/loops/active-loop.json)
MAX_ITERATIONS=$(jq -r '.max_iterations' .planning/loops/active-loop.json)

Step 3: Create Sabbath Rest Snapshot

Save current state for potential resume:

## .planning/loops/sabbath-${LOOP_ID}-stopped.md

---
loop_id: ${LOOP_ID}
iteration: [current]
timestamp: [ISO]
reason: user_requested_stop
---

## State at Stop

### Progress Summary
- Iterations completed: [N]
- Last action: [description]

### Files Modified
- [file]: [change summary]

### Next Steps (if resumed)
1. [what to do next]

### Key Context
[Critical information for resume]

Step 4: Update Loop File

Add cancellation entry to loop file:

## Final Result

- **Status:** cancelled_by_user
- **Total Iterations:** [current_iteration]
- **Cancelled At:** [timestamp]
- **Reason:** User requested stop via /fire-loop-stop

### Progress at Cancellation
[Summary of what was accomplished]

### Files Changed
- [list of files modified during loop]

### Resume Instructions
To resume this work:
  /fire-loop-resume ${LOOP_ID}

Step 5: Clean Up Active Loop

# Archive the active loop config
mv .planning/loops/active-loop.json ".planning/loops/stopped-${LOOP_ID}.json"

Step 6: Update CONSCIENCE.md

Remove the "Active Power Loop" section from CONSCIENCE.md.

Read the full file on GitHub · 199 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 · 199 lines · 8 tokens per session scan A 02323a2bc7bc

Subscribe to this mod's changes

fire-loop-stop is a command published in the GitHub repository ThierryN/fire-flow (77 stars, last pushed 20d ago), licensed MIT. It adds 8 tokens to every session and 1,104 once invoked, about $0.0000 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.