NBX Code reads your project, edits files and runs commands for you, with every action decided by a permission you set, confined by a sandbox the operating system enforces, and written to a journal you can replay. Open source under Apache 2.0, one Rust binary, independent of the model.
In development: the install command is published with the first release.
Against neurobrix serve, tool calls can be shaped by our grammar engine at every token (--calls required): the model cannot send a call its tool would reject, so a forced call always carries all its arguments.
Run in our lab: Qwen/Qwen3-Coder-30B-A3B-Instruct, served by neurobrix serve on one GPU, fixed a real bug in a small project — tests red, the code read, a one-line fix, tests green — in five tool calls, every call shaped by our grammar engine. The session replays the same with nibux verify.
| level | what it allows |
|---|---|
read-only |
The agent may read the project and run commands that change nothing. Every write is refused by the operating system. |
project |
Writes are allowed inside the project directory and a private temporary directory, nowhere else. .git stays read-only. |
| mode | what it does |
|---|---|
all |
Every call is asked. Allow rules do not apply; deny rules still do. |
default |
Reading is allowed; writing and running commands are asked, unless one of your rules says otherwise. |
free |
Calls run without asking, inside the sandbox level you chose. Deny rules still apply. |
{
"rules": [
{ "tool": "shell", "pattern": "python3 -m unittest*", "verdict": "allow" },
{ "tool": "shell", "pattern": "git push*", "verdict": "deny" },
{ "tool": "replace", "pattern": "migrations/*", "verdict": "ask" }
]
}
| tool | what it does |
|---|---|
shell |
Runs a command in the project, confined. |
read |
Reads a file, with line numbers. |
create |
Writes a new file; never over an existing one. |
replace |
Replaces one exact passage; returns the diff. |
insert |
Inserts text after a line; returns the diff. |
find |
Lists project files matching a pattern. |
search |
Finds a fixed string in every project file. |
plan |
The goal and plan the model keeps through the session. |
# 1. a coding model, served on this machine
neurobrix import Qwen/Qwen3-Coder-30B-A3B-Instruct
neurobrix serve --model Qwen/Qwen3-Coder-30B-A3B-Instruct --http
# 2. in your project
cd my-project
nibux chat --base-url http://127.0.0.1:8765/v1 --model Qwen/Qwen3-Coder-30B-A3B-Instruct
NBX Code speaks the OpenAI-compatible chat API, so it also works with other engines and servers. Where a server cannot force a tool call, NBX Code says so by name and --calls auto is used; the key is read from a file, never from the command line.
nibux chat --base-url http://<host>:<port>/v1 --model <model> \
--api-key-file ~/.config/my-server.key --calls auto
--level read-only|project: The sandbox level.--approve all|default|free: The permission mode.--calls auto|required: Whether every turn must be a tool call, shaped by the grammar.--tools full|minimal: The full tool set, or a shell and an editor.--theme dark|light: Terminal colours; NO_COLOR gives plain text.--api-key-file FILE: A key for a server that needs one.nibux exec "run the tests and fix what fails" --base-url http://127.0.0.1:8765/v1 --model Qwen/Qwen3-Coder-30B-A3B-Instruct
# one JSON object per line on stdout; the exit code is the outcome
nibux verify .nibux/sessions/<session>.jsonl
# replays the session from its journal; runs nothing
Deployment, support and training: neurobrix.org/enterprise.
What comes next. No date is promised: each step ships when it is proven on real hardware.
Is it free?
Yes. NBX Code is open source under the Apache License 2.0.
Which models does it work with?
Any model a server exposes through the OpenAI-compatible chat API with tool calls. With NeuroBrix serve, the coding models of the hub run on your own hardware.
Does my code leave my machine?
Not when the model is served on the same machine. With a remote server, what the agent sends goes to that server, as with any client.
Can the agent damage my system?
Commands will run in a sandbox the operating system enforces: writes stay inside the project, .git is read-only, secrets are removed and the network is closed by default. On macOS that sandbox is the system's own; on Linux, its own enforcer (in progress); on Windows, through WSL2 with the Linux sandbox. Where no sandbox exists, NBX Code refuses to run a command.
Can I use it in scripts and CI?
Yes: nibux exec runs one task headless, prints one JSON object per line and returns the outcome as its exit code.
When is it released?
When it is proven on real hardware. No date is promised; the newsletter and the release notes will say it.
© 2025–2026 Hocine Benkelaya. NeuroBrix engine released under the Apache License 2.0.
Developed by Hocine Benkelaya · Supported and funded by Neural Network Holding Ltd