Use the AI Assistant

Set up, check, and run cases by conversation inside Wake CFD Desktop

Set up model providers and the AI Assistant in Wake CFD Desktop to configure, check, and run cases by conversation.

Wake CFD Desktop has a built-in AI Assistant panel that works on the project open in the window. It reads and edits that project through the same tools an external agent uses, and every edit is judged by the solver’s own validation. The panel registers those tools itself, so the only thing to set up is the model it talks to.

The difference from Connect an AI agent is where the conversation happens and who supplies the model: the panel runs in the Desktop and calls a model provider with your API key, while an external client such as Claude Desktop or the ChatGPT desktop app brings its own subscription and attaches from outside.

What the panel needs

  • In-App AI turned on, in the Settings tab of the ribbon.
  • One model, registered in the panel, with an API key from its provider.

No MCP registration is needed. The panel starts wake_mcp --attach by itself and works on the open project from the first reply.

The AI group of the Settings tab

The Settings tab of the Wake CFD Desktop ribbon, showing the Workspace group with Panels and Reset Layout, and the AI group with AI Settings, In-App AI, and External AI
Figure 1: The AI group of the Settings tab.
Button What it does
AI Settings Opens the panel’s settings page, where models and tool use are configured
In-App AI Turns the panel’s own agent on and off. Off: its service does not run and the panel says so
External AI Allows external agents to attach to this window. Off: they are disconnected and refused. The panel is not affected

The panel itself sits at the right edge of the window. Open it from Settings > Panels, or from the AI Assistant tab at the edge.

Register a model

Choose AI Settings, then Add under Models.

The model form of the AI Assistant settings with ID claude, Display name Claude Sonnet, Provider anthropic, Model name claude-sonnet-5-5, an empty API key field, ANTHROPIC_API_KEY as the key environment variable, and the tool-calling checkbox selected
Figure 2: The model form, filled in for Claude Sonnet. The key is read from an environment variable, so the API key field stays empty.
Field What to enter
ID The identifier recorded in every chat. It cannot be changed later
Display name The name shown in the panel
Provider anthropic, openai, gemini, local, or echo
Model name The provider’s own model identifier, exactly as the provider writes it, for example claude-sonnet-5-5
API key The key itself. Leave it empty to use an environment variable instead
Key environment variable The name of the variable that holds the key. It is read when the field above is empty
Address (OpenAI-compatible) The endpoint, for a provider that is reached at an address of its own
Use the model’s tool-calling API Leave it on. Off, the model is asked for tool calls in XML instead, which suits only a model without a tool-calling API

The key is a credential for the provider account, not for a model: the same key reaches every model that account may call, and Model name decides which one answers.

Prefer the environment variable. The panel’s settings are kept in agent-host.json in the user settings folder, which holds API keys as plain text and is shared by every installed version. A variable set after the Desktop started is not visible to it, so set the variable first and start the Desktop afterwards.

Save the model, then choose Test on its row.

The AI settings page listing the model Claude Sonnet with Test, Edit, and Remove, the key environment variable, the test result Answered 1930 ms OK, the default model, and the Tool use settings for approval, tool calls per reply, and tool result characters
Figure 3: The registered model, the result of Test, and the tool-use settings.

Test sends one short request and reports the time and the answer, or the error. It checks the model and the key only. To check the tools as well, ask the panel something about the project, as the next section does.

With several models registered, Default model decides which one answers.

Tool use

Setting Meaning
Approval Never ask runs every tool without asking. Ask before hard-to-undo tools asks first for a tool that deletes or overwrites, with This is hard to undo. Run it? and Allow or Deny
Tool calls per reply How many tools one reply may call. Setting up a case takes many calls in a row
Tool result sent to the model (characters) How much of a tool’s result reaches the model. A longer result is cut

Set Approval to Ask before hard-to-undo tools while the panel is new to you: reads pass without a prompt, and only the calls that remove a case, replace a mesh, or close a project stop for an answer. A change takes effect from the next reply.

Ask about the open project

The AI Assistant panel answering Summarize the cases in this project, with four completed tool calls named Read project, List cases, List meshes, and Read case, a table of the case settings, and a list headed Still missing before it can run
Figure 4: The panel reads the open project and reports what the case holds and what it still needs.

