fastRoute

fun fastRoute(query: String, index: AppIndex): Plan?(source)

Tier-0 deterministic router. The obvious ~70% of launcher commands — "open X", "call ", "set alarm for 7", "set a 10 minute timer", "turn on wifi" — don't need an LLM. This resolves them in microseconds with no model load, so the model only ever runs for compositional, conversational or ambiguous input.

It is deliberately conservative: it fires only on high-confidence matches and bails (returns null) on anything compound ("… and …"), a contact-name call, or an unresolved app — those fall through to the model.