Speculative Programmatic Tool Calling Speeds Up Code Agents by 1.2x
a1zhang · x · 2026-08-26
Alex Zhang introduces "Speculative Programmatic Tool Calling" (sPTC), a harness-level trick to reduce latency in code agents. By speculatively executing tool calls parsed from partial code generations while the model is still streaming, sPTC overlaps high-latency sub-LLM/sub-agent calls with token generation. A "shadow REPL" tracks dependencies safely. Experiments show this achieves 1.2x wall-clock time speed-ups without modifying the model or agent logic.
More from coding & agent
- How Much Agent Swarm Hype Is Just Distributed Systems Rediscovered? — edgarpavlovsky · 2026-11-30
- Know PyTorch vs. Know What PyTorch Does: A 5-Step Learning Path — cneuralnetwork · 2026-11-30
- PAL adds E2EE multi-machine remote memory for Claude Code with BYO S3 — rchardkovacs · 2026-11-30
- Reddit asks: did anyone keep autoresearch agent loops in daily workflows? — Jumpy-Cobbler1020 · 2026-11-30
- Dev ports 4 Obsidian plugins to Antigravity native plugins, all open-sourced on GitHub — vista8 · 2026-11-30
- Tactile sensing remains fragmented across 18 sensors; year-long push for a ROS 2 standards working group finds no takers — kscottz · 2026-11-30