ChrisZhangJin

Nanopi — Development skill for Claude Code

Development community

Tiny Rust port of Pi — a ~4 MB statically-linked coding agent CLI for old/low-resource Linux boxes.

How to install Nanopi

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

What Nanopi does

Tiny Rust port of Pi — a ~4 MB statically-linked coding agent CLI for old/low-resource Linux boxes. OpenAI + Anthropic providers, streaming tool calls (read/write/edit/bash), JSONL sessions, ratatui TUI, Agent Skills, Claude Code-style hooks, -p print mode.

Alternatives in Development

  • Claude Code Hooks Mastery — A resource for mastering Claude Code hooks 3.4k ★
  • Add Resource — Renamed → /portaljs-add-resource 2.3k ★
  • Ad Attack Paths — Launch the ad-attack-planner agent to reason low-privilege-to-Domain-Admin paths from the collected inventory 108 ★

README

nanopi

**Tiny Rust port of [Pi](https://github.com/earendil-works/pi) — a ~4 MB coding-agent CLI for old / low-resource Linux boxes.**

[![Release](https://img.shields.io/github/v/release/ChrisZhangJin/nanopi?style=flat-square&color=blue)](https://github.com/ChrisZhangJin/nanopi/releases/latest) [![Downloads](https://img.shields.io/github/downloads/ChrisZhangJin/nanopi/total?style=flat-square)](https://github.com/ChrisZhangJin/nanopi/releases) [![Stars](https://img.shields.io/github/stars/ChrisZhangJin/nanopi?style=flat-square)](https://github.com/ChrisZhangJin/nanopi/stargazers) [![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](LICENSE) ![Binary](https://img.shields.io/badge/binary-~4%20MB-brightgreen?style=flat-square) ![Rust](https://img.shields.io/badge/rust-stable-orange?style=flat-square&logo=rust&logoColor=white) ![Platform](https://img.shields.io/badge/platform-linux%20%7C%20macOS%20%7C%20windows-lightgrey?style=flat-square) ![Static musl](https://img.shields.io/badge/static-musl-informational?style=flat-square) [![CI](https://img.shields.io/github/actions/workflow/status/ChrisZhangJin/nanopi/ci.yml?branch=main&style=flat-square&label=CI)](https://github.com/ChrisZhangJin/nanopi/actions/workflows/ci.yml)

**English** · [简体中文](README_zh.md)


nanopi TUI screenshot

Why nanopi?

  • 🪶 ~4 MB static binary — musl + LTO + strip, zero runtime deps
  • 🖥 Runs on ancient boxes — glibc 2.12+ (CentOS 6) or fully static musl
  • 🧬 PI-parity — mirrors Pi's surface: JSONL sessions, hooks, skills, -p, /fork, /resume
  • 🔌 Multi-provider — any OpenAI-compatible endpoint (DeepSeek, ollama, vLLM, …) plus native Anthropic
  • 🛠 Streaming tool calls — read / write / edit / bash, rendered live in a ratatui TUI
  • 🪝 Claude Code hooks — PreToolUse / PostToolUse / UserPromptSubmit shel