Build log

CLO Companion

Local-first LLM companion for CLO 3D — natural-language garment design with socket bridge or file-based scripting modes.

PythonFastAPICLO3DLLMOllama

Problem

CLO 3D’s scripting API is powerful but opaque. Designers need a faster loop from intent → pattern → iteration without manually writing bridge scripts for every change.

Approach

  • Mode A — Socket bridge: Real-time bidirectional TCP communication with a listener inside CLO’s Python environment.
  • Mode B — File-based: Generate reviewable scripts for air-gapped or cautious workflows.
  • FastAPI backend with Ollama (Llama 3.2) for natural-language garment commands.

Outcome

A separated companion repo with workshop UI, design history, and documented prompt-routing — decoupled from the academic RAG system it originally grew out of.