Source: https://internal-agents.com/agents/cloudflare-ai-stack

# Cloudflare — Internal AI engineering stack

Cloudflare's Dev Productivity team runs an internal AI engineering stack built on the company's own products. It puts MCP servers behind one OAuth portal, routes every model request through a gateway, and generates context files across thousands of repos. Every merge request gets an automated multi-agent review.

> This entry describes supporting infrastructure that other work builds on. The catalog classifies it as a platform. The record also reports a workflow.

- Approach type: Platform
- Deployment stage: Scaled
- Autonomy: Drafts reviewed
- Evidence strength: Detailed primary
- Status: Internal
- First reported year: 2026
- Work: Coding, Code review
- Interfaces: Cli, Ci, Web
- Invocation: Event driven, Interactive
- Entry reviewed: 2026-09-15

## Where people stay involved

- **pull request → AI review findings** — Work product review · Level 3

## Overview

### Summary

Cloudflare's Dev Productivity team runs an internal AI engineering stack built on the company's own products. It puts MCP servers behind one OAuth portal, routes every model request through a gateway, and generates context files across thousands of repos. Every merge request gets an automated multi-agent review.

Fact · Reported · High confidence · `cloudflare-ai-stack--summary`

Confidence reason: A linked first-party source states the claim.

Evidence:

