Skip to content

Neutron assistant#

Plugin required

Neutron requires the Neutron AI Assistant plugin to be installed and active. Only an administrator account can install and activate the plugin. If Neutron is unavailable, ask your administrator to set it up.

Neutron is a chat assistant that can read your project, write analysis and sequence code, change a few settings, and build or edit the graphs in the Task Manager, the Sequence editor and the Processor. It is an optional plugin, Neutron AI Assistant; without it installed, the button below is absent and nothing here applies.

Opening it#

Click Assistant in the status bar (right side; the robot icon alone on a narrow window) or press Ctrl+Shift+N (Cmd+Shift+N on macOS). A dot on the button pulses while Neutron is working and turns amber when a tool call is waiting for you.

The panel header has New Conversation, Clear history and Settings (model, connection status and Allow All Mode). Conversations are listed under Conversations, where they can be renamed or deleted; Run this prompt again on one of your earlier messages re-sends it. Type in the box and press Enter to send, Shift+Enter for a new line.

What it can do#

Each reply shows the tools it called, with their arguments and results under Show details. Neutron picks only the tools relevant to your question each turn.

Area Tools (as labelled in the panel)
Graphs Node Catalogue, Read Graph, Build Graph, Graph Operations, Clean Up Graph, and a graph preview picture.
Analysis Data Summary, Render Data Preview (a picture of the signal or spectrum, for Neutron to look at), Run Analysis Code, Run Processing.
Code Read Analysis Code, Set Analysis Code, Read Sequence Code, Set Sequence Code.
Sequence List Variables, Set Variable, number of scans.
Project and device Project Info, Device Info, List Plugins, Project Settings, Rename Project, Set Description, API Reference.
Assistant AI Settings, Change AI Model, and a short list of preferences it remembers between conversations (30 facts at most, kept with your profile).

It does not start or stop acquisitions: no tool for that exists.

Approval#

Tools carry one of three categories, shown on each call as Read operation, Write operation or Dangerous operation - always requires approval.

  • Read and write tools run immediately, without asking.
  • Three tools are dangerous because they execute code: Run Analysis Code, Run Processing and the analysis runner. These stop at Awaiting Approval until you press Approve or Reject. A rejected call is reported back to Neutron as refused.
  • Allow All Mode (panel Settings, or Tool Approval Settings in the settings page) skips every prompt, including for code execution. Use it only for a conversation you are watching.

Models and what leaves the machine#

Configure under Settings > Neutron AI, then Save Configuration. Test Connection reports whether the model answered.

  • Select Model offers presets; Use custom model string accepts provider:model. Providers that work are Ollama, OpenAI, Anthropic and Groq. A bare model name is treated as an Ollama model.
  • The default is ollama:llama3.2, served by Ollama on this computer at http://127.0.0.1:11434. With a local model nothing leaves the machine.
  • For OpenAI, Anthropic and Groq enter an API Key. It is kept in the system keyring under your profile, not in the profile files, and the field shows API key saved once set.
  • Custom API Endpoint replaces the provider's address, for a local server or a proxy.
  • Max Iterations (default 64) limits tool calls per message; Max Tools limits how many tools are offered per question. 0 means no limit.

With a cloud model, every message goes to that provider together with a summary Neutron builds for each turn: the project name, device state, a data summary, the current sequence graph, the available nodes, and the results of the tools it calls. That includes code it reads, and the pictures from Render Data Preview. Choose a local model if that is not acceptable for your data.

The other settings, conversations and memory are stored in the profile directory, encrypted when the profile is (see Security).

How graph editing works#

A graph request names the editor it is for: schedule (Task Manager), sequence or processor. That editor must be open on screen. Neutron first reads the Node Catalogue, so it can only use node types, settings and ports that editor really has.

  • Build Graph replaces the whole graph with a described one; with a dry run it only checks the description.
  • Graph Operations adds, changes, moves and deletes nodes and connects or disconnects ports on the graph already there.

Both are checked by the editor itself and applied all-or-nothing: if any node or connection is rejected, nothing changes and the reasons are returned to Neutron. A new graph is laid out automatically. After a short pause the editor reports back what it actually holds and its own problems (a node not connected to the flow, a missing setting), and Neutron's reply is based on that report. If the editor is not open, or is read-only, no edit is applied and Neutron is told so.

Note

Check the result on the canvas before you run a schedule or sequence that Neutron built.

External tools#

On every launch the app also opens a local MCP server on 127.0.0.1 port 50054 (set with --mcp-port) so other programs on the same computer can call the read and write tools. The tools that execute code are withheld from it.