Nano Code — AI skill for Claude Code
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
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 |
Related Skills
AnyCoder
AI coding agent in your terminal. Works with any LLM - DeepSeek, Qwen, GPT-5, Claude, Gemini, Kimi, Ollama. 10
Patter
Open-source voice-AI SDK. The Vapi/Retell alternative for builders who want to own the stack. Give your AI age
Editormusic AI
Open-source AI music editor (DAW) and MCP server: write songs with an AI agent - chords, beats, bass lines, me
LLM Hallucination Detector
Free, open-source LLM hallucination detector. See token-level confidence as a heatmap and check every claim ag
Room
Open-source earning-focused swarm intelligence engine. Self-governing AI collectives (queen, workers, quorum v
The Pair
Open-source AI pair programming for desktop: a Mentor + Executor agent cross-check each other's code to catch
Related Agents
LLM Post Training And Preference Optimization Curator
Curator for the LLM post-training and preference optimization lane of Reinforcement Learning Brain. Use when m
🦀 Claw CR
Der Open-Source-Coding-Agent, in Rust gebaut. Alternative zu ClaudeCode Status Language
Opencode Generalist
OpenCode, the open-source model-agnostic CLI harness, for general coding