Discover and explore top open-source AI tools and projects—updated daily.
chauncyguAI coding assistant source code and architectural study
New!
Top 33.3% on SourcePulse
Summary
This repository archives the decompiled source code of Anthropic's Claude Code CLI tool and presents a clean-room Python rewrite for architectural research. It targets engineers and researchers seeking to understand Claude Code's internal mechanisms, offering a deep dive into its complex architecture, tool system, and multi-agent capabilities. The primary benefit is enabling detailed study and independent reimplementation efforts.
How It Works
The claude-code-source-code subproject provides a decompiled TypeScript archive (v2.1.88) of Claude Code, comprising approximately 163,000 lines. It details the overall architecture, core execution flow, and tech stack (Bun, React/Ink, esbuild, Zod), including over 40 tools and 87 slash commands. Complementing this, claw-code offers a lightweight (~5,000 lines) Python clean-room rewrite. This rewrite focuses on architectural mirroring and research, using snapshot-driven metadata for commands and tools, facilitating architectural understanding without direct code reuse.
Quick Start & Requirements
This repository is primarily for study and research, not direct execution. No installation or run commands for deploying Claude Code are provided. The claude-code-source-code archive would require a Bun/Node.js environment for analysis. The claw-code rewrite requires a Python environment. Links to official quick-start guides or demos are not present, as the focus is on reverse-engineering and architectural reimplementation.
Highlighted Details
claude-code-source-code: A comprehensive decompiled TypeScript archive (v2.1.88) detailing CLI entry, agent loops, tool execution, context management, and a React/Ink terminal UI.claw-code: A rapidly popular Python rewrite (~5K lines) emphasizing architectural mirroring and research, featuring snapshot-driven command/tool metadata and a built-in parity audit.Maintenance & Community
While specific contributor details or community channels are not listed, the repository's recent activity (March-April 2026) and the rapid star growth of the claw-code subproject suggest active development and significant community interest in Claude Code's internals.
Licensing & Compatibility
This repository is strictly for "academic research and educational purposes only." It is built from publicly accessible information, and users are responsible for complying with all applicable laws, regulations, and service terms. No standard open-source license is specified, rendering it incompatible with commercial use or integration into closed-source projects.
Limitations & Caveats
The claude-code-source-code is a decompiled archive, not an officially supported or guaranteed runnable version. The claw-code rewrite is an architectural framework representing approximately 20% functional completeness, intended for research rather than full deployment. Analysis documents highlight potential telemetry, hidden features, and privacy considerations within the original Claude Code.
1 day ago
Inactive