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.
cargo run -- --help # from source
neo <command> [options] # installedEverything below is the surface that --help prints; run neo <command> --help for the exact flags of one command.
Naming: the crate builds the
neobinary. Some older pages in this site still sayneotrix— same program, newer name.
The four entry points you will actually use
neo run — TUI, or one-shot
neo run # interactive TUI
neo run "summarise this repo" # one-shot prompt
neo run --headless --format json ... # no TUI, machine-readableInteractive 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:
| Flag | Values | Governs |
|---|---|---|
--approval-mode | suggest (default) · auto-edit · full-auto | whether you are asked before an action |
--sandbox | read-only · workspace-write · disabled · docker | where 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
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
neo serve --addr 127.0.0.1:3000neo mcp-server / neo mcp — MCP, both directions
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:
| Group | Commands |
|---|---|
| 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:
| Binary | Job |
|---|---|
neocode / ntcode | code-oriented front ends (agent modes) |
nt-crystal-serve, nt-neo-crystal | crystal knowledge layer serve / build |
nt-evolution-exp, neo-rsi-cycle | evolution experiments, recursive self-improvement cycles |
nt-kb-encrypt, nt-kb-direct | knowledge-base encryption, direct DB access |
neo-proxy-daemon | local proxy daemon |
nt-desktop | Tauri desktop host |
nt-arch-diagram, nt-source-score | architecture diagrams, source scoring |
nt-image-readability, nt-session-fork | image legibility checks, session forking |
nt-train-export, nt-uniffi-bindgen | training export, UniFFI bindings |
Run any of them with --help; they share the config and knowledge base with neo.
Exit codes
| Code | Meaning |
|---|---|
| 0 | success |
| 1 | the command's own judgement failed (for example produce blocking a release) |
| 2 | usage 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.