What
Claude Code can now speculatively execute tool calls while waiting for user input, using isolated git clones to avoid affecting your working directory.
Details
- Creates temporary
speculation-clones/speculation-{id}directories for isolated execution - Uses
git clone --shared --no-checkoutfor fast, lightweight cloning - Tracks time saved and tools executed via
tengu_speculationtelemetry - Changes from accepted speculations are copied back to the main worktree
- Read operations outside git root are allowed; writes outside git root are blocked
- Speculation aborts cleanly on user input or errors
- Displays time saved indicator (e.g.,
▶▶ 5s) when speculation completes
Evidence
g19() at line 460815 (speculation entry point, contains "speculation-clones")
Strings lifted out of the shipped bundle, so the claim above can be checked against them.