🚧 📱

Mobile experience coming soon

Mobile development is in progress. Until it is complete, please use your desktop or laptop.

Thanks!

← Back
AI Engineer April 19, 2026

Code Mode: Let the Code do the Talking - Sunil Pai, Cloudflare

Summary

Sunil Pai discusses "code mode," a novel approach to handling AI tool calling at scale by generating executable JavaScript code instead of traditional JSON interactions. By leveraging code generation, developers can overcome context limitations, enable type checking, and utilize the model's extensive training data to execute complex operations more efficiently. The approach, first applied to Cloudflare's massive API surface, offers a powerful alternative to conventional tool calling methods by allowing for looping, state management, sequencing, and parallelization directly within generated code.

View original episode ↗