fire-resurrect

fire-resurrect is a command for coding agents from ThierryN/fire-flow. It costs 18 tokens per session (7,848 once invoked), scanned A, original, MIT.

A command that rebuilds a messy software project in a separate folder after examining what the original is meant to do. It asks clarifying questions and compares the rebuild with the source.

In plain words
What is it for?
Use it to analyze an existing project, extract its intended behavior, and create a clean rebuild in a chosen target folder.
Why use it?
It helps when a project has become difficult to maintain and gradual cleanup is not enough. The original files remain unchanged while a new version is created.

Command

Part of the dominion-flow plugin — 44 commands, 15 agents 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 commands/thierryn/fire-flow/fire-resurrect
Clone the repo
git clone --depth 1 https://github.com/ThierryN/fire-flow

Or install dominion-flow, the plugin that ships this one along with the rest of its 44 commands, 15 agents.

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 fire-resurrect

README.md
[![agentmods](https://agentmods.dev/badge/commands/thierryn/fire-flow/fire-resurrect.svg)](https://agentmods.dev/commands/thierryn/fire-flow/fire-resurrect)
Your own site
<a href="https://agentmods.dev/commands/thierryn/fire-flow/fire-resurrect"><img src="https://agentmods.dev/badge/commands/thierryn/fire-flow/fire-resurrect.svg" alt="Measured on agentmods" height="20"></a>
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 7,848 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.07848
Opus 5 $0.00009 $0.03924
Sonnet 5 $0.00004 $0.01570
Haiku 4.5 $0.00002 $0.00785

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

Security

Grade A, and why

fire-resurrect 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 3d 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-resurrect.md · 860 lines

How it starts

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

/fire-resurrect

Burn the Frankenstein. Rise production-ready. Reverse-engineer INTENT from messy code, ask clarifying questions, then rebuild clean in a new folder.


Purpose

Take a messy "vibe coded" project and autonomously rebuild it into a clean, production-quality application. The source folder is never modified — the rebuild happens in a new target folder using the full Dominion Flow pipeline.

What makes this different from refactoring: Refactoring improves code incrementally. Resurrection Mode burns the old code entirely and rebuilds from extracted INTENT. The result carries the knowledge but none of the accidental complexity.

Reference: @skills-library/_general/methodology/PHOENIX_REBUILD_METHODOLOGY.md

Core pipeline:

AUTOPSY → DATABASE → INTENT → CLARIFY → VISION → REBUILD → COMPARISON

Arguments

arguments:
  --source:
    type: path
    required: true
    description: "Path to the messy source project"
    example: "/fire-resurrect --source C:/Projects/my-app"

  --target:
    type: path
    required: false
    default: "{source}-phoenix"
    description: "Path for the clean rebuild output"
    example: "/fire-resurrect --source ./app --target ./app-v2"

  --migrate:
    type: boolean
    default: false
    description: "Enable stack migration mode (propose alternative tech stacks)"

  --dry-run:
    type: boolean
    default: false
    description: "Run Phases 1-4 only (autopsy + database + intent + clarify). No rebuild."

  --focus:
    type: string
    required: false
    description: "Limit analysis to a specific subsystem"
    example: "/fire-resurrect --source ./app --focus auth"

  --db-strategy:
    type: string
    required: false
    default: "auto"
    description: "Database continuity strategy: 'auto' (detect best), 'reuse' (point to existing), 'clone' (dump+restore), 'fresh' (new empty DB with migrations only), 'skip' (no database)"
    example: "/fire-resurrect --source ./app --db-strategy clone"

Read the full file on GitHub · 860 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. 3d ago First seen · 860 lines · 18 tokens per session scan A 86d6d027ceb5

Subscribe to this mod's changes

fire-resurrect is a command published in the GitHub repository ThierryN/fire-flow (77 stars, last pushed 21d ago), licensed MIT. It adds 18 tokens to every session and 7,848 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.