claude_code_src — What is it?

The ponponon/claude_code_src project recovers and organizes the source code of Claude Code 2.1.88, providing a platform for studying its CLI architecture and command system.

⭐ 298 Stars 🍴 448 Forks TypeScript — Author: ponponon
Source: Official README and linked documentation View on GitHub →

Why it matters

This project is attracting attention due to the accidental release of Claude Code's source code, offering a unique opportunity to study its internal architecture and command system. It fills a gap for developers interested in CLI development and MCP integration. The project's use of TypeScript and React for terminal UI is a unique technical choice.

Source: Official README and linked documentation

Core Features

Command System

The project features a command system that supports built-in commands, dynamic skills, plugins, and Model Context Protocol (MCP) commands, demonstrating a configurable and extensible design.

Source: Official README and linked documentation
Terminal UI

Utilizing React and Ink, the project showcases how to build complex interactive interfaces in a terminal environment, highlighting the integration of UI components with CLI logic.

Source: Official README and linked documentation
MCP Integration

The project deeply integrates MCP, demonstrating its application in CLI environments and providing insights into how MCP can be utilized for complex command-line applications.

Source: Official README and linked documentation
Feature Flags

The source code includes extensive use of feature flags for feature trimming and build-time control, offering a clear example of how to manage features in a modular and configurable manner.

Source: Official README and linked documentation

Architecture

The project's architecture is modular, with clear separation of concerns. It features a command system, terminal UI components, core business logic, state management, utility functions, and a custom terminal rendering infrastructure. The code structure suggests the use of design patterns like MVC for UI components and a plugin system for command extensions.

Source: Official README and linked documentation

Project Knowledge Graph

Knowledge graph: project (center) + core features (inner hexagons) + key dependencies (outer chips) @anthropic-ai/bedrock-sdk@anthropic-ai/… @alcalzone/ansi-tokenize@alcalzone/ans… @ant/computer-use-mcp@ant/computer-… Command System Terminal UI MCP Integration Feature Flags claude_code_src Project Core feature Key dependency

Tech Stack

LanguageTypeScriptFrameworkReact, Ink
@anthropic-ai/bedrock-sdk@alcalzone/ansi-tokenize@ant/computer-use-mcp
Not enough information.
Source: Official README and linked documentation

Quick Start

npm install -g https://mirrors.cloud.tencent.com/npm/@anthropic-ai/claude-code/-/claude-code-2.1.88.tgz
Source: Official README and linked documentation

Use Cases

This project is for developers interested in CLI development, MCP integration, and terminal UI design. It is useful for studying the internal architecture of Claude Code and for those looking to implement similar systems. Specific scenarios include CLI tool development, MCP-based applications, and terminal-based UI design.

Source: Official README and linked documentation

Strengths & Limitations

Strengths

  • Provides a detailed look into Claude Code's internal architecture.
  • Demonstrates advanced CLI and UI design techniques.
  • Offers insights into MCP integration in CLI applications.

Limitations

  • Not an official Anthropic project, so may lack official support.
  • The project is for educational purposes and may not be suitable for production use without further development.
Source: Official README and linked documentation

Latest Release

2.1.88 (2026-04-01): Release included the recovered source code of Claude Code 2.1.88, which was accidentally uploaded to npm.

Source: Official releases

Verdict

ponponon/claude_code_src is a tool for developers interested in CLI development and MCP integration. It offers a deep dive into Claude Code's architecture and provides a template for building complex terminal-based applications. It is particularly suited for educational purposes and for those looking to understand the inner workings of CLI tools.

Source: Official repository
Sources and review scope
This review is based on the project's public documentation. Versions, installation commands, and feature boundaries can change upstream; check the cited sources and current release before use. Sources checked on: 2026-05-23 20:27.

Reference materials: README, GitHub API, dependency files