{"repo":"nadonghuang/claude-code","free":true,"listed":false,"github":"https://github.com/nadonghuang/claude-code","clone":"git clone https://github.com/nadonghuang/claude-code.git","description":"Deobfuscated source code of @anthropic-ai/claude-code v2.1.76 | 1,902 TypeScript files reverse-engineered from the official npm package","language":"TypeScript","stars":26,"topics":["ai","anthropic","claude","claude-code","cli","deobfuscation","open-source","reverse-engineering","source-code","typescript"],"license":null,"category":"cli-tools","readme_excerpt":"🔍 Claude Code Source Deobfuscated TypeScript source code of @anthropic-ai/claude-code v2.1.76 1,884 TS/TSX files · 35MB source · 5,066 bundled modules --- 📑 Table of Contents - Overview - ⭐ Star History - 🏗️ Project Structure - 🧠 Key Architectural Insights - 🔨 Building from Source - ❓ Known Missing Files - ⚖️ Disclaimer - 📌 Source Version --- Overview This repository contains the reverse-engineered TypeScript source code from Anthropic's Claude Code CLI tool. The official npm package ships as a single minified cli.js bundle ( 12MB); this repo restores the original module structure with readable names, comments, and type annotations — making it possible to study how a state-of-the-art AI coding agent is wired internally. 🎓 Built for learning, security research, and architectural curiosity — not for redistribution or bypassing the official package. --- ⭐ Star History --- 🏗️ Project Structure --- 🧠 Key Architectural Insights Build System - Built with Bun bundler — uses bun:bundle feature() for compile-time dead code elimination (DCE) - MACRO. build-time constants (VERSION, BUILD TIME, etc.) injected via --define - React Compiler ( react/compiler-runtime ) for optimized component rendering - Single-file output: all 5,066 modules bundled into one cli.js Feature Gates Internal feature flags control functionality via feature() from bun:bundle : - PROACTIVE / KAIROS — Proactive agent capabilities - AGENT TRIGGERS / AGENT TRIGGERS REMOTE — Scheduled/remote agent execution - M","default_branch":null,"files":null,"tree":[],"storefront":"/r/nadonghuang","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nadonghuang/claude-code/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}