| name | wan2gp-operator |
| description | Codex-first operations suite for Wan2GP. Assesses installation readiness, plans or executes setup, composes Wan2GP settings JSON from natural-language prompts with VRAM-aware defaults, runs `wgp.py --process` headless jobs, diagnoses failures, checks/summarizes upstream releases, reports current open-source model guidance, and orchestrates music-video pipelines from an audio track. Use when user says "set up wan2gp", "is my machine good for wan2gp", "run this wan2gp queue", "generate wan2gp settings from this prompt", "wan2gp failed", "check wan2gp updates", "what changed in the new wan2gp release", "make a music video from this song", "beat-sync wan2gp clips", or "what is the hottest open source video model".
|
Wan2GP Operator
Run Wan2GP from terminal as a guided operating layer over the UI and headless
engine. The user should not have to choose every WanGP setting by hand. Use this
skill as the agent interface: install or update WanGP, compose VRAM-aware
settings, dry-run, execute headless jobs, inspect logs, diagnose failures, and
retry with safer flags when the run proves a setting is unsupported.
Process
Step 1: Assess Readiness (Before Install)
Run:
python scripts/wan2gp_operator.py bootstrap
Use output verdict:
recommended: proceed with standard setup
possible_with_constraints: proceed with conservative presets
not_recommended: explain blockers before install
Step 2: Setup or Update Wan2GP
One-command from-scratch install + launch:
python scripts/wan2gp_operator.py bootstrap --execute --launch-ui
Manual setup plan (defaults to ./runtime/Wan2GP if path omitted):
python scripts/wan2gp_operator.py setup
python scripts/wan2gp_operator.py setup --execute
Launch UI later:
python scripts/wan2gp_operator.py launch-ui --wan-root <WAN2GP_ROOT>
Step 3: Compose Settings from Prompt
Generate process JSON from natural-language intent:
python scripts/wan2gp_operator.py compose \
--prompt "<PROMPT>" \
--quality balanced \
--duration-seconds 5
For the current hot open-source audio-video target:
python scripts/wan2gp_operator.py compose \
--model ltx23-dev-22b \
--quality quality \
--prompt "<PROMPT>"
For faster LTX-2.3 iteration:
python scripts/wan2gp_operator.py compose \
--model ltx23-distilled-22b \
--quality balanced \
--prompt "<PROMPT>"
Step 4: Build and Validate Headless Plan
Plan run:
python scripts/wan2gp_operator.py plan \
--wan-root <WAN2GP_ROOT> \
--process <QUEUE_OR_SETTINGS_FILE_OR_COMPOSED_JSON> \
--output-dir <OUTPUT_DIR>
Dry-run:
python scripts/wan2gp_operator.py run \
--wan-root <WAN2GP_ROOT> \
--process <QUEUE_OR_SETTINGS_FILE_OR_COMPOSED_JSON> \
--output-dir <OUTPUT_DIR> \
--dry-run
Step 5: Run Batch Generation
Full run with logs:
python scripts/wan2gp_operator.py run \
--wan-root <WAN2GP_ROOT> \
--process <QUEUE_OR_SETTINGS_FILE_OR_COMPOSED_JSON> \
--output-dir <OUTPUT_DIR> \
--log-file <LOG_FILE>
Step 6: Diagnose Failures
Run:
python scripts/wan2gp_operator.py diagnose --log-file <LOG_FILE>
Step 7: Track New Releases
Run:
python scripts/wan2gp_operator.py updates --wan-root <WAN2GP_ROOT>
Step 8: Check Current Model Guidance
Run:
python scripts/wan2gp_operator.py models
python scripts/wan2gp_operator.py models --wan-root <WAN2GP_ROOT>
As of 2026-05-10, use LTX-2.3 22B as the hot general open-source audio-video
target, ACE-Step 1.5 XL LM 4B as the high-quality local music target, and
Wan 2.2 14B as the strongest Wan-family workhorse inside WanGP.
Step 9: Evolve Capability State
Inspect learned compatibility and ingest failed logs:
python scripts/wan2gp_operator.py evolve --wan-root <WAN2GP_ROOT>
python scripts/wan2gp_operator.py evolve --wan-root <WAN2GP_ROOT> --log-file <LOG_FILE>
run now auto-retries once for known CLI incompatibilities and stores learned state
in <WAN2GP_ROOT>/.wan2gp_operator_state.json.
It also learns unsupported attention backends from logs and auto-falls back to sdpa.
Step 10: Build A Music Video Pipeline
Single command:
python scripts/wan2gp_operator.py music-video \
--audio <SONG_FILE> \
--theme "<CREATIVE_DIRECTION>" \
--model ltx23-distilled-22b \
--wan-root <WAN2GP_ROOT> \
--execute-generation \
--evolve-on-failure
Stage commands:
python scripts/wan2gp_operator.py music-analyze --audio <SONG_FILE>
python scripts/wan2gp_operator.py music-plan --analysis <AUDIO_ANALYSIS_JSON> --theme "<CREATIVE_DIRECTION>"
python scripts/wan2gp_operator.py music-generate --plan <PLAN_JSON> --wan-root <WAN2GP_ROOT> --execute-generation
python scripts/wan2gp_operator.py music-assemble --audio <SONG_FILE> --manifest <GENERATION_MANIFEST_JSON>
Quality Gates
Before marking a run as complete:
Output Contract
Return:
- Exact command used
- Settings file path (if composed)
- Output directory (if provided)
- Exit status and elapsed time
- If failed: root causes and next command to try
- If update exists: version, highlights, and safe update commands
- If model guidance was requested: hot model, practical default, and why
- If auto-adjusted: include retry attempts, applied adjustments, and state file path
Codex Notes
- Codex trigger: description routing or
$wan2gp-operator
- Use
python scripts/wan2gp_operator.py <command> as primary interface
- Use direct scripts only when user asks for low-level control
Reference Files
Load on-demand as needed:
references/codex-workflows.md -- Codex-first command cookbook
references/headless-runbook.md -- End-to-end queue workflow
references/performance-guide.md -- VRAM-to-settings decision table
references/multi-platform-install.md -- install path notes
Examples
Example: First-Time Setup
User says: "Install Wan2GP if my machine can handle it."
Actions:
wan2gp_operator.py bootstrap
wan2gp_operator.py bootstrap --execute --launch-ui
- If blocked, explain readiness blockers and alternatives
Example: Terminal-First Prompt Flow
User says: "Make a 6-second cinematic rain alley clip, no UI clicking."
Actions:
wan2gp_operator.py compose --prompt ... --duration-seconds 6
wan2gp_operator.py run ... --dry-run
wan2gp_operator.py run ... --log-file ...
Example: Update Intelligence
User says: "Did Wan2GP ship anything important this week?"
Actions:
wan2gp_operator.py updates --wan-root ...
- Summarize highlights in plain language
- Provide update commands if newer version exists
Example: Current Model Recommendation
User says: "What should I run on a 128GB DGX/GX10?"
Actions:
wan2gp_operator.py models
- Recommend LTX-2.3 22B for audio-video or Wan 2.2 14B for Wan-family generation
- Use
compose --model ltx23-dev-22b --quality quality unless the user wants fast iteration
Example: Recursive Improvement
User says: "It failed again, make it learn and retry smarter."
Actions:
wan2gp_operator.py run ... --log-file ...
wan2gp_operator.py evolve --wan-root ... --log-file ...
- Rerun with evolved recommendations (or rely on auto-adjust retry behavior)
Example: Music Video From A Song
User says: "Take this track and make a cohesive music video."
Actions:
wan2gp_operator.py music-video --audio ... --theme ... --wan-root ... --execute-generation
- If quality is weak, rerun with
--evolve-on-failure and adjusted theme
- Return output video path plus plan/manifest files