Each tool call appears as its own row, which expands to show what was sent and what came back. The answer comes from the project as it stands in the window, not from the file on disk, so an edit made in Setup is what the panel reads next.

Set up a case

Set up the ONERA M6 wing example.

The AI Assistant panel answering a request to set up the ONERA M6 wing example, with completed deck_examples, List files, and mesh_get_info calls, the template and mesh it found, a table of the mesh markers WING, SYMMETRY, and FARFIELD, and the beginning of a proposed setup
Figure 5: The agent reads the bundled examples and the mesh first, then proposes a setup and asks for the inputs only the engineer can give.

The panel changes nothing until the proposal is accepted. It reports the example and the mesh it found, lists what each marker appears to be, and asks for the values that cannot be read from a file: operating conditions, the choice between alternative meshes, and the role of a marker its name does not settle. Numerical settings it proposes itself and says so.

This course is prescribed by the session rather than by the panel, so an external client follows it too; How the session guides the agent describes it in full.

Confirm the proposal to have it built.

Wake CFD Desktop after the agent built the case: the Setup tab shows the registered mesh and the wing, farfield, and symmetry boundaries, the 3D view shows the wing and its domain, and the panel reports that the case passes deck_validate with no errors or warnings
Figure 6: The case after confirmation. The agent registered the mesh, added the boundaries, wrote the settings, and ran the solver’s validation; Setup and the 3D view hold the result.

The work is done in steps, with the solver’s validation after each section, and the window follows it: the mesh appears under Mesh, the boundaries under the domain, and the geometry in the 3D View. The panel then reports what it set, what it chose for itself, and what is left. It does not start a run until asked.

Run and read the result

run

Wake CFD Desktop running the agent-built case, with the residual chart filling on the left and the panel reporting the run name, the run folder, and the log file
Figure 7: The run started from the panel. It is an ordinary run: the charts fill as it proceeds.

The run appears in the Desktop like any other, with its own run folder and log, and the charts of the Residual and Monitors tabs fill as it proceeds.

Check the result and report the aerodynamic coefficients and whether the solution has converged.

The AI Assistant panel reporting the finished run: a table of the lift and drag coefficients with their variation over the last iterations, and a convergence section describing the iteration limit, the residual, and the CFL limit cycle
Figure 8: The finished run, read back through the panel.

The panel reads the run’s own output, so the coefficients and the end condition are the ones the charts and the log hold. It separates the two questions a run answers: whether the forces have settled, and whether the residual reached the target the case asks for.

Troubleshooting

Symptom What to do
The panel reads No model is ready to use No model is registered. Choose Open AI settings, then Add under Models
The panel reads The in-app AI Assistant is turned off Choose Turn On in the panel, or In-App AI in the Settings tab
A new model needs checking Choose Test on its row. The result reads Answered (… ms): …, with the time and the beginning of the answer, or Failed: …. Test checks the model and the key only; to check the tools as well, ask the panel about the open project
Test fails although the key is right Model name must be the provider’s own identifier, written exactly as the provider writes it, for example claude-sonnet-5-5. The display name and a date suffix are not identifiers
The key is in an environment variable, and the panel does not find it A variable set after the Desktop started is not visible to it. Set the variable, then start the Desktop again
Test answers, but a request that needs the project fails The model may not serve tool calls the way the panel sends them. Turn Use the model’s tool-calling API off to send them in XML instead, and compare
A reply stops and waits Approval is set to Ask before hard-to-undo tools, and the agent reached such a tool. Choose Allow or Deny
A tool’s result is reported as cut off Raise Tool result sent to the model (characters)
The panel does not appear in the External AI count It never does. That count reports external clients
The panel reports that the assistant service was not found clew-agent-host is missing from the installation. Set its location in the WAKE_AGENT_HOST environment variable, or as ai/agentHost in the Desktop’s settings file. WAKE_MCP and ai/sessionMcp do the same for wake_mcp

What to keep in mind

  • Chats are kept in the project’s chat folder. With no project open, the chat is not saved.
  • The External AI count in the status bar reports external clients only. The panel does not appear there, even while it is working.
  • The panel and external agents can work on one project at the same time. Their edits go through the project one at a time.
  • The agent proposes and reports, but the analysis judgment stays with the engineer. Before a run, check the points listed under Engineer review points.