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

AI Engineer · Beginner ·🏗️ Systems Design & Architecture ·2w ago
Sunil Pai from Cloudflare discusses "Code Mode," an approach to interacting with AI agents where the model generates executable code (such as JavaScript) instead of relying on traditional JSON-based tool calling. This shift allows for more efficient, stateful, and complex system interactions. Speaker info: Sunil Pai created Partykit, the open source tool for real-time multi-player apps. For his day job, he builds AI Agents at Cloudflare. - https://sunilpai.dev/ - blog.cloudflare.com/author/sunil/ - linkedin.com/in/sunil-pai-a47732253/ Timestamps 0:00 Introduction and speaker background 1:16 What is "Code Mode"? 1:31 Limitations of traditional tool calling at scale 2:03 The shift to generating executable code 3:01 Scaling API usage at Cloudflare 4:05 Why code generation is more efficient 5:28 Live demonstration of the Mythical server 7:20 A new way of interacting with systems 9:09 Example: The Kenton canvas and tic-tac-toe anecdote 11:46 New software architecture: The "Harness" 13:28 Observability and security in sandboxed environments 14:15 Long-running workflows and generative UI 16:41 Future outlook: Building for the next generation of users 17:50 The resurgence of capability-based security 18:33 Conclusion and final thoughts
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Related AI Lessons

My Load Balancer Handles 5M RPS: Architecture and Lessons Learned
Learn how to scale your load balancer to handle 5M RPS and the key lessons learned from this experience
Dev.to · speed engineer
ABAP CDS Views Series — Part 9: Hierarchies, Recursive Structures, and Tree-Based Data Modeling in SAP S/4HANA
Learn to model hierarchical and recursive data in SAP S/4HANA using ABAP CDS Views, enabling efficient querying and analysis of complex data structures.
Dev.to · Oktay Ates
Developers Are Building Backends in React Now
Learn how React Server Components and Next.js are changing the way developers build backends for modern web applications
Medium · Programming
Type-Driven Domain Design in Go: Encoding Invariants at Compile Time
Learn how to encode invariants at compile time in Go using type-driven domain design to reduce runtime bugs
Dev.to · Gabriel Anhaia

Chapters (15)

Introduction and speaker background
1:16 What is "Code Mode"?
1:31 Limitations of traditional tool calling at scale
2:03 The shift to generating executable code
3:01 Scaling API usage at Cloudflare
4:05 Why code generation is more efficient
5:28 Live demonstration of the Mythical server
7:20 A new way of interacting with systems
9:09 Example: The Kenton canvas and tic-tac-toe anecdote
11:46 New software architecture: The "Harness"
13:28 Observability and security in sandboxed environments
14:15 Long-running workflows and generative UI
16:41 Future outlook: Building for the next generation of users
17:50 The resurgence of capability-based security
18:33 Conclusion and final thoughts
Up next
Microsoft Access Table Design & Data Integrity
Coursera
Watch →