Automated reverse engineering of @anthropic-ai/claude-code npm package.
This repository automatically extracts and analyzes each version of Claude Code CLI, providing:
- Beautified source code - Readable JavaScript from minified bundle
- System prompts - Extracted prompt templates
- Tool schemas - All tool definitions and their parameters
- Version diffs - Changes between versions
versions/
└── X.Y.Z/
├── source/
│ ├── cli.js # Original minified
│ ├── cli.beautified.js # Beautified source
│ ├── sdk-tools.d.ts # Tool type definitions
│ └── package.json
│
├── prompts/
│ └── system-prompt.txt # Extracted system prompt
│
└── CHANGELOG.md # Diff from previous version
GitHub Actions runs daily to:
- Check for new versions on npm
- Extract and beautify the source
- Generate diff against previous version
- Commit changes automatically
Check versions/ directory for all extracted versions.
This is for educational and research purposes only. All rights to Claude Code belong to Anthropic PBC.
Feel free to improve extraction scripts or add new analysis tools via PR.