Giving an agent 10,000 tools with Code Mode

Rhys Sullivan

Cloudflare Connect 2026 · 15 min · October 23, 2026

How do you give an AI agent access to 10,000 tools without filling its context window? Let it write code. This session explores using Code Mode through Executor to discover tools on demand, combine API calls, and process results in a sandbox. Through a live demo built on Cloudflare, learn the architecture, tradeoffs, and approval controls behind this approach. You’ll leave with practical patterns for connecting agents to large tool catalogs while keeping execution efficient and permissions explicit.

Up next in Cloudflare Connect 2026