Speculative tool calling: only pre-run calls that provably can't mutate state

CShorten30 · x · 2026-09-03

On the Weaviate Podcast, Alex Zhang explains his speculative programmatic tool calling design: starting tool calls early only helps if the early run can't break anything. His shadow REPL fires calls only on parseable-safe paths, refusing anything that might mutate state, and he'd like to speculate more aggressively by letting the model predict upcoming calls.

Original post →

More from coding & agent

coding & agent channel →