Industry News | 6/10/2025

Cloudflare Utilizes AI to Develop Security Library, Showcasing Human-AI Collaboration

Cloudflare has unveiled a new security library largely developed by Anthropic's AI model, Claude, marking a significant milestone in AI-assisted software engineering. The project highlights the potential of AI in coding while emphasizing the necessity of human oversight for quality assurance.

Cloudflare's AI-Driven Development

Cloudflare, a leading company in web performance and security, has announced the creation of a new software library primarily coded by Anthropic's AI model, Claude. This development marks a significant advancement in AI-assisted software engineering, particularly in the realm of security.

The Project

The project involved developing an OAuth 2.1 provider library for Cloudflare Workers, a critical component for authentication security. Kenton Varda, a lead engineer at Cloudflare, led the initiative. Initially skeptical about AI's coding capabilities, Varda found the AI's output to be surprisingly effective. The library was built using TypeScript/JavaScript and is now available as an open-source project on GitHub, complete with the AI-generated code and the prompts used to guide Claude.

Human-AI Collaboration

The collaboration between human engineers and AI was meticulously documented, providing a transparent view of the development process. This documentation includes the specific prompts given to Claude and the iterative nature of refining its output. Engineers played a crucial role in guiding the AI, correcting errors, and ensuring compliance with security standards.

Challenges and Oversight

Despite the AI's significant contributions, human oversight was essential. Engineers reviewed every line of AI-generated code, cross-referencing it with relevant standards to ensure security and compliance. The AI did introduce some errors, such as a potential security flaw with encryption keys, which were corrected by human reviewers.

Implications for the Industry

This project demonstrates the potential of AI to accelerate development tasks when guided by experienced engineers. It also highlights the limitations of AI, such as difficulties with debugging complex issues and retaining context over multiple iterations. The project suggests a future where AI acts as a tool to augment human engineers, rather than replace them.

Cloudflare's transparency in sharing the development process provides a valuable resource for other organizations exploring AI-assisted development, especially for security-critical applications. As AI models continue to evolve, this project will likely serve as a reference for best practices in leveraging AI for software creation.