dox012/nano-claude
claude code simplified (~2000 Lines)
What it solves
nano-claude provides a lightweight, educational alternative to complex AI coding assistants. By stripping away the massive codebase of enterprise-grade tools, it offers a transparent, readable implementation of an agentic coding assistant that developers can study, modify, and run locally.
How it works
The project is built as an incremental series of versions, each adding specific capabilities like tool-use loops, markdown rendering, session persistence, and sub-agent orchestration. It functions as a command-line interface (CLI) that connects to Anthropic's API, allowing the AI to interact with your local environment through a set of seven core tools, including file editing, shell command execution, and content searching.
Who it’s for
This project is designed for developers who want to understand how AI coding agents are built from the ground up. It is ideal for those who prefer a minimalist, hackable tool over "black box" applications and want to learn about agentic architecture through a step-by-step, version-controlled roadmap.
Highlights
- Minimalist codebase: ~2,000 lines of TypeScript across 19 files.
- Educational roadmap: Includes a learning guide and tagged versions (v0–v8) to track the evolution of the agent.
- Practical toolset: Includes bash execution, file reading/writing, pattern searching, and sub-agent spawning.
- Safety-first: Implements tool risk classification and user permission confirmation for sensitive operations.
- Persistent state: Supports session management, conversation compaction, and persistent memory storage.
Related
- Project
- Project
- Project
- Project