{"slug": "bifrost-and-cloudflare-both-replaced-tool-catalogs-with-code-generation-the-is-a", "title": "Bifrost and Cloudflare Both Replaced Tool Catalogs with Code Generation. The Agent Tooling Layer Is Standardizing on a Pattern Nobody Named.", "summary": "Bifrost, the open-source AI gateway from Maxim AI, and Cloudflare's Agents SDK independently replaced large MCP tool catalogs with direct code generation, converging on an architecture that cuts input token consumption by 92.8% and roughly 81% respectively. Bifrost's Code Mode, released in February 2025, exposes four generic tools and a Starlark sandbox where the agent writes code; Cloudflare's Code Mode, also introduced in February 2025 and updated through October 2026, lets LLMs write TypeScript against a typed SDK executed in a sandboxed Worker via the Dynamic Worker Loader API. The convergence signals the agent tooling layer is shifting from declarative tool catalogs to imperative code execution, a direction Anthropic's engineering team described in November 2025 as a natural extension of the tool-use paradigm.", "body_md": "Two independent infrastructure vendors arrived at the same architectural conclusion within months of each other, and the agent tooling layer is quietly standardizing on a pattern that nobody has formally named. Bifrost, the open-source AI gateway from Maxim AI, and Cloudflare, through its Agents SDK, both replaced large MCP tool catalogs with direct code generation. The convergence is not a coincidence. It is a structural signal that the tooling layer is shifting from declarative configuration to imperative execution.\n\nThe mechanism is straightforward but significant. Traditional agent architectures rely on tool catalogs – long lists of predefined functions that an LLM can call. Each tool requires a description, a schema, and sometimes a complex chain of dependencies. As agents grow more capable, these catalogs balloon. The input tokens consumed by tool descriptions alone become a significant cost center. Both Bifrost and Cloudflare independently concluded that the solution is to let the agent write code instead of calling tools.\n\nBifrost’s Code Mode, released in February 2025, replaces large MCP tool catalogs with four generic tools. Instead of presenting the LLM with hundreds of specific tool definitions, Bifrost exposes a [Starlark sandbox](https://www.getmaxim.ai/bifrost/blog/bifrost-mcp-gateway-access-control-cost-governance-and-92-lower-token-costs-at-scale) where the agent writes code directly. Starlark is a Python subset designed for safe, deterministic execution. The result is a 92.8% reduction in input tokens. The agent does not need to know about every tool; it needs to know how to write code that accomplishes the task.\n\nCloudflare’s Code Mode, part of the [open-source Agents SDK](https://github.com/cloudflare/agents), takes a different runtime path to the same architectural conclusion. Introduced in February 2025 and updated through October 2026, Cloudflare’s approach lets LLMs write TypeScript against a typed SDK and execute in a sandboxed Worker via the Dynamic Worker Loader API. The token reduction is approximately 81%. The agent writes code that runs in a production-grade serverless environment, not a sandboxed Python interpreter.\n\nThe convergence matters because these are not incremental improvements to existing tool catalogs. They represent a fundamental shift in how agents interact with external systems. As [Anthropic’s own engineering team noted](https://www.anthropic.com/engineering/code-execution-with-mcp) in November 2025, code execution with MCP is a natural extension of the tool-use paradigm. But Bifrost and Cloudflare went further: they made code execution the primary interface, not an optional extension.\n\nThis pattern connects directly to the [infrastructure bottleneck thesis](https://forkast.news/tgvp-infrastructure-not-model-quality-is-the-primary-bottleneck-to-enterprise-ai-agent-adoption/) that the industry is now grappling with. The TGVP report identified four layers that need to mature: memory, execution, tooling, and governance. The tooling layer is the one that determines how efficiently agents can interact with external systems. If every agent call requires loading a full tool catalog into context, the cost and latency scale linearly with the number of available tools. Code generation breaks that dependency. The agent can access any tool through code, regardless of whether it was explicitly listed in the catalog.\n\nFor builders, the practical implication is clear: the tooling layer is standardizing on code-generation-over-tool-calling. Whether you use Bifrost’s Starlark sandbox or Cloudflare’s TypeScript Workers, the architectural direction is the same. The tool catalog as the primary interface is being replaced by a more flexible, more efficient, and more scalable paradigm. The question is no longer whether agents should write code instead of calling tools. The question is which runtime will dominate the emerging pattern.", "url": "https://wpnews.pro/news/bifrost-and-cloudflare-both-replaced-tool-catalogs-with-code-generation-the-is-a", "canonical_source": "https://forkast.news/bifrost-and-cloudflare-both-replaced-tool-catalogs-with-code-generation-the-agent-tooling-layer-is-standardizing-on-a-pattern-nobody-named/", "published_at": "2026-10-19 13:35:54+00:00", "updated_at": "2026-10-19 13:47:39.230003+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "agent-protocols", "developer-tools", "ai-infrastructure"], "entities": ["Bifrost", "Maxim AI", "Cloudflare", "Cloudflare Agents SDK", "Starlark", "Dynamic Worker Loader API", "Anthropic", "MCP"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/bifrost-and-cloudflare-both-replaced-tool-catalogs-with-code-generation-the-is-a", "markdown": "https://wpnews.pro/news/bifrost-and-cloudflare-both-replaced-tool-catalogs-with-code-generation-the-is-a.md", "text": "https://wpnews.pro/news/bifrost-and-cloudflare-both-replaced-tool-catalogs-with-code-generation-the-is-a.txt", "jsonld": "https://wpnews.pro/news/bifrost-and-cloudflare-both-replaced-tool-catalogs-with-code-generation-the-is-a.jsonld"}}