Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.7 Home All releases olderv2.1.6 v2.1.8newer
Claude Code v2.1.7

Speculative Execution Infrastructure

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-checkout for fast, lightweight cloning
  • Tracks time saved and tools executed via tengu_speculation telemetry
  • 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.

See this entry in the whole of v2.1.7 →