2 недели назад
История
README.md
CCode-Private 🔍
Comprehensive analysis and documentation of the Claude Code CLI source code leak (March 31, 2026)
⚠️ Educational & Research Purpose Only
This repository contains analysis of the accidentally leaked Claude Code source code. The original code remains proprietary to Anthropic.
📚 What This Project Contains
- 1,914 source files analyzed and documented
- 26 comprehensive documentation files (~50,000 words)
- Buildable codebase with stub implementations
- Docker support for containerized builds
- CI/CD infrastructure (manual execution)
🚀 Quick Start
# Clone the repository
git clone <repository-url>
cd CCode-Private
# Setup development environment
make setup
# or: ./scripts/setup-dev.sh
# Build the project
make build
# or: bun run build
# View all available commands
make help
📖 Documentation
Core Architecture
- System Overview
- Tool System
- Internal Features - BUDDY, KAIROS, ULTRAPLAN
- KAIROS: Proactive AI
- Codename Reference
Security & Analysis
- Security Guide - Supply chain warnings, hardening
- Evrimagaci Analysis - Business impact
- API Endpoints - 20+ endpoints documented
Tools & Commands
- Complete Tool Registry - 40+ tools
- Feature Flags Guide - 44 flags
🏗️ Project Structure
CCode-Private/
├── src/ # Source code (1,914 files)
├── docs/ # Documentation (26 files)
├── vendor/@ant/ # Stub implementations
│ ├── claude-for-chrome-mcp/
│ ├── computer-use-mcp/
│ ├── computer-use-input/
│ └── computer-use-swift/
├── scripts/ # Build & analysis scripts
│ ├── install.sh
│ ├── build.sh
│ ├── analyze-source.sh
│ └── setup-dev.sh
├── .github/workflows/ # CI/CD (manual execution)
├── dist/ # Build output (git-ignored)
└── node_modules/ # Dependencies (git-ignored)
🛠️ Development
Prerequisites
- Bun 1.3+ (auto-installed if missing)
- Docker (optional, for containerized builds)
Available Commands
# Setup & Build
make install # Install dependencies
make build # Build the project
make clean # Clean artifacts
# Development
make dev # Run in dev mode
make typecheck # TypeScript check
make stats # Project statistics
# Analysis
make analyze # Source code analysis
make audit # Security audit
# Docker
make docker-build # Build Docker image
make docker-run # Run container
Build Process
# Standard build
./scripts/build.sh
# Output: dist/main.js (24.13 MB)
# Bundled: 5,787 modules in ~500ms
🔍 Key Findings
Architecture Highlights
- Three-Layer Self-Healing Memory - Prevents context entropy
- autoDream System - Background memory consolidation
- KAIROS - Always-on proactive AI (not yet public)
- YOLO Classifier - ML-based permission system
Internal Codenames
| Name | Meaning |
|---|---|
| Tengu | Claude Code project (1,498 refs) |
| Capybara | Next-gen model (Claude Mythos) |
| KAIROS | Always-on assistant |
| Penguin | Fast Mode |
Security Warnings
- CRITICAL: npm version 2.1.88 contains RATs (do not use)
- Supply Chain: Concurrent axios vulnerability
- Recommendation: Use native installer, not npm
🐳 Docker Support
# Build image
docker build -t ccode-private .
# Run container
docker run --rm -it ccode-private
# Development with hot reload
docker-compose up ccode-dev
📊 Project Statistics
Source Files: 1,914 TypeScript files
React Components: 563
Tools: 50 (28 with UI)
Lines of Code: 513,531
Documentation: 26 files (~50K words)
Build Size: 24.13 MB
🤝 Contributing
See Contributing Guide.
Development Setup
# One-command setup
make setup
# Or manual steps:
./scripts/install.sh # Install deps
./scripts/build.sh # Build project
./scripts/analyze-source.sh # Run analysis
📝 Changelog
See CHANGELOG.md for version history.
⚖️ Legal Notice
This repository is for educational and research purposes only. The leaked source code remains the proprietary property of Anthropic. We do not distribute the original source code; this repository contains:
- Analysis and documentation
- Build infrastructure
- Stub implementations for missing dependencies
- Original research and commentary
🌐 Upstreams
This repository is mirrored to multiple platforms:
- GitHub: github.com:milos85vasic/CCode-Private
- GitLab: gitlab.com:milos85vasic/ccode-private
- GitFlic: gitflic.ru:milosvasic/claude-code-rip
- GitVerse: gitverse.ru:milosvasic/Claude-Code-RIP
📄 License
See AGENTS.md for project-specific guidelines.
Status: Production-ready for analysis
Last Updated: 2026-03-31
Описание
Конвейеры
0
успешных
0
с ошибкой