Skip to content

Framer Says Streaming JavaScript Cuts Agent Tool Steps 43%

Nov 03, 2026
Framer
Article image for Framer Says Streaming JavaScript Cuts Agent Tool Steps 43%

Summary

Framer rebuilt its Agent harness to execute JavaScript while the model still streams it, compiling complete statements into cells that run in a Web Worker. Framer says the change cuts tool steps by 43% and cached input tokens per message by 39%, with runs up to 33% cheaper and 20% faster. Cancelling generation on a failed assumption avoids output-token charges.

Key Points

  • Adam Seckel says complete statements are parsed from the stream and run in order as classic scripts, preserving bindings between cells
  • External agents submit a single program through MCP that runs directly in Framer with synchronous access to the local document
  • Framer plans to adopt the Eager paper's step of removing completed statements from the parse buffer, credited to Singapore Management University researchers

Tags

Read Original Article