Reverse engineer anything with agents, from app behavior down to native binaries.
Claude Code Source All In One
Always up-to-date open-source mirror of Claude Code (currently v2.1.152). Run from source with Claude subscription/API, ChatGPT subscription (GPT-5.5 / GPT-5.4)…
Install: npm install -g @anthropic-ai/claude-code
Works with Claude Code · 91 GitHub stars
Install
npm install -g @anthropic-ai/claude-codeInstall command taken from the project's README or registry entry. Always review code before running it.
README excerpt
Read full README on GitHub →Claude Code Source — Architecture Study & Learning Material
Production-grade AI Agent internals, dissected for learning.
中文版
This repository contains the extracted source code of Claude Code (Anthropic's AI programming CLI) along with 18 original deep-analysis articles (bilingual: English & Chinese) dissecting its architecture. The source was discovered from publicly available repositories and is provided strictly for educational and research purposes.
All intellectual property rights of the source code belong exclusively to Anthropic, PBC.
Kept in sync with upstream. This repository tracks the official Claude Code release stream and is kept current with the latest version. Each upstream release has a corresponding update applying the user-facing, tractable subset of its changelog — see
CHANGELOG.mdfor the per-version record of what was applied here and what remains upstream-only.
Disclaimer · Why Study This · Architecture · Deep Analysis · Run from Source · Tech Stack · Structure · License
Disclaimer
IMPORTANT: READ BEFORE USE
This repository is strictly for educational and research purposes only.
- Source: The source code was discovered from publicly available sources, including instructkr/claw-code. The run-from-source setup is based on JiaranI/start-claude-code. It contains extracted source code of Claude Code, a product by Anthropic.
- Ownership: All intellectual property rights belong exclusively to Anthropic, PBC. This repository claims no ownership, authorship, or rights over the original code.
- Purpose: Provided solely as learning material for understanding AI agent system architecture and engineering patterns — for academic study, technical research, and educational discussion.
- Prohibited uses:
- Commercial purposes of any kind
- Building competing products or services
- Redistribution or repackaging of the source code
- Any purpose that violates Anthropic's Terms of Service or applicable laws
- Analysis articles: The deep analysis articles (
claude-code-deep-analysis/) are original commentary and analysis by the repository maintainers. Code snippets are included for commentary, criticism, and education purposes. These articles do not constitute legal advice. - DMCA / Takedown: If you represent Anthropic or believe this repository infringes on intellectual property rights, please contact us — we will promptly remove the infringing content. You may also file a DMCA takedown notice through GitHub's DMCA process.
- No warranty: Provided "as is" without warranty of any kind.
Why study this codebase?
Similar plugs
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype…
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io