Ninoo Code
How Ninoo Code works
Your machine changes only when you say yes. Everything else is detail, and it is below.
01 — At a glance
Built to be trusted with a repo
- Asks before every change
- File writes, edits, shell commands and web fetches show the diff or command first and wait for a yes.
- One-step undo
- Every turn is saved first, so /undo puts the files back as they were and tells Ninoo what changed.
- Project memory
- /init writes NINOO.md for the repo and Ninoo keeps adding non-obvious facts, with approval.
- Background jobs
- Dev servers and watchers keep running while Ninoo polls their output and moves on.
- Helpers for big searches
- A large search through the codebase goes to a separate helper, and only its findings come back.
- The Builder's model
- Runs on Ninoo's own model router, the same one as the Builder, which switches to a backup if a provider is down.
- Browser login
- ninoo login opens nicrron.ai, you approve once, and the key never passes through the page.
- Live cost
- The status line shows what the session has cost so far, and every request lands in your usage history with its price.
02 — The loop
What happens after you give it a task
You describe an outcome. Each step, the model either answers you or calls a tool. Tool results stream back, the model reads them, and it decides the next step until the task is done.
- 01
You describe the task
- 02
The model picks a tool
- 03
You approve any change
- 04
The result feeds the next step
03 — The tools
Sixteen tools
| Tool | What it does | Asks first (manual mode) |
|---|---|---|
| read_file | Reads a file, paged for large ones; secrets like .env ask first | asks first: read-only |
| list_dir | Lists a directory | asks first: read-only |
| glob | Finds files by pattern | asks first: read-only |
| grep | Searches file contents by regex | asks first: read-only |
| write_file | Creates or overwrites a file, preview first | asks first: yes |
| edit_file | Replaces an exact string, diff first | asks first: yes |
| multi_edit | Several edits to one file, all or nothing | asks first: yes |
| bash | Runs a shell command, or starts a background job | asks first: yes |
| bash_output | Reads new output from a background job | asks first: read-only |
| bash_kill | Stops a background job | asks first: read-only |
| web_fetch | Fetches a URL such as docs or a changelog | asks first: yes |
| remember | Saves a note to NINOO.md, shown first | asks first: yes |
| todo_write | Writes the task plan, pinned live in the terminal | asks first: read-only |
| todo_read | Re-reads the current plan | asks first: read-only |
| ask_user | Asks you a multiple-choice question mid-task | asks first: read-only |
| task | Delegates a subtask to a subagent with a fresh context | asks first: read-only |
The task tool runs a subagent with its own fresh context. Its tool calls pass through the same confirmation gate; only its final report returns.
04 — Safety
Nothing happens without a yes
Before any write, edit, shell command or web fetch, Ninoo shows the full command, a red and green diff, or a file preview, then waits. Decline and the model is told, so it adjusts instead of retrying blind.
esc interrupts a running turn and discards the half-finished step. For tasks you fully trust, ninoo -y auto-approves, as an explicit flag, never a default.
Every file is snapshotted before it is touched, one frame per turn, so /undo reverts the last turn in one step and tells the model what was rolled back.
05 — Memory
It remembers the repo
Every session starts by reading ~/.ninoo/NINOO.md, then the project's own NINOO.md. Run /init in a new repo and Ninoo writes the first draft: build and test commands, layout, conventions.
As you work it saves new non-obvious facts with the remember tool, each shown for approval first. For multi-step tasks it pins a live todo list in the terminal and checks items off as they land.
06 — Model
One model, the Builder's
Ninoo Code runs on nicrron/builder, Ninoo's own model router and the same one as the Builder. If a provider is down it switches to a backup. There's no model picker, and /model shows what it runs on.
07 — Billing
How usage is billed
Ninoo signs in with the key from ninoo login. Ninoo Code needs a Ninoo plan, Starter or higher. Each request spends your Ninoo credits, the same credits as the Builder and Studio, and then any paid Nicrron credit.
The status line shows a live token estimate, /status totals the session, and each request appears in your usage logs with its exact cost. If your credits run out, Ninoo stops with a clear message; add credits and continue.