Ninoo

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.

  1. 01

    You describe the task

  2. 02

    The model picks a tool

  3. 03

    You approve any change

  4. 04

    The result feeds the next step

03 — The tools

Sixteen tools

read_fileReads a file, paged for large ones; secrets like .env ask firstasks first: read-only
list_dirLists a directoryasks first: read-only
globFinds files by patternasks first: read-only
grepSearches file contents by regexasks first: read-only
write_fileCreates or overwrites a file, preview firstasks first: yes
edit_fileReplaces an exact string, diff firstasks first: yes
multi_editSeveral edits to one file, all or nothingasks first: yes
bashRuns a shell command, or starts a background jobasks first: yes
bash_outputReads new output from a background jobasks first: read-only
bash_killStops a background jobasks first: read-only
web_fetchFetches a URL such as docs or a changelogasks first: yes
rememberSaves a note to NINOO.md, shown firstasks first: yes
todo_writeWrites the task plan, pinned live in the terminalasks first: read-only
todo_readRe-reads the current planasks first: read-only
ask_userAsks you a multiple-choice question mid-taskasks first: read-only
taskDelegates a subtask to a subagent with a fresh contextasks 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

ninoozsh
$ ninoo "check the email on signup"
◆ read(src/signup.ts)
◆ edit(src/signup.ts)
- const email = form.get("email");
+ const email = String(form.get("email") ?? "").trim();
+ if (!email.includes("@")) return { error: "Enter a valid email" };
Allow edit /home/sam/shop/src/signup.ts?
❯ Yes
Yes, and don't ask again this session /home/sam/shop/src/signup.ts
No esc also declines
↑/↓ move · type to filter · enter select · esc cancel

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.