Discover and explore top open-source AI tools and projects—updated daily.
T-Lab-CUHKSZBuildable Claude Code research fork
New!
Top 94.3% on SourcePulse
This project provides a buildable, modifiable, and runnable fork of the Claude Code source, reconstructed from a publicly exposed snapshot. It targets researchers and power users needing to inspect, adapt, or extend the Claude Code system. The primary benefit is enabling functional experimentation with a previously non-compilable codebase.
How It Works
This fork reconstructs the build system (package.json, tsconfig.json, etc.) for a Claude Code source snapshot leaked via npm source map. It utilizes Bun as the runtime and TypeScript for development, adding minimal stubs for over 100 missing internal or feature-gated modules to allow the build to complete. The core architecture features an agentic loop (query.ts, QueryEngine.ts) that orchestrates tool calls, managed by a layered prompt system and a file-based memory system.
Quick Start & Requirements
claude login or ANTHROPIC_API_KEY environment variable).git clone https://github.com/beita6969/claude-code.git, cd claude-code, bun install.bun src/main.tsx -p "your prompt here" --output-format text.bun build src/main.tsx --outdir=dist --target=bun.Highlighted Details
bun:bundle and require manual editing of node_modules/bundle/index.js.Maintenance & Community
This project is a research fork by T-Lab-CUHKSZ/claude-code. No specific contributors, sponsorships, or community links (e.g., Discord/Slack) are detailed in the provided README.
Licensing & Compatibility
The repository is explicitly stated to be for "educational and research purposes only." The original Claude Code source remains the property of Anthropic. No open-source license (e.g., MIT, Apache) is specified, indicating significant restrictions on commercial use or integration into closed-source projects.
Limitations & Caveats
This project is based on a leaked snapshot and is not official Anthropic code, intended solely for educational/research use. Many internal/feature-gated modules are stubbed, potentially limiting full functionality. The absence of an explicit open-source license raises compatibility concerns for commercial applications. Feature flags are disabled by default and require manual modification of installed dependencies.
4 days ago
Inactive
code-yeongyu