|
Cloudflare TV

Code Mode: Giving AI Agents an Entire API in 1,000 Tokens (With Demos)

Presented by: João Tomé, Matt Curry
Originally aired on February 27 @ 6:00 AM - 6:30 AM EST

In this episode of This Week in NET, host João Tomé is joined by Matt Curry to break down Code Mode: a way to give AI agents access to the entire Cloudflare API (2,500+ endpoints) using two tools and roughly ~1,000 tokens of context.  

Instead of exposing thousands of individual tools (which quickly becomes expensive and brittle), Code Mode lets the model write JavaScript to search and execute against a compact API context. The result is massive compression, lower cost, and better performance.

We also include demos showing how agents can query real infrastructure, navigate multiple accounts, and build things like multiplayer experiences using Durable Objects and WebSockets.

Mentioned blog posts:

English

Transcript (Beta)

Thumbnail image for video "This Week in NET"
This Week in NET
Tune in for weekly updates on the latest news at Cloudflare and across the Internet. Check back regularly for updates. Also available as an audio podcast!
Watch more episodes 
background