@startuml lagrange-local-first-answer !include _lagrange.iuml ' What happens after the triage decision from lagrange-local-first.puml: a local answer ' (with an escalation check) or a hand-off to Claude (queued if offline). start if (decision == local?) then (yes) :cchist ask --tool --stream\n(local model, streamed into the ask card); :cc-route post-check --json\n(low score / uncited project -> escalate); if (escalate?) then (yes) :giveLocalToClaude() -> join the Claude path; else (no) stop endif else (claude) endif :localfirst.sendDirectToClaude(text, model); if (net.online() == false?) then (yes) :net.enqueue(project, text) ->\n~/.cache/claude-cowork/queue/; :panel shows "Local mode" banner; :network back -> notify "Send" ->\ncwin opens a Claude tab per task; else (online) :hs.task cwin --model \n(new Claude tab, argv only); endif stop @enduml