StefInDev times a decision model against Claude Haiku, then changes how the calls are scheduled. The walkthrough also shows where to put model judgments in an agent and what to leave to ordinary code.
5:25 — Time the path that actually waits
- In the presenter’s test, Jev took about 0.2 seconds per decision and Haiku took about one second when run one after another. The video doesn’t give enough timing detail to treat that as a general speed ratio. The results were not independently reproduced.
- A chain of dependent calls has to wait for each result. Independent calls can overlap. TypeSafe also lets you batch independent questions about the same input so that the shared input is sent once.
“Then I tried running everything in parallel, and the speed gap pretty much disappeared.” — StefInDev, around 5:37
10:35 — Let code do the exact checks
- A citation checker can look up the quoted string first. If the quote exists, ask whether the surrounding text supports the claim. The demo pairs a real quote with a claim that reverses its meaning.
- For extraction, code collects candidate values from the source. Jev can select one and the program copies it verbatim. A valid pick still depends on the right value being in the menu.
15:53 — Check whether the menu applies
- In a TypeSafe example replayed in the video, Jev labels a lamp complaint “desk” when the only choices are desk, chair and monitor arm.
- Ask separately whether the complaint is about any product the shop sells. Code can ignore the forced pick and use the general queue when the answer says no.
Caveat: These are small demos and a presenter-reported timing comparison. Test correctness, review rates and waiting time on your own inputs before relying on the route.