- Supports · [1] [The AI engineering stack we built internally](https://blog.cloudflare.com/internal-ai-engineering-stack/) · [Preserved copy](https://github.com/steel-experiments/internal-agents-map/blob/main/archive/sources/cloudflare-ai-stack-source-1/content.md)
- Contextualizes · [2] [Hacker News discussion of Cloudflare's internal AI engineering stack](https://news.ycombinator.com/item?id=47837240) · [Preserved copy](https://github.com/steel-experiments/internal-agents-map/blob/main/archive/sources/cloudflare-ai-stack-source-2/content.md)

## How it works

### Supporting component

One OAuth aggregation point for all MCP tools

Fact · Reported · High confidence · `cloudflare-ai-stack--primitives-0`

Confidence reason: A linked first-party source states the claim.

Evidence:

- Supports · [1] [The AI engineering stack we built internally](https://blog.cloudflare.com/internal-ai-engineering-stack/) · [Preserved copy](https://github.com/steel-experiments/internal-agents-map/blob/main/archive/sources/cloudflare-ai-stack-source-1/content.md)

### Supporting component

Collapse N tool schemas into 2 calls to hold token overhead constant at scale

Fact · Reported · High confidence · `cloudflare-ai-stack--primitives-1`

Confidence reason: A linked first-party source states the claim.

Evidence:

- Supports · [1] [The AI engineering stack we built internally](https://blog.cloudflare.com/internal-ai-engineering-stack/) · [Preserved copy](https://github.com/steel-experiments/internal-agents-map/blob/main/archive/sources/cloudflare-ai-stack-source-1/content.md)

### Supporting component

Structured, generated repo context (runtime, nav, conventions, boundaries, deps)

Fact · Reported · High confidence · `cloudflare-ai-stack--primitives-2`

Confidence reason: A linked first-party source states the claim.

Evidence:

- Supports · [1] [The AI engineering stack we built internally](https://blog.cloudflare.com/internal-ai-engineering-stack/) · [Preserved copy](https://github.com/steel-experiments/internal-agents-map/blob/main/archive/sources/cloudflare-ai-stack-source-1/content.md)

### Supporting component

Multi-agent CI review: risk tiering, specialist agents, Codex-rule citations

Fact · Reported · High confidence · `cloudflare-ai-stack--primitives-3`

Confidence reason: A linked first-party source states the claim.

Evidence:

- Supports · [1] [The AI engineering stack we built internally](https://blog.cloudflare.com/internal-ai-engineering-stack/) · [Preserved copy](https://github.com/steel-experiments/internal-agents-map/blob/main/archive/sources/cloudflare-ai-stack-source-1/content.md)

## Supervision evidence

### Operating model assessment

Level 3 for pull request → AI review findings; human attention boundary: work-product-review.

Inference · Catalog judgment · Medium confidence · `cloudflare-ai-stack--operating-models-0`

Confidence reason: The source documents automated review findings, but the record combines several platform workflows.

Qualifications:

- Observation date: 2026-04-20

Evidence:

- Supports · [1] [The AI engineering stack we built internally](https://blog.cloudflare.com/internal-ai-engineering-stack/) · [Preserved copy](https://github.com/steel-experiments/internal-agents-map/blob/main/archive/sources/cloudflare-ai-stack-source-1/content.md)

## Implementation details

### Sandbox

Dynamic Workers for sandboxed code execution; Sandbox SDK to clone/build/test

Fact · Reported · High confidence · `cloudflare-ai-stack--architecture-sandbox`

Confidence reason: A linked first-party source states the claim.

Evidence:

- Supports · [1] [The AI engineering stack we built internally](https://blog.cloudflare.com/internal-ai-engineering-stack/) · [Preserved copy](https://github.com/steel-experiments/internal-agents-map/blob/main/archive/sources/cloudflare-ai-stack-source-1/content.md)

### Harness

OpenCode + Windsurf clients; Agents SDK (McpAgent + Durable Objects) for stateful sessions

Fact · Reported · High confidence · `cloudflare-ai-stack--architecture-harness`

Confidence reason: A linked first-party source states the claim.

Evidence:

- Supports · [1] [The AI engineering stack we built internally](https://blog.cloudflare.com/internal-ai-engineering-stack/) · [Preserved copy](https://github.com/steel-experiments/internal-agents-map/blob/main/archive/sources/cloudflare-ai-stack-source-1/content.md)

### Model

Workers AI (open-weight, on-platform) + frontier models (Opus, GPT), routed by task

Fact · Reported · High confidence · `cloudflare-ai-stack--architecture-model`

Confidence reason: A linked first-party source states the claim.

Evidence:

- Supports · [1] [The AI engineering stack we built internally](https://blog.cloudflare.com/internal-ai-engineering-stack/) · [Preserved copy](https://github.com/steel-experiments/internal-agents-map/blob/main/archive/sources/cloudflare-ai-stack-source-1/content.md)

### Interfaces

cli, ci, web

Fact · Reported · High confidence · `cloudflare-ai-stack--architecture-interfaces`

Confidence reason: A linked first-party source states the claim.

Evidence:

- Supports · [1] [The AI engineering stack we built internally](https://blog.cloudflare.com/internal-ai-engineering-stack/) · [Preserved copy](https://github.com/steel-experiments/internal-agents-map/blob/main/archive/sources/cloudflare-ai-stack-source-1/content.md)

### Tool access

MCP Server Portal; one OAuth point aggregating 182+ tools from 13 servers; AI Gateway for routing, cost, BYOK, ZDR

Fact · Reported · High confidence · `cloudflare-ai-stack--architecture-tool-access`

Confidence reason: A linked first-party source states the claim.

Evidence:

- Supports · [1] [The AI engineering stack we built internally](https://blog.cloudflare.com/internal-ai-engineering-stack/) · [Preserved copy](https://github.com/steel-experiments/internal-agents-map/blob/main/archive/sources/cloudflare-ai-stack-source-1/content.md)

### Knowledge

Backstage catalog (2,055 services) + AGENTS.md generated across ~3,900 repos

Fact · Reported · High confidence · `cloudflare-ai-stack--architecture-knowledge`

Confidence reason: A linked first-party source states the claim.

Evidence:

- Supports · [1] [The AI engineering stack we built internally](https://blog.cloudflare.com/internal-ai-engineering-stack/) · [Preserved copy](https://github.com/steel-experiments/internal-agents-map/blob/main/archive/sources/cloudflare-ai-stack-source-1/content.md)

### Credentials

Zero API keys on client machines; a Worker injects keys server-side; Cloudflare Access (Zero Trust) auth

Fact · Reported · High confidence · `cloudflare-ai-stack--architecture-credentials`

Confidence reason: A linked first-party source states the claim.

Evidence:

- Supports · [1] [The AI engineering stack we built internally](https://blog.cloudflare.com/internal-ai-engineering-stack/) · [Preserved copy](https://github.com/steel-experiments/internal-agents-map/blob/main/archive/sources/cloudflare-ai-stack-source-1/content.md)

### Context management

Code Mode collapses upstream tool schemas into search + execute, holding token overhead constant at scale

Fact · Reported · High confidence · `cloudflare-ai-stack--architecture-context-mgmt`

Confidence reason: A linked first-party source states the claim.

Evidence:

- Supports · [1] [The AI engineering stack we built internally](https://blog.cloudflare.com/internal-ai-engineering-stack/) · [Preserved copy](https://github.com/steel-experiments/internal-agents-map/blob/main/archive/sources/cloudflare-ai-stack-source-1/content.md)

## Reported metrics

### Headline claim

47.95 million AI requests in 30 days across the internal AI engineering system

Metric · Reported · High confidence · `cloudflare-ai-stack--headline-metric`

Confidence reason: A linked first-party source states the claim.

Qualifications:

- The source does not report the denominator of this figure.
- Reported by: Cloudflare
- Scope: Internal AI engineering requests in the 30 days preceding the report
- Method: Company-reported AI Gateway count for the preceding 30 days
- Observation date: 2026

Evidence:

- Supports · [1] [The AI engineering stack we built internally](https://blog.cloudflare.com/internal-ai-engineering-stack/) · [Preserved copy](https://github.com/steel-experiments/internal-agents-map/blob/main/archive/sources/cloudflare-ai-stack-source-1/content.md) · Preserved content.md, lines 14–20

### Key observation

3,683 internal users (60% of company, 93% of R&D)

Metric · Reported · High confidence · `cloudflare-ai-stack--key-metrics-0`

Confidence reason: A linked first-party source states the claim.

Qualifications:

- Reported by: Cloudflare
- Scope: Active internal AI coding-tool users in the preceding 30 days
- Denominator: Approximately 6,100 employees for company share; R&D organization for R&D share
- Observation date: 2026

Evidence:

- Supports · [1] [The AI engineering stack we built internally](https://blog.cloudflare.com/internal-ai-engineering-stack/) · [Preserved copy](https://github.com/steel-experiments/internal-agents-map/blob/main/archive/sources/cloudflare-ai-stack-source-1/content.md) · Preserved content.md, lines 14–16

### Key observation

47.95M AI requests and 241.37B tokens via AI Gateway in the preceding 30 days

Metric · Reported · High confidence · `cloudflare-ai-stack--key-metrics-1`

Confidence reason: A linked first-party source states the claim.

Qualifications:

- The source does not report the denominator of this figure.
- Reported by: Cloudflare
- Scope: Internal AI requests and AI Gateway tokens in the preceding 30 days
- Method: Reported request counts and AI Gateway token counts
- Observation date: 2026

Evidence:

- Supports · [1] [The AI engineering stack we built internally](https://blog.cloudflare.com/internal-ai-engineering-stack/) · [Preserved copy](https://github.com/steel-experiments/internal-agents-map/blob/main/archive/sources/cloudflare-ai-stack-source-1/content.md) · Preserved content.md, lines 14–20

### Key observation

10,952 merge requests in the week of March 23, 2026, nearly double the Q4 baseline; four-week average above 8,700

Metric · Reported · High confidence · `cloudflare-ai-stack--key-metrics-2`

Confidence reason: A linked first-party source states the claim.

Qualifications:

- The source does not report the denominator of this figure.
- Reported by: Cloudflare
- Scope: Company merge requests in the week of March 23, 2026, versus Q4 baseline; not agent-authored PRs
- Method: Weekly merge-request count; distinct from the four-week rolling average
- Observation date: 2026-03

Evidence:

- Supports · [1] [The AI engineering stack we built internally](https://blog.cloudflare.com/internal-ai-engineering-stack/) · [Preserved copy](https://github.com/steel-experiments/internal-agents-map/blob/main/archive/sources/cloudflare-ai-stack-source-1/content.md) · Preserved content.md, lines 25–29

### Key observation

295 teams using agentic AI tools

Metric · Reported · High confidence · `cloudflare-ai-stack--key-metrics-3`

Confidence reason: A linked first-party source states the claim.

Qualifications:

- The source does not report the denominator of this figure.
- Reported by: Cloudflare
- Scope: Teams using agentic AI tools and coding assistants in the reported 30-day snapshot
- Observation date: 2026

Evidence:

- Supports · [1] [The AI engineering stack we built internally](https://blog.cloudflare.com/internal-ai-engineering-stack/) · [Preserved copy](https://github.com/steel-experiments/internal-agents-map/blob/main/archive/sources/cloudflare-ai-stack-source-1/content.md) · Preserved content.md, lines 14–18

## Lessons and interpretation

### Lesson

Centralize through a proxy early; direct-to-gateway looks simpler but blocks per-user attribution, model cataloging, and policy later

Inference · Catalog judgment · Medium confidence · `cloudflare-ai-stack--lessons-learned-0`

Confidence reason: The catalog derives this observation from the linked sources.

Evidence:

- Supports · [1] [The AI engineering stack we built internally](https://blog.cloudflare.com/internal-ai-engineering-stack/) · [Preserved copy](https://github.com/steel-experiments/internal-agents-map/blob/main/archive/sources/cloudflare-ai-stack-source-1/content.md)

### Lesson

Without structured data, agents are working blind; they read code but can't see the system around it (Backstage / AGENTS.md)

Inference · Catalog judgment · Medium confidence · `cloudflare-ai-stack--lessons-learned-1`

Confidence reason: The catalog derives this observation from the linked sources.

Evidence:

- Supports · [1] [The AI engineering stack we built internally](https://blog.cloudflare.com/internal-ai-engineering-stack/) · [Preserved copy](https://github.com/steel-experiments/internal-agents-map/blob/main/archive/sources/cloudflare-ai-stack-source-1/content.md)

### Lesson

Tool schemas eat context (34 GitLab tools ≈ 7.5% of a 200K window); collapse them at the portal

Inference · Catalog judgment · Medium confidence · `cloudflare-ai-stack--lessons-learned-2`

Confidence reason: The catalog derives this observation from the linked sources.

Evidence:

- Supports · [1] [The AI engineering stack we built internally](https://blog.cloudflare.com/internal-ai-engineering-stack/) · [Preserved copy](https://github.com/steel-experiments/internal-agents-map/blob/main/archive/sources/cloudflare-ai-stack-source-1/content.md)

### Lesson

Frontier + open-source hybrid: route a growing share of workloads to cheaper self-hosted models

Inference · Catalog judgment · Medium confidence · `cloudflare-ai-stack--lessons-learned-3`

Confidence reason: The catalog derives this observation from the linked sources.

Evidence:

- Supports · [1] [The AI engineering stack we built internally](https://blog.cloudflare.com/internal-ai-engineering-stack/) · [Preserved copy](https://github.com/steel-experiments/internal-agents-map/blob/main/archive/sources/cloudflare-ai-stack-source-1/content.md)

## Sources

1. [The AI engineering stack we built internally](https://blog.cloudflare.com/internal-ai-engineering-stack/)
   - Engineering blog · First party · Evidence
   - Original URL: <https://blog.cloudflare.com/internal-ai-engineering-stack/>
   - Accessed: 2026-08-12 · Last verified: 2026-08-31
   - Preserved copy in the repository: <https://github.com/steel-experiments/internal-agents-map/blob/main/archive/sources/cloudflare-ai-stack-source-1/content.md>
2. [Hacker News discussion of Cloudflare's internal AI engineering stack](https://news.ycombinator.com/item?id=47837240)
   - Hn thread · Community · Commentary
   - Original URL: <https://news.ycombinator.com/item?id=47837240>
   - Published: 2026-04-20 · Accessed: 2026-08-12 · Last verified: 2026-08-31
   - Preserved copy in the repository: <https://github.com/steel-experiments/internal-agents-map/blob/main/archive/sources/cloudflare-ai-stack-source-2/content.md>
