Routing Engine
How Matching Works
The broker uses pattern matching and confidence scoring:
Task: "summarize the quarterly report"
Skill "summarize":
Patterns: ["summarize", "summary", "tldr"]
Match: "summarize" found → confidence 0.93
Threshold: 0.90
Result: MATCH ✓
Confidence Scoring
| Match Type | Confidence |
|---|---|
| Exact match | 1.0 |
| Keyword match | 0.85-0.95 |
| Partial match | 0.50-0.84 |
| No match | 0.0 |
Threshold Configuration
broker:
confidenceThreshold: 0.90
preferLocal: true
fallbackModel: claude-3-haiku