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
Capital

Redalpine closes €222.53 million fund for European startups

Swiss venture capital firm redalpine announced the final close of its Capital VIII fund at €222.53 million ($250 million), targeting approximately 20 early-stage companies across Europe. New investors include Aviva Investors, Flexstone Partners and KfW.

Infrastructure Policy
Infrastructure Policy

Thailand imposes noise, heat and water rules on data centers

Thailand has imposed new rules governing noise, heat and water at data centers, Bloomberg reported. The environmental restrictions apply to an industry expanding rapidly as investment in artificial intelligence fuels a boom in data center development.

Capital Products
Capital Products

Numina raises €1.1 million to expand free accounting platform

Copenhagen-based Numina has raised €1.1 million in pre-Seed funding to support international expansion and further development of its accounting platform, EU-Startups reported. Participants include Nebular, Emblem and Founders A/S.

AI Capital
AI Capital

GeniosAI raises $19.1 million across seed and Series A rounds

GeniosAI has raised $19.1 million in combined seed and Series A funding, CEO PD Singh told Axios. The company develops AI software for financial analysis and modeling. FactSet led the Series A portion of the financing.