Discover and explore top open-source AI tools and projects—updated daily.
pengchengneoReconstructed Claude Code CLI for local execution and advanced AI agent capabilities
New!
Top 33.7% on SourcePulse
This repository provides a restored, runnable TypeScript source code version of Anthropic's Claude Code CLI, derived from its npm package's source maps. It targets developers and researchers interested in understanding and locally running a powerful AI assistant, offering a glimpse into advanced, often hidden, features not present in the official release, thereby enabling deeper technical study and experimentation.
How It Works
The project reconstructs the full TypeScript source code by extracting content from the source maps of the official @anthropic-ai/claude-code npm package. This restored code is then made runnable locally. A key architectural choice involves extensive feature gating using compile-time flags (e.g., feature('BUDDY')) and user type checks (USER_TYPE), allowing Anthropic to control feature availability and enabling this repository to reveal and activate many "hidden" functionalities.
Quick Start & Requirements
bun install followed by bun run dev.Highlighted Details
/buddy commands.ant vs. external), reveal a significantly more capable underlying system than publicly released.Maintenance & Community
This repository is a restoration of an existing package and is not an actively maintained project by Anthropic. Community interaction details (like Discord/Slack) are not provided.
Licensing & Compatibility
The source code copyright belongs to Anthropic. The repository explicitly states it is for research and learning purposes only and should not be used for commercial applications.
Limitations & Caveats
This is a non-official, restored version derived from source maps, intended solely for research. Many advanced features are gated by internal flags or user types and may not be fully functional or accessible in the restored external version. Commercial use is prohibited.
1 week ago
Inactive