reason-machines avatar

Claude Code Source Recovery

Recovered TypeScript source of Claude Code 2.1.88, covering CLI bootstrap, commands, MCP, and Ink UI.

skills.sh installs
648
GitHub stars
98
last updated
Jul 14, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the recovered src/ tree: entrypoints, commands, components, services, hooks, utils, and the custom ink/ rendering layer
  • Includes representative patterns for CLI bootstrap, command loading across built-in, skill, plugin, and MCP sources, and Ink/React chat views
  • Shows how MCP servers are connected over stdio, their tools discovered, and calls routed through a registry
  • Designed for developers studying production terminal CLI architecture or how MCP is implemented in a real client

Install

$ npx -y skills add reason-machines/trending-skills --skill claude-code-source-recovery -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Claude Code 2.1.88 Source Recovery

Skill by ara.so — Daily 2026 Skills collection.

What This Project Is

This repository contains the recovered TypeScript source code of @anthropic-ai/claude-code version 2.1.88. On 2026-03-31, Anthropic accidentally published a cli.js.map (57MB) source map to npm that contained the full sourcesContent of the bundled CLI. After extraction and reconstruction, the result is ~700,000 lines of TypeScript source code organized into a readable directory structure.

The project is useful for:

  • Studying production CLI architecture patterns (Ink/React in terminal)
  • Understanding how MCP (Model Context Protocol) is implemented in a real CLI
  • Learning how Claude Code manages sessions, commands, authentication, and tool execution

Repository Structure

Details

Repository
github.com/reason-machines/trending-skills
Categories
CLI & Terminal, AI Agents & LLM Apps, Skill & Plugin Building
First seen
May 16, 2026

More from reason-machines/trending-skills

All 163

Similar to Claude Code Source Recovery

More CLI & Terminal