name: repo-b-local-comfy-orchestrator
description: Compatibility wrapper for legacy local Comfy orchestration requests in . Route new MCP/Comfy operations to repo-b-mcp-comfy-bridge.
REPO_B Local Comfy Orchestrator (Legacy Wrapper)
Use this wrapper to preserve legacy trigger compatibility.
For all new MCP/Comfy work, use $repo-b-mcp-comfy-bridge.
Workflow
- Detect legacy request intent (
local comfy orchestrator,comfy health check,shim.comfydiagnostics). - Immediately route execution to
$repo-b-mcp-comfy-bridge. - Keep loopback-only and fail-closed defaults unchanged.
- Reuse legacy drop-in scripts only when older automation still calls them directly.
Scope Boundary
Use this skill only as a legacy compatibility wrapper for old local comfy orchestrator triggers.
Do not use this skill for:
- New MCP/Comfy diagnostics (use
repo-b-mcp-comfy-bridge). - Agent bridge guidance/task lanes.
- Thin-waist chat/vision/jobs routing checks.
Legacy Drop-In Hook Files (Still Supported)
These files remain available for backward-compatible automation:
assets/repo_b/tools/local_comfy_orchestrator.py->tools/local_comfy_orchestrator.pyassets/repo_b/tools/local_comfy_validate.py->tools/local_comfy_validate.pyassets/repo_b/tools/local_comfy_orchestrator.example.env->tools/local_comfy_orchestrator.example.envassets/repo_b/tests/tools/test_local_comfy_orchestrator.py->tests/tools/test_local_comfy_orchestrator.pyassets/repo_b/tests/tools/test_local_comfy_validate.py->tests/tools/test_local_comfy_validate.py
Legacy Environment (PowerShell)
$env:REPO_B_LOCAL_COMFY_ORCH_ENABLED = "1"
$env:REPO_B_LOCAL_COMFY_ORCH_FAIL_CLOSED = "1"
$env:REPO_B_LOCAL_COMFY_ORCH_STATUS_MAX_AGE_SECONDS = "60"
$env:REPO_B_LOCAL_COMFY_ORCH_MAX_HINTS = "12"
$env:SHIM_ENABLE_MCP = "1"
$env:SHIM_MCP_HOST = "127.0.0.1"
$env:SHIM_MCP_PORT = "9550"
$env:SHIM_MCP_ALLOW_LAN = "0"
$env:MX3_COMFYUI_ENABLED = "1"
$env:MX3_COMFYUI_BASE_URL = "http://127.0.0.1:8188"
$env:MX3_COMFYUI_TIMEOUT_S = "10"
Legacy Run Command
Run from <PRIVATE_REPO_B> root:
python tools/local_comfy_orchestrator.py \
--task comfy-health-check \
--json-out .codex/local_comfy/comfy-health-check.json \
--repo-root .
Usage Guardrails
Use real usage history before scale-up:
python3 "$CODEX_HOME/skills/usage-watcher/scripts/usage_guard.py" analyze \
--input /path/to/usage.csv \
--window-days 30 \
--format table
python3 "$CODEX_HOME/skills/usage-watcher/scripts/usage_guard.py" plan \
--monthly-budget <credits> \
--reserve-percent 20 \
--work-days-per-week 5 \
--sessions-per-day 3 \
--burst-multiplier 1.5 \
--format table
References
- Canonical path:
$repo-b-mcp-comfy-bridge references/orchestrator-workflow.mdreferences/validation-contract.mdreferences/phase2-prompt-lifecycle-roadmap.md
Loopback
If this lane is unresolved, blocked, or ambiguous:
- Capture current evidence and failure context.
- Route back through
$skill-hubfor chain recalculation. - Resume only after the updated chain returns a deterministic next step.