Discover and explore top open-source AI tools and projects—updated daily.
KuberwastakenAI coding agent reimplemented in Rust
New!
Top 5.8% on SourcePulse
Summary
This repository provides a clean-room reimplementation in Rust of Anthropic's Claude Code CLI, developed after its source code was inadvertently leaked via an npm sourcemap. The project meticulously reverse-engineers Claude Code's behavior through a two-phase AI-driven process: first, generating exhaustive behavioral specifications, then implementing those specifications in Rust without direct reference to the original TypeScript code. This approach offers a deep technical dive into the architecture, features, and internal workings of a sophisticated AI coding agent, valuable for engineers evaluating similar AI-powered development tools.
How It Works
The project employs a legal and technical strategy known as clean-room engineering. An AI agent analyzed the leaked source to create detailed behavioral specifications, including architecture, data flows, and tool contracts. A separate AI agent then implemented these specifications in Rust, ensuring no proprietary code was directly copied. This method aims to replicate Claude Code's functionality and internal logic while adhering to copyright principles that protect expression, not ideas or behavior. The analysis is presented as commentary on publicly available software, with code excerpts used illustratively under fair use.
Quick Start & Requirements
This repository contains a reimplementation and analysis of Claude Code, not the original executable. Setup instructions for running this specific Rust project are not provided in the README. The original Claude Code utilizes Bun as its bundler.
Highlighted Details
SendUserFile and PushNotification.feature() function) and runtime configuration (GrowthBook, tengu_* flags) to differentiate internal builds from external releases, controlling features like KAIROS, Buddy, and Coordinator Mode.tools/) listing over 40 tools, including shell execution, file operations, web access, LSP communication, and agent/task management, with a sophisticated permission and risk classification system.Maintenance & Community
The analysis and write-up are attributed to Kuber Mehta. No specific community channels, contributor lists, or ongoing maintenance details for the Rust reimplementation are provided.
Licensing & Compatibility
The license for the Kuberwastaken/claurst Rust code is not explicitly stated. The analysis and commentary are presented under fair use (17 U.S.C. § 107). The original Claude Code is proprietary software developed by Anthropic.
Limitations & Caveats
This repository is a reverse-engineered reimplementation based on analysis of leaked source code, not the official Anthropic product. Its accuracy is dependent on the completeness and interpretation of the leaked data. The legal implications surrounding the leak and subsequent analysis may present adoption risks. Certain advanced features like Kairos, Ultraplan, and the Dream System are internal-only and gated, meaning their full behavior might not be perfectly captured or reproducible.
1 day ago
Inactive