# ComfyUI-Koolook Agent Workflow ## Source-of-truth model - MAIN repo: `ComfyUI-Koolook` - External forks root (default): `../ComfyUI-Forks` (relative to MAIN) - External third-party code must remain outside MAIN. - Sibling projects (read-only references that live outside MAIN) are referenced via `KOLOOK_*` env vars only. Never hardcode absolute paths with usernames in committed files. Real paths live in `.env` (gitignored); the committed `.env.example` is the public template. See README "Sibling Projects" and `docs/reference/glossary.md`. ## Hard rules - Do not vendor/copy full third-party repositories into MAIN. - Keep MAIN limited to: - custom Koolook nodes - wrapper loaders under `forks/` - fork tracking docs under `forks/` - For third-party integrations, update: - `forks/forks_manifest.yaml` - `forks/THIRD_PARTY.md` - `forks/README.md` (if workflow conventions change) ## Radiance fork policy (v2_3_3) - Package entrypoint: `forks/radiance_koolook/__init__.py` - Modified nodes live in MAIN and are GitHub-tracked: - `forks/radiance_koolook/versions/v2_3_3/nodes_vae.py` - External sibling checkout (`../ComfyUI-Forks/radiance-v2.3.3-koolook`) is raw reference only. - Current baseline pin for raw comparison: `f262f47ddfda01ece154bf80c22769b1e4cef795` (the v2.3.3 release commit; the cleanest tag pointing at it is the typo'd `radinace2.3.3`, so we pin by SHA). - Koolook-original node IDs (`Easy_hdr_VAE_encode`, `Easy_hdr_VAE_decode`) are exposed verbatim via the `SKIP_VERSION_SUFFIX` set in `versions/v2_3_3/__init__.py`. Future Koolook nodes in this fork can opt out the same way; future ports of upstream-named classes should keep the `__koolook_v2_3_3` suffix to avoid colliding with installed copies of upstream Radiance. - `forks/forks_manifest.yaml` must include `source_ref` + `pinned_commit` + `license` + `license_verified_at`. - The historical `v1_0_1` fork was removed in v0.1.5 — see `forks/THIRD_PARTY.md` for the rationale and recovery instructions. ## Change management - When upgrading external forks (v2, v3, etc.), add a new wrapper/version namespace. - Never rename existing namespaced node IDs that already appear in saved workflows. ## `dev-sync` — copy runtime files into a live ComfyUI install Fast iteration without cutting a release. Copies runtime files to `KOLOOK_COMFYUI_DEV_PATH` (set in `.env`; see `.env.example`). - `python scripts/sync_to_dev.py --scope ""` — brief two-line summary; use `-v` for per-file output - `--dry-run` — preview without touching the target **Always pass `--scope`** with the same ≤10-word scope summary you'll put on chat-report line 2. The flag persists the scope to `/web/_dev_build.json`, which the Kforge Labs sidebar reads on load and renders as a discreet two-line footer (`dev ·