Claude Code 2.1.88 banner
Exhen Exhen

Claude Code 2.1.88

AI community

Description

Source code of @anthropic-ai/claude-code v2.1.88, extracted from the npm package's source map (cli.js.map). 1,906 TypeScript files recovered for reading and study.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

Source Extraction Notice

This directory contains the source code of `@anthropic-ai/claude-code@2.1.88`, extracted from the published npm package's source map (`cli.js.map`).

How the source was obtained

npm pack @anthropic-ai/claude-code@2.1.88
tar xzf anthropic-ai-claude-code-2.1.88.tgz
# Extract sources from cli.js.map into source/
node -e '
const fs = require("fs"), path = require("path");
const map = JSON.parse(fs.readFileSync("cli.js.map", "utf8"));
for (let i = 0; i < map.sources.length; i++) {
  if (map.sourcesContent[i] == null || map.sources[i].includes("node_modules")) continue;
  const rel = map.sources[i].replace(/^\.\.\//g, "");
  const out = path.join("source", rel);
  fs.mkdirSync(path.dirname(out), { recursive: true });
  fs.writeFileSync(out, map.sourcesContent[i]);
}'

Usage

The bundled `cli.js` is self-contained and runs directly with Node.js >= 18:

node cli.js --version          # 2.1.88 (Claude Code)
node cli.js --help             # show all options
node cli.js -p "hello world"   # non-interactive one-shot
node cli.js                    # interactive REPL

Or install globally / symlink:

npm install -g @anthropic-ai/claude-code@2.1.88
# or
ln -s "$(pwd)/cli.js" /usr/local/bin/claude

Rebuilding from source

Rebuilding from the extracted source is **not feasible** because:

  • The code uses import { feature } from 'bun:bundle' (Bun bundler compile-time API)
  • The original package.json with ~hundreds of build/dev dependencies is not published
  • Build configuration (tsconfig, bundler config) is not included in the source map
  • 2,850 bundled node_modules dependencies are only present as source map entries

The extracted `source/` tree (1,906 files, 35 MB) is useful for **reading and studying** the internals, not for rebuilding.

Directory layout

cli.js           # 13 MB self-contained Node.js bundle (the actual executable)
cli.js.map       # 57 MB source map (contains all original sources)
so