AI agent

The AI panel (Window > AI Mode, toolbar AI, Ctrl+Shift+A) drives the whole engine from a prompt: scenes, objects, components, scripts, materials, UI, generated art, levels, saving, building and a play test.

No model is needed for most of it. Scenes, adding and changing things, the light, and games that collect, fight or race are done by the engine itself, in English or Arabic, with real models from the internet: see the Director. A connected model takes only what those rules do not understand.

Connect a model

Click MODEL in the panel: pick NVIDIA, DEEPSEEK, OPENAI or LOCAL (Ollama), or type any OpenAI-compatible URL, paste the key and press CONNECT. Model is a dropdown of what that endpoint offers, the models proven on this agent first; picking one asks it a question and says how long it took, or why it cannot be used. Type a model's name... at the end of the list is for anything else. Under the dropdown is what the model can take. Without a model, what the engine cannot do by itself falls back to the offline level planner, or it says what it can do. The key field is masked and the key is hidden from error messages, logs and files the agent reads.

Each model is asked for all it can give: how long a reply may run, how much of the run stays in the conversation, how many calls a run may make, how hard it thinks, and whether it is sent pictures. Replies are streamed, because NVIDIA's service cuts a silent line at 300 seconds and a model that thinks for longer would never answer. What an endpoint turns down it is asked again without. A model nobody has measured gets the small safe limits. Being on an endpoint's list does not mean a model works for a key, or works quickly: NVIDIA lists models a free key cannot use, and popular ones can sit in a queue for minutes. scripts/agent-compare.py gives several models the same jobs and prints how each did: that, not a model's name, decides what goes at the top of the list. A run that says Finished proves little: open the game and look (neux player --project P --scene S --frames 180 --screenshot X).

NEUX_AI_EFFORT (low, high, max) sets how hard a model that can be told thinks. DeepSeek V4 Pro at max took four minutes a call, at high under one.

What you see

Before a run can say it is done, the scene is validated, the stored tests are run and the agent is shown the game as a player will see it, with a reminder to compare it with what was asked: left to choose, models called games finished without once looking at them. Shown a mistake, a model will wipe the whole scene and build it again, mistake and all, so a run cannot start over a scene it has built: it has to fix what is wrong where it stands. A menu or another level gets a path of its own.

A run shows the model's words, its plan (APPROVE or REJECT, unless AUTO is on), grouped tool cards with a status dot per call, a DONE card with the totals and UNDO ALL (scene edits and written files), and an error card with RETRY. STOP ends a run; NEW starts a fresh chat. Follow-up prompts see the last turns.

Looks, speed and next ideas

What it may do without asking

You approve the plan first. After that, ordinary scene work (objects, components, materials, UI, levels, saving, looking, play tests) just runs. Anything that reaches outside the scene needs its own yes, on a card with Allow (this one), Allow all this run (this kind) or Skip:

KindExamples
netweb_search, web_get, download, polyhaven
codewriting a .cs script, a script recipe
deletedelete_file
buildbuild
shaderwriting a .glsl file
historyundo, redo or jump in the editor's history

Auto (left of the send button) skips the questions; Local forbids the internet outright (the agent works from the project, procedural meshes, generated sounds and the recipes). Replacing the open scene (scene new / open) needs it saved first or an explicit discard, and a copy of what is replaced goes to Library/Recovery.

Always, whatever you allow: scripts are screened before they are written (no file, network, process, reflection or native APIs); downloads reach public addresses only (each redirect is re-checked and the connection is pinned to the address that was checked), never code, and are recorded in CREDITS.md; paths cannot leave the project, cross a symbolic link or touch Builds/, Players/, Library/ or ProjectSettings/ (settings have their own tools, which refuse the fields that decide where a key is sent); build names are sanitised and a build only cleans a folder a build made; a run is limited to 300 MB and 600 files. Stop ends a play test and lets go of its keys. Undo all takes back scene edits and files, keeps files you edited after the run, and asks twice when you changed the scene afterwards.

Headless: neux agent approves the plan by running, and skips the actions above unless you pass --allow net,code,delete,build,shader,history (or --auto); --local-only forbids the internet.

This is a safety net against mistakes and prompt injection, not a sandbox: an approved script runs as you.

CLI

neux agent --project DIR "make a small coin game" --url ... --model ... runs the same loop headless; see docs/ai-agent-guide.md for the tools and rules the model is given.

Verified by scripts/features/ai-agent.sh (unit tests with a scripted model, and the ai-agent editor gate).

What the agent can do

Everything the editor can: objects and components (any), scripts (compiled together with the project's others), materials, UI screens, generated art, whole levels, scenes, build settings and builds for every platform, a play test, and the world outside the editor: web_search / web_get to find things, download for models, textures and sounds (public web only, never code, 100 MB cap), model_info / place_model / auto_rig to bring in and animate a character, animation_clip for keyframed motion, prefab, and project_settings for sky, fog, input and tags.

It checks its own work

After building, the agent evaluates the result inside the editor, then fixes what it finds:

Copying text

Chat text is selectable: drag across it with the mouse and press Cmd/Ctrl+C. Copy in the header copies the whole chat, and error cards have Copy error. Failed actions stay visible (with their error) even when the action list is folded.

Sound, assets and scripting services