martinbon39

Nano Code — AI skill for Claude Code

AI community

The open-source coding agent in ~950 lines.

How to install Nano Code

This entry records only its repository, not the path inside it, so there is no exact command to give. Open martinbon39/nano-code and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Nano Code does

The open-source coding agent in ~950 lines. Works with any LLM.

Alternatives in AI

  • WeKnora — Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, an 26.9k ★
  • Cindy — Consider it done 2.3k ★
  • Llmwiki — Open Source Implementation of Karpathy's LLM Wiki 1.5k ★

README

nanoCode

**The open-source coding agent in ~950 lines. Works with any LLM.**

A minimal, readable AI coding agent with tool calling, streaming, context compression, and an interactive REPL. Think Claude Code, but you can read the entire codebase in 30 minutes.

Demo

                           ___          _
  _ __   __ _ _ __   ___  / __\___   __| | ___
 | '_ \ / _` | '_ \ / _ \/ /  / _ \ / _` |/ _ \
 | | | | (_| | | | | (_) / /__| (_) | (_| |  __/
 |_| |_|\__,_|_| |_|\___/\____/\___/ \__,_|\___|

┌──────────────────────────────────────────┐
│  model: ollama/llama3                    │
│  tools: shell, read_file, write_file,    │
│         python_exec, web_fetch           │
│  cwd: ~/projects/myapp                   │
└──────────────────────────────────────────┘

 > Find the bug in main.py

┌ Thinking...
│  I'll read the file first to understand the code.
├─ read_file("main.py")
│  ✓ read_file: 127 lines read
├─ shell("python main.py")
│  ✓ shell: Traceback... IndexError on line 42
├─ write_file("main.py", ...)
│  ✓ write_file: Updated main.py: 127→127 lines
└─ Fixed the off-by-one error on line 42.

Install

pip install nanocode

Or from source:

git clone https://github.com/martinbon39/nano-code.git
cd nano-code
pip install -e .

Quickstart

1. Interactive REPL

nanocode --model ollama/llama3

If Ollama is running locally, you can just run `nanocode` with no flags — it auto-detects your models and lets you pick one.

2. One-shot query

nanocode "find all TODO comments" --model gpt-4o

3. As a Python library

from nanocode import Agent, shell, read_file, write_file

agent = Agent(model="ollama/llama3", tools=[shell, read_file, write_file])
result = agent.run("List the files and tell me what this project does.")
print(result)

Supported Providers

Provider Model string Local? API key env var
OpenAI `gpt