@startuml lagrange-local-first !include _lagrange.iuml ' Local-first triage: does the smart field answer locally, or hand off to Claude? ' (see lagrange-local-first-answer.puml for what each outcome does next.) start :Smart field ->\nlocalfirst.startLocalTask(text); :cc-route triage --json; if (hard rule?\n(triage.tsv, or\n>1 project)) then (yes) :decision = claude; elseif (local mode off?) then (yes) :decision = claude; else (undecided) if (asked for local by name?) then (yes) :decision = local; else (no) if (heuristics decide?) then (yes) :decision = local or claude; else (still undecided) :triage_model() ->\nllama-server :8180 (2.5s); :decision = model's verdict; endif endif endif :go to lagrange-local-first-answer.puml; stop @enduml