English | 日本語
nu is an experimental and lightweight harness for AI agents.
⚠️ Development has shifted to the Rust implementation for better performance and scalability. Please check themainbranch for the latest updates.
It is built as a monorepo:
packages/nu-core→@mhoshdev/nu-core— core harnesspackages/nu-coding→@mhoshdev/nu-coding— coding capabilitiespackages/nu-cli→@mhoshdev/nu-cli— OpenTUI-based interface
git clone https://github.com/mhoshdev/nu
cd nu/packages/nu-cli
bun startSet at least one environment variable:
| Variable | Provider |
|---|---|
GEMINI_API_KEY |
Google Gemini |
OPENROUTER_API_KEY |
OpenRouter |
Ctrl+P: command palette/quit: exit/new: clear conversation/rewind: restore previous snapshot/fork [name]: create snapshot!<command>: direct shell execution
| Package | Description |
|---|---|
@mhoshdev/nu-cli |
TUI interface (user-facing) |
@mhoshdev/nu-core |
Core harness |
@mhoshdev/nu-coding |
Coding capabilities |
- Harness core
- LLM connector (Vercel AI SDK, multi-provider streaming)
- Output parser, tool schema generator
- File I/O engine (Bun File API, UTF-8 detection)
- Reasoning loop (Think-Act-Observe-Repeat)
- Safety & guardrails
- Shell execution with guardrails
- Conflict checker (hash-based overwrite protection)
- Path validator, approval flows
- TUI interface
- OpenTUI-based chat with markdown & streaming
- Syntax highlighting (Tree-sitter), diff rendering
- Command palette, settings dialog, language/theme selection
- Snapshot system (/rewind, /fork) with shadow-git
- Token usage footer, input history
- Plugin system
- Everything-as-plugin with built-in ON/OFF
- Plugin settings persistence API
- Fault isolation & collision policy
- Integrations
- LSP client/router/tools (definition, references, diagnostics, rename)
- MCP bridge (JSON-RPC, server management UI)
- i18n (pluggable locale, built-in Japanese)
- Skills (
.nu/skills/*.mdauto-loaded into system prompt)
- Distribution
- Multi-provider model switching (Gemini / OpenRouter)
- Global install (
bun add -g @mhoshdev/nu-cli→nu)
- Persistent memory (3-layer: Identity / Playbooks / Project)
- Compaction pipeline (attention matching, summarization)
- Multi-session management
- Rich snapshot timeline UI
- Rust core
- Tauri client
bun install
cp .env.example .env # Bun auto-loads .env for local development
bun test
cd packages/nu-cli && bun startbun test
bun lint
bun fix
bun run update-modelsNU_BUILTIN_PLUGINS_OFF: comma-separated built-in plugin ids to disableNU_BUILTIN_PLUGINS_ORDER: comma-separated built-in plugin ids for preferred load order


