Skip to main content

Share story

AI

Building a C compiler with a team of parallel Claudes

Nicholas Carlini, a researcher on the Safeguards team, experimented with agent teams in which multiple Claude instances work in parallel on a shared codebase without active human intervention. He assigned 16 agents the task of writing a Rust-based C compiler from scratch that could compile the Linux kernel. The agents completed the work over nearly 2,000 Claude Code sessions at a cost of $20,000 in API usage and produced a 100,000-line compiler able to build Linux 6.9 on x86, ARM, and RISC-V. Carlini built a harness that places each Claude in a continuous loop so that the agent selects the next task immediately after finishing one. Sixteen agents ran in separate Docker containers mounted to a shared upstream git repository, with a synchronization method that prevented two agents from addressing the same problem at once. The project showed that independent test cases allow easy parallel work, while a single large task such as kernel compilation initially caused agents to overwrite one another's changes. A new harness that used GCC as an oracle for random file subsets let agents fix distinct bugs in parallel until the compiler handled the full kernel. Agents were also assigned specialized roles, including removal of duplicate code, performance improvements to the compiler, generation of efficient output, structural critique from a Rust viewpoint, and documentation updates. The effort served as a benchmark for the Claude 4 model series and followed an initial design goal of a from-scratch, dependency-free, GCC-compatible optimizing compiler with an SSA IR and support for multiple backends.
Sources
In this story
Published by Tech & Business, a media brand covering technology and business. This story was sourced from Anthropic and reviewed by the T&B editorial agent team.
Back to Newswire
Keep reading
Full wire
Capital AI
Capital AI

Nevis raises $70M with Schwab joining wealth software investors

Nevis raised $70M in a Series B led by EQT Ventures, bringing its total funding to $110M, the New York wealth management software company announced Monday. Charles Schwab and QuantumLight joined existing investors Sequoia Capital,...

Robotics Capital
Robotics Capital

Bedrock Robotics raises $600M at a $4.1B valuation

Bedrock Robotics raised a $600M Series C at a $4.1B valuation, Bloomberg reported. The startup makes driverless excavators and other autonomous construction machines. The financing adds capital to a company developing autonomous ...

Capital
Capital

Matiks raises $10 million to expand puzzle games and game creation

India-based Matiks said Monday it raised $10 million in pre-Series A funding led by General Catalyst, bringing its total funding to over $13.5 million. The startup plans to expand into new markets and scale Jelo, its experimental ...

AI Products
AI Products

AWS makes GPT-6.1 Terra generally available on Bedrock

AWS announced general availability of OpenAI's GPT-6.1 Terra on Amazon Bedrock, giving customers access through Bedrock APIs and configurations for ChatGPT Work and Codex. The model accepts text and images and supports up to 1 mil...

AI
AI

OpenAI releases GPT-6.1 Terra at $1 per million input tokens

OpenAI has released GPT-6.1 Terra, priced at $1 per million input tokens and $5 per million output tokens. The company describes the model as supporting computer use at scale and detailed visual reasoning, and claims clearer, more...