osolmaz / switch
git clone https://github.com/osolmaz/switch.git
v0.1.1 · 3d ago
A TypeScript framework that runs decision models through an agent loop, where code generates finite typed choices and the model picks one per step.
Why you might care
Useful for evals and classifiers where a full chat model is overkill: the model navigates documents or task states and picks from code-generated options, so it reads only what it needs. Works with decision models listed in pi-ai, such as Jev, and with open models served via llama.cpp.
+21
stars, 24h · #1,888
+~572
stars, 7 days · #483
+414
stars, 30 days · #2,517
414
★ total · +572% this week
29
forks · 3 open issues
Star history (as recorded here)
LanguageTypeScript
LicenseMIT
Created2026-10-25 (8d ago)
Last push3d ago
Watchers0
OwnerUser
GitHub topics
Links
- GitHub: github.com/osolmaz/switch
- Releases · Issues · Hacker News mentions
README
Loading README…
Blurb generated by claude-haiku-5-5 3d ago. Star deltas marked ~ are extrapolated from partial history.