sPTC speculatively launches tool calls during code generation, speeding agents 1-1.2x
dair_ai · x · 2026-08-25
Recommended by dair.ai, Speculative Programmatic Tool Calling (sPTC) comes from the same author as RLM, targeting the agent harness layer.
The problem: harnesses make agents wait — the model streams a code block, and tool calls inside it only run once generation finishes, so tool latency stacks on top of token generation time.
The approach: sPTC speculates on upcoming tool calls mid-generation and launches the safe ones early against a copy of the environment, overlapping tool latency with token generation; bad guesses are simply thrown away.
Results: a 1–1.2x speedup so far, described as very promising, with many more harness-layer efficiency gains possible.
More from coding & agent
- Ex-Citadel MD: AI will automate equity long-short workflows within 3 years; job seekers should build eval suites — _AustinCalvert_ · 2026-11-30
- Why Google bans users: wrapping Gemini CLI in Claude Code violates consumer ToS — thomasahle · 2026-11-30
- After two Claude account bans, a dev switches to Google AI and moves his Anthropic stock bets to Google — yangyi · 2026-11-30
- Antigravity remote control may not be enabled for enterprise accounts — gharik · 2026-11-30
- How Much Agent Swarm Hype Is Just Distributed Systems Rediscovered? — edgarpavlovsky · 2026-11-30
- Redditor asks if autoresearch agent loops are still used daily as the hype fades — Jumpy-Cobbler1020 · 2026-11-30