Claude-Code  by pengchengneo

Reconstructed Claude Code CLI for local execution and advanced AI agent capabilities

Created 1 week ago

New!

1,133 stars

Top 33.7% on SourcePulse

GitHubView on GitHub
Project Summary

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

  • Primary install/run command: bun install followed by bun run dev.
  • Prerequisites: Bun version ≥ 1.3.5, Node.js version ≥ 24.
  • Links: No specific quick-start or demo links are provided beyond the commands themselves.

Highlighted Details

  • BUDDY: An AI virtual pet system with 18 species, 5 rarity levels, deterministic generation, and ASCII animations, controlled via /buddy commands.
  • KAIROS: A persistent "never-shut-down" assistant mode enabling cross-session state persistence, daily logging, and background "auto-dream" memory consolidation.
  • ULTRAPLAN: A cloud-based deep planning feature allowing the Opus model to conduct up to 30 minutes of independent research on complex prompts, with results teleported back locally.
  • Coordinator Mode: Enables multi-agent orchestration where a central Coordinator delegates tasks to Worker agents running in parallel subprocesses.
  • Extensive Feature Gating: Over 50 compile-time feature flags and remote GrowthBook controls, alongside internal-only commands and user types (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.

Health Check
Last Commit

1 week ago

Responsiveness

Inactive

Pull Requests (30d)
2
Issues (30d)
15
Star History
1,142 stars in the last 11 days

Explore Similar Projects

Feedback? Help us improve.