Nanocode banner
Lyt060814 Lyt060814

Nanocode

Development community

Description

Lightweight Claude Code alternative: ~1.8% lines, ~90% capability

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

nanocode — Lightweight Claude Code Alternative

npm Lines Node License Ask DeepWiki

**nanocode** is an ultra-lightweight reimplementation of [Claude Code](https://github.com/anthropics/claude-code) — Anthropic's official CLI agent — built from scratch by studying the [decompiled source](https://github.com/sanbuphy/claude-code-source-code) of `@anthropic-ai/claude-code` v2.1.88.

⚡ **~9,000 lines of code** (14K total with comments · 1.8% of Claude Code's ~512K) while retaining **~85-90% of agent capability**.

**Disclaimer**: This project is for **educational, research, and technical exchange purposes only**. All architectural insights are derived from the publicly available npm package. **Commercial use is strictly prohibited.** nanocode is not affiliated with Anthropic. If any content infringes upon rights, please contact us for immediate removal.

nanocode Screenshot

News

  • **2026-04-01** 🚀 **nanocode v0.1.0 released!** — 9K LOC, 15 tools, 16 slash commands. `npm i -g nanocode-cli` and start coding!

  • **2026-03-31** 💥💥💥 **Claude Code source leaked!** — The full TypeScript source of `@anthropic-ai/claude-code` v2.1.88 (~512K lines) was [extracted and published](https://github.com/instructkr/claw-code) from the npm package. nanocode is built from the insights gained.


Why nanocode?

Claude Code is a remarkable piece of engineering — but at 512K lines, 12MB bundled, with React/Ink UI, tel