✨ From vibe coding to vibe deployment. UBOS MCP turns ideas into infra with one message.

Learn more
Andrii Bidochko
  • Updated: March 31, 2026
  • 5 min read

Claude Code Source Code Leak on NPM – Full Repository Exposed on GitHub

Claude Code Source Code Leak on NPM – Full Repository Exposed on GitHub

The AI community is buzzing after the full source code of Claude Code was discovered on NPM. The leak, originally posted on the GitHub repository https://github.com/chatgptprojects/claude-code, provides unprecedented access to the inner workings of the Claude AI tool, sparking discussions about security, open‑source ethics, and potential misuse.

What Was Leaked?

The repository contains the complete README, project structure, extraction instructions, and metadata such as stars, forks, and language details. It outlines how the Claude Code project was intended to extract source code for analysis, but the public availability of the entire codebase raises concerns about intellectual property and AI safety.

Implications for the AI Community

Developers and researchers now have the ability to study Claude’s architecture, potentially accelerating development of similar tools or enabling the creation of derivative works. However, the leak also highlights vulnerabilities in code distribution channels and the importance of robust access controls.

Reactions from Stakeholders

While some view the leak as an opportunity for transparency and innovation, others warn of the risks associated with unrestricted access to powerful AI code. Industry leaders are calling for clearer guidelines on code sharing and responsible AI development.

Read the Full Repository

For a detailed look at the leaked material, visit the original GitHub page: https://github.com/chatgptprojects/claude-code.

Explore related insights on Ubos Tech:

Stay tuned for further updates as the story develops.

Source content extracted for reference:

Skip to content You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert chatgptprojects / claude-code Public Notifications You must be signed in to change notification settings Fork 41 Star 52 Code Issues 0 Pull requests 0 Actions Projects Security 0 Insights Additional navigation options Code Issues Pull requests Actions Projects Security Insights mainBranchesTagsGo to fileCodeOpen more actions menuFolders and filesNameNameLast commit messageLast commit dateLatest commit History2 Commits2 Commitssrcsrc vendorvendor README.mdREADME.md bun.lockbun.lock package.jsonpackage.json View all filesRepository files navigationREADMEClaude Code (Unofficial Source Extraction) This is NOT an official Anthropic repository. This repository contains the extracted TypeScript source code of Anthropic’s Claude Code CLI tool. The source was obtained by unpacking the source map (cli.js.map) bundled with the officially published npm package. npm package: @anthropic-ai/claude-code v2.1.88 Official homepage: github.com/anthropics/claude-code Why does this exist? Anthropic publishes Claude Code as a bundled JavaScript CLI on npm. The published package includes a source map file (cli.js.map) that contains the original TypeScript source. This repository simply extracts and preserves that source for easier reading and reference. How to get it yourself Clone this repository git clone git@github.com:chatgptprojects/claude-code.git cd claude-code Or extract it yourself from npm Install the package: mkdir claude-code-extract && cd claude-code-extract npm pack @anthropic-ai/claude-code@2.1.88 tar -xzf anthropic-ai-claude-code-2.1.88.tgz cd package Run the unpack script: Create a file called unpack.mjs: import { readFileSync, writeFileSync, mkdirSync } from “fs”; import { dirname, join } from “path”; const mapFile = join(import.meta.dirname, “cli.js.map”); const outDir = join(import.meta.dirname, “unpacked”); console.log(“Reading source map.”); const map = JSON.parse(readFileSync(mapFile, “utf-8”)); const sources = map.sources || []; const contents = map.sourcesContent || []; console.log(`Found ${sources.length} source files.`); let written = 0; let skipped = 0; for (let i = 0; i 0) console.log(`Skipped ${skipped} files with no content.`); Run it: node unpack.mjs The extracted source will be in the unpacked/ directory.Project Structure src/ ├── cli/ # CLI entrypoint and argument parsing ├── commands/ # Command implementations ├── components/ # UI components (Ink/React) ├── constants/ # App constants and configuration ├── context/ # Context management ├── hooks/ # React hooks ├── ink/ # Terminal UI (Ink framework) ├── services/ # Core services ├── skills/ # Skill definitions ├── tools/ # Tool implementations (file editing, search, etc.) ├── types/ # TypeScript type definitions ├── utils/ # Utility functions ├── main.tsx # Main application entry ├── query.ts # Query handling └── . Disclaimer All code in this repository is the intellectual property of Anthropic. This repository is provided for educational and reference purposes only. Please refer to Anthropic’s license terms for usage restrictions. This is not affiliated with, endorsed by, or supported by Anthropic. About No description, website, or topics provided.Resources Readme Uh oh! There was an error while loading. Please reload this page. Activity Stars 52 stars Watchers 0 watching Forks 41 forks Report repository Releases No releases published Packages 0 Uh oh! There was an error while loading. Please reload this page. Contributors Uh oh! There was an error while loading. Please reload this page. Languages TypeScript 100.0% You can’t perform that action at this time.[{“Name”:”src”,”Last commit message”:””,”Last commit date”:””},{“Name”:”vendor”,”Last commit message”:””,”Last commit date”:””},{“Name”:”README.md”,”Last commit message”:””,”Last commit date”:””},{“Name”:”bun.lock”,”Last commit message”:””,”Last commit date”:””},{“Name”:”package.json”,”Last commit message”:””,”Last commit date”:””},{}]


Andrii Bidochko

CTO UBOS

Andrii Bidochko is an AI entrepreneur and researcher focused on AI agents, reinforcement learning, and autonomous systems. He writes about the technologies shaping the future of machine intelligence, from frontier models and agent architectures to real-world AI applications.

Sign up for our newsletter

Stay up to date with the roadmap progress, announcements and exclusive discounts feel free to sign up with your email.

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.