Multi-step guided interactive workflows that walk users through complex tasks

Overview

Wizards are interactive, multi-step workflows that guide a user through a complex development task by breaking it into sequential steps — questions that collect input, LLM calls, task decomposition, and review/confirm gates. Each wizard runs to a WizardResult carrying the collected data, generated output, and cost/duration metrics.

The registry is a set of module-level functions in attune.wizards (there is no registry class): list_wizards(), get_wizard(id), register_wizard(...), save_custom_wizard(...), and delete_custom_wizard(...). Five wizards ship built in — debug, refactor, release-prep, security, and test-gen.

You reach wizards two ways:

There is no attune wizard CLI command and no MCP tool — wizards run through the Python API or the skill. A wizard's run() method is asyncawait it.

Concepts

The four core types

Type Role
WizardStep One step — id, name, description, step_type, an optional prompt_template, questions, a tier, and a condition.
WizardConfig Wizard metadata — wizard_id, name, description, domain, version, source, estimated_cost_range, estimated_duration_minutes.
BaseWizard Abstract base all wizards inherit from; drives step execution via the async run() method.
WizardResult The outcome — wizard_id, run_id, success, steps_completed, collected_data, generated_output, tasks, total_cost, total_duration_ms, error.

Step types

A step's step_type is a StepType: question (collect user input), llm_call (run a model call), task_decompose (break work into an XML task tree via TaskDecomposer), review, preview, and confirm (human gates). The wizard walks the steps in order, honoring each step's optional condition.

Running a built-in wizard

get_wizard(id) returns the wizard class (or None); instantiate it and await its run():

A subclass customizes two hooks: build_prompt_context(step) (prepare the model prompt) and process_step_result(step, result) (handle a step's output).

The built-in wizards

list_wizards() returns the registered WizardConfigs. Five ship built in:

wizard_id Class Guides
debug DebugWizard Systematic debugging, step by step.
refactor RefactorWizard Code restructuring with safety checks.
release-prep ReleasePrepWizard Release preparation and validation.
security SecurityWizard Guided security audit with risk assessment.
test-gen TestGenWizard Interactive test-suite generation.

Custom wizards — subclass or config-driven

Two ways to add a wizard: