Claude Code 2.1.88
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.jsonwith ~hundreds of build/dev dependencies is not published - Build configuration (tsconfig, bundler config) is not included in the source map
- 2,850 bundled
node_modulesdependencies 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
Related Skills
Agency Agents
A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy inject
AI Firecrawl
🔥 The API to search, scrape, and interact with the web for AI
AI Artifacts Builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web tech
AI Headroom
Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agen
AI CrewAI
Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewA
AI TrendRadar
⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的
AI