Code Mode: let the code do the talking
summary
Generates code instead of JSON to let LLMs call tools, reducing context from 1.2 million to 1,000 tokens by replacing 2,500 explicit endpoints with two code-accepting tools search and execute, demonstrated by a chatbot that lists real Cloudflare Workers via a code payload and returns results. Runs user-sent modules inside Cloudflare isolates with capability-scoped bindings, millisecond startup and observable state, and argues this enables per-user ephemeral scripts, but requires strict auditability, fast persistence and careful security controls.
AI-written summary · about
chapters (16)
- 0:00Introduction and welcome
- 1:13AI apps and tool limitations
- 3:00Introducing Code Mode
- 5:08Live demo of Code Mode
- 7:20Implications of user-sent code
- 9:25Programmers vs non-programmers dilemma
- 10:47LLMs as coding buddies
- 13:15Coding agents in applications
- 14:59Sandboxing and security models
- 18:32Spectrum of generated software
- 20:40New software architecture
- 22:07Xerox Park and UI evolution
- 23:54New platform primitives needed
- 24:58JavaScript's future role
- 26:23Breaking the programmer divide
- 26:45Conclusion and Q&A
