Skip to content

CLI Reference ​

One binary — neo — exposes the whole system: a TUI, non-interactive executors, an HTTP server, an MCP server, the consciousness core, the evolution chains and the operator tooling. The workspace also ships a set of nt-* utility binaries for single-purpose jobs.

sh
cargo run -- --help          # from source
neo <command> [options]      # installed

Everything below is the surface that --help prints; run neo <command> --help for the exact flags of one command.

Naming: the crate builds the neo binary. Some older pages in this site still say neotrix — same program, newer name.

The four entry points you will actually use ​

neo run — TUI, or one-shot ​

sh
neo run                                # interactive TUI
neo run "summarise this repo"          # one-shot prompt
neo run --headless --format json ...   # no TUI, machine-readable

Interactive sessions persist; --ephemeral keeps a session off disk. Output streams with -S; --format json switches to structured output.

Two orthogonal axes — this is the part worth reading before you type --yolo:

FlagValuesGoverns
--approval-modesuggest (default) · auto-edit · full-autowhether you are asked before an action
--sandboxread-only · workspace-write · disabled · dockerwhere the action runs and what it may write

They do not substitute for each other: a read-only sandbox with full-auto approval runs without asking and still cannot write. --suggest / --auto-edit / --full-auto are aliases for the approval values, and --yolo is exactly --full-auto — one meaning, no hidden second one. An unknown --sandbox value is an error, not a silent fallback.

--max-budget-usd is a hard spend ceiling for the run.

neo exec — non-interactive with structured output ​

sh
neo exec "explain src/main.rs"
neo exec --pipe < prompt.txt
neo exec -f prompt.md --json --timeout 120

--json emits one JSON object per line (JSONL); -S/--stream streams text in real time; --timeout defaults to 60 s; --max-budget-usd caps spend.

neo serve — HTTP API ​

sh
neo serve --addr 127.0.0.1:3000

neo mcp-server / neo mcp — MCP, both directions ​

sh
neo mcp-server                          # NeoTrix as an MCP server (stdio JSON-RPC 2.0)
neo mcp list                            # registered ACP/MCP servers
neo mcp register --name <n> --command <cmd>
neo mcp remove --name <n>

Command map ​

Reasoning and agents — reason (one-shot reasoning), dsh (decompose a brief across the control/execution plane split), agent (bounded parallel sub-agent fan-out with receipts), goal (long-horizon goal state machine), attention (cross-session attention state), climb (proof-of-done hill climbing), review (claims, policy gates, verdicts, ledgers).

Self-evolution and verification — consciousness (core status/tick/health/branches/ awakening), produce (production acceptance from a JSON spec; exit 1 blocks a release), spec (spec ledger: list / approve / verify --seal), project-evolve (scan → detect → score → report, usable on third-party projects), ilang (description-driven compile/evolve), bench, guard (AGENTS.md pointer conservation).

Knowledge — memory (status/timeline/recall/consolidate), wiki (generate/status/sync/ graph/query), codesearch (symbols + ripgrep + RRF, with ranking explained), browse, plugins, capabilities (market × live executability × crystal plugins).

Operations — status, daemon, sysops (daemons/uninstall/status), config (encrypt/ decrypt API keys), profile (permission profiles), approval (human-in-the-loop channel), activity (call/error/duration panel), clean (dev/junk/ai/trash, --dry-run first), proxy, sandbox, wallet, social, elf (offline ELF layout), update, completions.

Project plumbing — todo (sync/status/allocate/import), core (route broadcast), dialog (neobot-parity conversation), magpie (quota/wait/history).

TUI slash commands ​

Inside neo run, /命令 reaches the same subsystems without leaving the session. Type /help for the live registry — aliases included. The groups most used:

GroupCommands
Session/session list · save · load · delete · fork · export · import · share, /resume, /distill
Contracts/contract list · define · done · fail · cancel · stats
Permissions/perm status · check · set-approval · set-chain, `/redact [check
Routing/route, `/route failover [--json
Everything else/stats /config /doctor /e8 /brain /goal /plan /kb /wiki /git /cost /provider /model /skill /sandbox /review /plugin /profile /selfaudit

Utility binaries (nt-*) ​

Single-purpose tools built from the same crates — useful in scripts and CI:

BinaryJob
neocode / ntcodecode-oriented front ends (agent modes)
nt-crystal-serve, nt-neo-crystalcrystal knowledge layer serve / build
nt-evolution-exp, neo-rsi-cycleevolution experiments, recursive self-improvement cycles
nt-kb-encrypt, nt-kb-directknowledge-base encryption, direct DB access
neo-proxy-daemonlocal proxy daemon
nt-desktopTauri desktop host
nt-arch-diagram, nt-source-scorearchitecture diagrams, source scoring
nt-image-readability, nt-session-forkimage legibility checks, session forking
nt-train-export, nt-uniffi-bindgentraining export, UniFFI bindings

Run any of them with --help; they share the config and knowledge base with neo.

Exit codes ​

CodeMeaning
0success
1the command's own judgement failed (for example produce blocking a release)
2usage or input error — including an unknown --sandbox value

Gates in this repository treat a non-zero exit as failure and a skipped judgement as blocked, never as success.

Released under the MIT License (with proprietary exceptions for security modules).