Multi-Signal Classifier
Analyzes prompts using keywords, structure, verbs, and length to categorize tasks accurately.
Statistical Selector
Uses Wilson confidence intervals and ฮต-greedy exploration to pick the best model while discovering improvements.
Privacy-Aware Storage
SQLite database with automatic secret redaction, retention policies, and optional prompt storage.
Learning System
Learns from every usage and user correction, getting smarter over time.
๐ Files Created
โ src/router/types.ts (152 lines)
โ src/router/classifier.ts (257 lines)
โ src/router/selector.ts (286 lines)
โ src/router/storage.ts (296 lines)
โ src/router/index.ts (93 lines)
โ src/cli/commands/infer.ts (200 lines)
๐งช Test Results
$ verdict infer "Analyze this TypeScript bug" --dry-run --explain
โ Task analyzed
Category: code_review (0% confidence)
Model: qwen2.5:7b
Reason: No performance data yet, using default for code_review
Expected: 7.0/10, ~5000ms
--dry-run: no inference run
Expert-Reviewed Design: Incorporated feedback from ML Engineer, Systems Architect, Product Designer, Data Scientist, and Security Engineer perspectives.